X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fust-dl%2FMakefile.am;h=bcd700109a42ba7ce987bdd6a10ab151ec3fbf82;hp=c12da16d0ad509031e919034f62a28d09307de7e;hb=cdbfb1b9cd74b6f6da7082482b1d6c3d97605818;hpb=3528f2a3f2378f44a2f42028c276a446aa15a933 diff --git a/tests/regression/ust/ust-dl/Makefile.am b/tests/regression/ust/ust-dl/Makefile.am index c12da16d0..bcd700109 100644 --- a/tests/regression/ust/ust-dl/Makefile.am +++ b/tests/regression/ust/ust-dl/Makefile.am @@ -1,3 +1,14 @@ +if NO_SHARED +# Do not build this test if shared libraries support was +# explicitly disabled. + +CLEANFILES = libfoo.so libfoo.so.debug prog + +EXTRA_DIST = test_ust-dl test_ust-dl.py libfoo.c libfoo.h \ + prog.c + +else + objcopy_verbose = $(objcopy_verbose_@AM_V@) objcopy_verbose_ = $(objcopy_verbose_@AM_DEFAULT_V@) objcopy_verbose_0 = @echo OBJCOPY $@; @@ -13,8 +24,7 @@ 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 +CLEANFILES = libfoo.so libfoo.so.debug # Extract debug symbols libfoo.so.debug: libfoo.la @@ -25,6 +35,9 @@ libfoo.so: libfoo.so.debug @cp -f .libs/libfoo.so libfoo.so $(objcopy_verbose)$(OBJCOPY) --strip-debug --add-gnu-debuglink=libfoo.so.debug libfoo.so +noinst_SCRIPTS = test_ust-dl test_ust-dl.py +EXTRA_DIST = test_ust-dl test_ust-dl.py + all-local: libfoo.so @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ for script in $(EXTRA_DIST); do \ @@ -39,4 +52,4 @@ clean-local: done; \ fi -CLEANFILES = libfoo.so libfoo.so.debug +endif