X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2FMakefile.am;h=03f5d5a8250a1a6eee1262dd8f7496ee6cabb488;hp=9d4696b56eb750ade6948615d61a6408d1147003;hb=701a99d1cf638273320db3ce52cf52816129d95a;hpb=a9c2df2bfce7a27b53ee5d5101f259f3e1f506b1 diff --git a/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am b/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am index 9d4696b56..03f5d5a82 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am +++ b/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am @@ -1,4 +1,20 @@ # no optimization AM_CFLAGS = -O0 +noinst_LTLIBRARIES = libfoo.la + +libfoo_la_SOURCES = foo.c foo.h +libfoo_la_LDFLAGS = -shared -module -avoid-version -rpath $(abs_builddir)/.libs/ + noinst_PROGRAMS = userspace-probe-elf-binary userspace_probe_elf_binary_SOURCES = userspace-probe-elf-binary.c +userspace_probe_elf_binary_LDADD = libfoo.la + +libfoo.strip: libfoo.la + $(OBJCOPY) --strip-all .libs/libfoo.so + +all-local: libfoo.strip + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi