X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fclock-override%2FMakefile.am;h=9495bca053424ebdd995acaa3fa42df8d24aecab;hp=a656548de35c6cbff5abbf36777a94b84d38a06f;hb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;hpb=199800b2c98035f82a87f675e6576ceb89017674 diff --git a/tests/regression/ust/clock-override/Makefile.am b/tests/regression/ust/clock-override/Makefile.am index a656548de..9495bca05 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) +# SPDX-License-Identifier: GPL-2.0-only + +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 # The rpath is necessary because libtool won't build a shared library # if it's noinst_ @@ -11,16 +22,11 @@ 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 +lttng_ust_clock_override_test_la_LIBADD = $(DL_LIBS) -if LTTNG_TOOLS_BUILD_WITH_LIBDL -lttng_ust_clock_override_test_la_LIBADD = -ldl -endif -if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -lttng_ust_clock_override_test_la_LIBADD = -lc -endif - -noinst_SCRIPTS = test_clock_override run-clock-override -EXTRA_DIST = test_clock_override run-clock-override +noinst_SCRIPTS = test_clock_override +EXTRA_DIST = test_clock_override all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ @@ -35,3 +41,5 @@ clean-local: rm -f $(builddir)/$$script; \ done; \ fi + +endif