X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fgetcpu-override%2FMakefile.am;h=21076e134e54c88e0f998fef29a735e07c2f9224;hb=4508697c843ae0b0130503d5165b0eb739511331;hp=f1026ac02e96417b946d6af33d01cacda7974f07;hpb=568d7e2db7370f57e9612eb9b8c1a6b0bf5213cd;p=lttng-tools.git diff --git a/tests/regression/ust/getcpu-override/Makefile.am b/tests/regression/ust/getcpu-override/Makefile.am index f1026ac02..21076e134 100644 --- a/tests/regression/ust/getcpu-override/Makefile.am +++ b/tests/regression/ust/getcpu-override/Makefile.am @@ -1,4 +1,16 @@ -AM_CPPFLAGS = -I$(srcdir) +if NO_SHARED +# Do not build this test if shared libraries support was +# explicitly disabled. + +CLEANFILES = lttng-ust-getcpu-override-test.so \ + lttng-ust-getcpu-override-test.so.debug + +EXTRA_DIST = test_getcpu_override run-getcpu-override \ + lttng-ust-getcpu-override-test.c + +else + +AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/src # The rpath is necessary because libtool won't build a shared library # if it's noinst_ @@ -11,6 +23,7 @@ GETCPU_LIBTOOL_FLAGS = \ noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) +lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c if LTTNG_TOOLS_BUILD_WITH_LIBDL lttng_ust_getcpu_override_test_la_LIBADD = -ldl @@ -35,3 +48,5 @@ clean-local: rm -f $(builddir)/$$script; \ done; \ fi + +endif