dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
pkgconfigdatadir=$(datadir)/pkgconfig
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 =
noinst_PROGRAMS = $(manual_tests) $(tests)
-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)\" \
-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)\" \
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) && \
so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
$(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
MULTI_USER_TARGET_WANTS =
install-target-wants-hook:
what="$(SYSINIT_TARGET_WANTS)" && wants=
sysinit.target && $(add-wants)
what="$(SOCKETS_TARGET_WANTS)" && wants=
sockets.target && $(add-wants)
what="$(TIMERS_TARGET_WANTS)" && wants=
timers.target && $(add-wants)
what="$(SLICES_TARGET_WANTS)" && wants=
slices.target && $(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-aliases)
set -- $(GENERAL_ALIASES) && \
dir= && $(install-aliases)
$(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
rm -f $(DESTDIR)$$dir/$$2 && \
$(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
install-target-wants-hook \
install-directories-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 " $@;
# ------------------------------------------------------------------------------
systemd-tty-ask-password-agent \
dist_kernelinstall_SCRIPTS = \
systemgenerator_PROGRAMS = \
systemd-getty-generator \
systemd-fstab-generator \
systemd-system-update-generator
systemd_analyze_SOURCES = \
systemd_analyze_CFLAGS = \
systemd_analyze_LDADD = \
dist_bashcompletion_DATA = \
dist_zshcompletion_DATA = \
nodist_systemunit_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
# ------------------------------------------------------------------------------
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_dbus_la_SOURCES = \
libsystemd_dbus_la_CFLAGS = \
libsystemd_dbus_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_units_la_SOURCES = \
libsystemd_units_la_CFLAGS = \
# ------------------------------------------------------------------------------
libsystemd_label_la_SOURCES = \
libsystemd_label_la_CFLAGS = \
libsystemd_label_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_logs_la_SOURCES = \
libsystemd_logs_la_CFLAGS = \
libsystemd_logs_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_capability_la_SOURCES = \
libsystemd_capability_la_CFLAGS = \
libsystemd_capability_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_audit_la_SOURCES = \
libsystemd_audit_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_acl_la_SOURCES = \
libsystemd_acl_la_CFLAGS = \
libsystemd_acl_la_LIBADD = \
# ------------------------------------------------------------------------------
libsystemd_core_la_SOURCES = \
libsystemd_core_la_SOURCES += \
nodist_libsystemd_core_la_SOURCES = \
libsystemd_core_la_CFLAGS = \
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_at)$(MKDIR_P) $(dir $@)
$(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; }' > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(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 }' < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
# ------------------------------------------------------------------------------
dist_pkgsysconf_DATA += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
polkitpolicy_in_in_files += \
$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
nodist_rpmmacros_DATA = \
# ------------------------------------------------------------------------------
test_job_type_SOURCES = \
test_loopback_SOURCES = \
test_hostname_SOURCES = \
test_unit_name_SOURCES = \
test_unit_name_CFLAGS = \
test_unit_file_SOURCES = \
test_unit_file_CFLAGS = \
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_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_CFLAGS = \
-D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
test_sched_prio_LDADD = \
# ------------------------------------------------------------------------------
## .PHONY so it always rebuilds it
.PHONY: coverage lcov-run lcov-report
# 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.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_initctl_SOURCES = \
systemd_initctl_CFLAGS = \
systemd_initctl_LDADD = \
# ------------------------------------------------------------------------------
systemd_update_utmp_SOURCES = \
systemd_update_utmp_CFLAGS = \
systemd_update_utmp_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_machine_id_setup_SOURCES = \
systemd_machine_id_setup_LDADD = \
# ------------------------------------------------------------------------------
systemd_sysctl_SOURCES = \
# ------------------------------------------------------------------------------
systemd_sleep_SOURCES = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemd_ac_power_SOURCES = \
systemd_ac_power_LDADD = \
# ------------------------------------------------------------------------------
systemd_detect_virt_SOURCES = \
systemd_detect_virt_LDADD = \
systemd-detect-virt-install-hook:
-$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
systemd-detect-virt-install-hook
# ------------------------------------------------------------------------------
systemd_delta_SOURCES = \
# ------------------------------------------------------------------------------
systemd_getty_generator_SOURCES = \
systemd_getty_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_fstab_generator_SOURCES = \
systemd_fstab_generator_LDADD = \
# ------------------------------------------------------------------------------
systemd_system_update_generator_SOURCES = \
systemd_system_update_generator_LDADD = \
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd-efi-boot-generator
systemd_efi_boot_generator_SOURCES = \
systemd_efi_boot_generator_LDADD = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
systemgenerator_PROGRAMS += \
systemd-gpt-auto-generator
systemd_gpt_auto_generator_SOURCES = \
systemd_gpt_auto_generator_LDADD = \
systemd_gpt_auto_generator_CFLAGS = \
# ------------------------------------------------------------------------------
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_CFLAGS = \
systemd_cgroups_agent_LDADD = \
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
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_stdio_bridge_SOURCES = \
systemd_stdio_bridge_LDADD = \
# ------------------------------------------------------------------------------
systemd_tty_ask_password_agent_SOURCES = \
systemd_tty_ask_password_agent_LDADD = \
# ------------------------------------------------------------------------------
libsystemd_daemon_la_SOURCES = \
libsystemd_daemon_internal_la_SOURCES = \
$(libsystemd_daemon_la_SOURCES)
libsystemd_daemon_la_CFLAGS = \
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
libsystemd-daemon-install-hook:
libsystemd-daemon-uninstall-hook:
INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
# ------------------------------------------------------------------------------
libsystemd_bus_la_SOURCES = \
libsystemd_bus_la_LIBADD = \
libsystemd_bus_la_CFLAGS = \
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_server_SOURCES = \
test_bus_server_CFLAGS = \
test_bus_server_LDADD = \
test_bus_match_SOURCES = \
test_bus_match_CFLAGS = \
test_bus_kernel_SOURCES = \
test_bus_kernel_CFLAGS = \
test_bus_kernel_LDADD = \
test_bus_kernel_bloom_SOURCES = \
test_bus_kernel_bloom_CFLAGS = \
test_bus_kernel_bloom_LDADD = \
test_bus_kernel_benchmark_SOURCES = \
test_bus_kernel_benchmark_CFLAGS = \
test_bus_kernel_benchmark_LDADD = \
test_bus_memfd_SOURCES = \
test_bus_memfd_CFLAGS = \
test_bus_zero_copy_SOURCES = \
test_bus_zero_copy_CFLAGS = \
test_bus_zero_copy_LDADD = \
# ------------------------------------------------------------------------------
-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_private_la_SOURCES =\
libudev_private_la_CFLAGS = \
libudev_private_la_LIBADD = \
# ------------------------------------------------------------------------------
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_CPPFLAGS = \
-DFIRMWARE_PATH="$(FIRMWARE_PATH)"
libudev_core_la_SOURCES += \
libudev_core_la_SOURCES += \
libudev_core_la_SOURCES += \
libudev_core_la_SOURCES += \
libudev_core_la_LIBADD += \
systemd_udevd_SOURCES = \
# Update hwdb on installation. Do not bother if installing
# in DESTDIR, since this is likely for packaging purposes.
-test -n "$(DESTDIR)" || $(rootbindir)/udevadm 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) \
-export-dynamic -no-undefined \
-export-symbols-regex '^g_udev_.*'
$(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
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
INSTALL_EXEC_HOOKS += libgudev-install-hook
UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
# ------------------------------------------------------------------------------
udevlibexec_PROGRAMS += \
# ------------------------------------------------------------------------------
libsystemd_id128_la_SOURCES = \
libsystemd_id128_la_CFLAGS = \
libsystemd_id128_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
libsystemd_id128_la_LIBADD = \
libsystemd_id128_internal_la_SOURCES = \
$(libsystemd_id128_la_SOURCES)
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
libsystemd-id128-install-hook:
libsystemd-id128-uninstall-hook:
INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
# ------------------------------------------------------------------------------
rootlibexec_PROGRAMS += \
systemd_activate_SOURCES = \
systemd_activate_LDADD = \
# ------------------------------------------------------------------------------
systemd_journald_SOURCES = \
systemd_journald_LDADD = \
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_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 = \
-DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
libsystemd_journal_la_SOURCES = \
libsystemd_journal_la_CFLAGS = \
libsystemd_journal_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
libsystemd_journal_la_LIBADD = \
libsystemd_journal_internal_la_SOURCES = \
$(libsystemd_journal_la_SOURCES) \
libsystemd_journal_internal_la_CFLAGS = \
libsystemd_journal_internal_la_LIBADD = \
nodist_libsystemd_journal_internal_la_SOURCES = \
libsystemd_journal_internal_la_LIBADD += \
libsystemd_journal_internal_la_LIBADD += \
libsystemd_journal_la_SOURCES += \
libsystemd_journal_la_CFLAGS += \
libsystemd_journal_la_LIBADD += \
libsystemd_journal_internal_la_CFLAGS += \
libsystemd_journal_internal_la_LIBADD += \
libsystemd_journal_la_SOURCES += \
libsystemd_journal_la_CFLAGS += \
libsystemd_journal_la_LIBADD += \
libsystemd_journal_internal_la_CFLAGS += \
libsystemd_journal_internal_la_LIBADD += \
# move lib from $(libdir) to $(rootlibdir) and update devel link, if
# needed. Also, grant read access to new journal files to members of
libsystemd-journal-install-hook:
libsystemd-journal-uninstall-hook:
INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
UNINSTALL_EXEC_HOOKS += libsystemd-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 \
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_CFLAGS = \
-DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
dist_gatewayddocumentroot_DATA = \
# ------------------------------------------------------------------------------
systemd_coredump_SOURCES = \
systemd_coredump_LDADD = \
systemd_coredump_LDADD += \
rootlibexec_PROGRAMS += \
systemd_coredumpctl_SOURCES = \
systemd_coredumpctl_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 += \
SYSINIT_TARGET_WANTS += \
# ------------------------------------------------------------------------------
systemd_readahead_SOURCES = \
systemd_readahead_LDADD = \
rootlibexec_PROGRAMS += \
dist_systemunit_DATA += \
nodist_systemunit_DATA += \
# ------------------------------------------------------------------------------
systemd_bootchart_SOURCES = \
systemd_bootchart_LDADD = \
rootlibexec_PROGRAMS += \
dist_pkgsysconf_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 += \
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_CFLAGS = \
systemd_hostnamed_LDADD = \
rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
systemd_localed_SOURCES = \
systemd_localed_CFLAGS = \
systemd_localed_LDADD = \
nodist_systemunit_DATA += \
rootlibexec_PROGRAMS += \
dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
$(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j
introspect.locale1 $< $@.tmp && \
$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
systemd_timedated_SOURCES = \
systemd_timedated_CFLAGS = \
systemd_timedated_LDADD = \
rootlibexec_PROGRAMS += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
nodist_systemunit_DATA += \
$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
dist_bashcompletion_DATA += \
dist_zshcompletion_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
libnss_myhostname_la_SOURCES = \
libnss_myhostname_la_CFLAGS = \
libnss_myhostname_la_LDFLAGS = \
# ------------------------------------------------------------------------------
systemd_machined_SOURCES = \
systemd_machined_CFLAGS = \
$(libsystemd_machine_core_la_CFLAGS)
systemd_machined_LDADD = \
$(libsystemd_machine_core_la_LIBADD)
rootlibexec_PROGRAMS += \
libsystemd_machine_core_la_SOURCES = \
libsystemd_machine_core_la_CFLAGS = \
libsystemd_machine_core_la_LIBADD = \
test_machine_tables_SOURCES = \
test_machine_tables_CFLAGS = \
test_machine_tables_LDADD = \
nodist_systemunit_DATA += \
dist_systemunit_DATA += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
dist_zshcompletion_DATA += \
# ------------------------------------------------------------------------------
systemd_logind_SOURCES = \
nodist_systemd_logind_SOURCES = \
systemd_logind_CFLAGS = \
$(libsystemd_logind_core_la_CFLAGS)
$(libsystemd_logind_core_la_LIBADD)
systemd_logind_SOURCES += \
systemd_logind_LDADD += \
libsystemd_logind_core_la_SOURCES = \
libsystemd_logind_core_la_CFLAGS = \
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_CFLAGS = \
systemd_inhibit_LDADD = \
test_login_shared_SOURCES = \
test_login_shared_LDADD = \
test_login_tables_SOURCES = \
test_login_tables_CFLAGS = \
test_login_tables_LDADD = \
libsystemd_login_la_SOURCES = \
libsystemd_login_la_CFLAGS = \
libsystemd_login_la_LDFLAGS = \
-version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
libsystemd_login_la_LIBADD = \
libsystemd_login_internal_la_SOURCES = \
$(libsystemd_login_la_SOURCES)
pam_systemd_la_SOURCES = \
pam_systemd_la_CFLAGS = \
pam_systemd_la_LDFLAGS = \
-export-symbols-regex '^pam_sm_.*'
pam_systemd_la_LIBADD = \
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
libsystemd-login-install-hook:
libsystemd-login-uninstall-hook:
INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
nodist_systemunit_DATA += \
dist_systemunit_DATA += \
dist_dbussystemservice_DATA += \
dist_dbuspolicy_DATA += \
dist_pkgsysconf_DATA += \
MULTI_USER_TARGET_WANTS += \
systemd_multi_seat_x_SOURCES = \
systemd_multi_seat_x_LDADD = \
rootlibexec_PROGRAMS += \
nodist_udevrules_DATA += \
polkitpolicy_in_files += \
# ------------------------------------------------------------------------------
pkgpyexec_LTLIBRARIES = \
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
# Remove Python stuff,
e.g. to force rebuilding for a different Python version.
# ------------------------------------------------------------------------------
'|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)|' \
'|sysctldir=$(sysctldir)|' \
'|systemgeneratordir=$(systemgeneratordir)|' \
'|usergeneratordir=$(usergeneratordir)|' \
'|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)|'
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
units/%: units/%.in Makefile
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GPERF)$(GPERF) < $< > $@
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
units/%: units/%.m4 Makefile
$(AM_V_M4)$(MKDIR_P) $(dir $@)
$(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
$(AM_V_M4)$(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" ?>' && \
echo '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">,$(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 += \
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-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
--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 += \
( cd $(top_srcdir)/hwdb && \
doc-sync: all destdir-sphinx
rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
git tag "v$(VERSION)" -m "systemd $(VERSION)"
rm -rf $(abs_srcdir)/install-tree
$(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
tree $(abs_srcdir)/install-tree