test_rtnl_LDADD = \
libsystemd-rtnl.la \
+ libsystemd-bus-internal.la \
+ libsystemd-id128-internal.la \
libsystemd-shared.la
tests += test-rtnl
libsystemd-daemon-internal.la \
libudev-internal.la \
libsystemd-shared.la \
+ libsystemd-rtnl.la \
$(LIBWRAP_LIBS) \
$(PAM_LIBS) \
$(AUDIT_LIBS) \
bin_PROGRAMS += \
bootctl
+
+dist_zshcompletion_DATA += \
+ shell-completion/zsh/_bootctl
+
endif
# ------------------------------------------------------------------------------
libsystemd-bus-internal.la \
libsystemd-id128-internal.la \
libsystemd-daemon-internal.la \
- libsystemd-shared.la
+ libsystemd-shared.la \
+ libsystemd-rtnl.la
# ------------------------------------------------------------------------------
systemd_run_SOURCES = \
-Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
libsystemd_id128_la_LIBADD = \
+ libsystemd-daemon-internal.la \
libsystemd-shared.la
libsystemd_id128_internal_la_SOURCES = \
systemd_networkd_LDADD = \
libudev-internal.la \
- libsystemd-bus.la \
+ libsystemd-bus-internal.la \
+ libsystemd-id128-internal.la \
libsystemd-rtnl.la \
libsystemd-shared.la
test_network_LDADD = \
libudev-internal.la \
- libsystemd-bus.la \
+ libsystemd-bus-internal.la \
+ libsystemd-id128-internal.la \
libsystemd-rtnl.la \
libsystemd-shared.la
libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=4194400 --error-exitcode=55 $(builddir)/$$f ; \
done
-exported: $(lib_LTLIBRARIES)
- $(AM_V_GEN)for f in $(lib_LTLIBRARIES:.la=.so) ; do \
- nm -g --defined-only $(builddir)/.libs/"$$f" 2>&1 /dev/null | grep " T " | cut -d" " -f3 ; \
- done > $@
+exported-%: %
+ $(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))
+ $(AM_V_GEN)cat $^ > $@
check-api-docs: exported man
$(AM_V_GEN)for symbol in `cat exported` ; do \
define generate-sym-test
$(AM_V_at)$(MKDIR_P) $(dir $@)
- $(AM_V_at)echo '#include <stdio.h>' > $@
- $(AM_V_at)for file in $(notdir $(filter %.h, $^)); do \
- echo "#include \"$$file\""; \
- done >> $@
- $(AM_V_at)echo 'void* functions[] = {' >> $@
- $(AM_V_GEN)sed -r -n 's/^( +[a-zA-Z0-9_]+);/\1,/p' $< >> $@
- $(AM_V_at)echo '};' >> $@
- $(AM_V_at)echo 'int main(void) {' >> $@
- $(AM_V_at)echo ' unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%p\n", functions[i]);' >> $@
- $(AM_V_at)echo 'return 0; }' >> $@
+ $(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' >> $@
endef
test-libsystemd-bus-sym.c: \