X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fclock-override%2FMakefile.am;h=2a226303aa7d36c4455ce4ad5c9477dcf0b4b911;hb=4508697c843ae0b0130503d5165b0eb739511331;hp=95065e0ed1ba6b580395be72521dcd1f3f021c2f;hpb=1df1febef391527c99b568ddcc7fc328a5941e61;p=lttng-tools.git diff --git a/tests/regression/ust/clock-override/Makefile.am b/tests/regression/ust/clock-override/Makefile.am index 95065e0ed..2a226303a 100644 --- a/tests/regression/ust/clock-override/Makefile.am +++ b/tests/regression/ust/clock-override/Makefile.am @@ -1,4 +1,15 @@ -AM_CPPFLAGS = -I$(srcdir) +if NO_SHARED +# Do not build this test if shared libraries support was +# explicitly disabled. + +CLEANFILES = lttng-ust-clock-override-test.so \ + lttng-ust-clock-override-test.so.debug + +EXTRA_DIST = test_clock_override lttng-ust-clock-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 +22,7 @@ GETCPU_LIBTOOL_FLAGS = \ noinst_LTLIBRARIES = lttng-ust-clock-override-test.la lttng_ust_clock_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) +lttng_ust_clock_override_test_la_SOURCES = lttng-ust-clock-override-test.c if LTTNG_TOOLS_BUILD_WITH_LIBDL lttng_ust_clock_override_test_la_LIBADD = -ldl @@ -35,3 +47,5 @@ clean-local: rm -f $(builddir)/$$script; \ done; \ fi + +endif