X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fust-dl%2FMakefile.am;fp=tests%2Fregression%2Fust%2Fust-dl%2FMakefile.am;h=4893a97e4793b29cd10dc8a657770ec29054bea0;hp=0000000000000000000000000000000000000000;hb=c70c42cca32058806a5c7d96d7cf2fae4d4fb75f;hpb=d4f53cc3de1217c965c2285709b784ff66a8033c diff --git a/tests/regression/ust/ust-dl/Makefile.am b/tests/regression/ust/ust-dl/Makefile.am new file mode 100644 index 000000000..4893a97e4 --- /dev/null +++ b/tests/regression/ust/ust-dl/Makefile.am @@ -0,0 +1,31 @@ +AM_CPPFLAGS = -I$(srcdir) -g + +noinst_PROGRAMS = prog +prog_SOURCES = prog.c +prog_LDADD = -ldl + +noinst_LTLIBRARIES = libfoo.la +libfoo_la_SOURCES = libfoo.c libfoo.h +libfoo_la_LDFLAGS = -module -shared -avoid-version \ + -rpath $(abs_builddir) + +noinst_SCRIPTS = test_ust-dl test_ust-dl.py +EXTRA_DIST = test_ust-dl test_ust-dl.py + +all-local: libfoo.la + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + objcopy --only-keep-debug .libs/libfoo.so .libs/libfoo.so.debug + strip -g .libs/libfoo.so + objcopy --add-gnu-debuglink .libs/libfoo.so.debug .libs/libfoo.so + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi + rm -f .libs/libfoo.so.debug