-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
# The rpath is necessary because libtool won't build a shared library
# if it's noinst_
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
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 \
rm -f $(builddir)/$$script; \
done; \
fi
+
+endif