2 # Do not build this test if shared libraries support was
5 CLEANFILES = lttng-ust-getcpu-override-test.so \
6 lttng-ust-getcpu-override-test.so.debug
8 EXTRA_DIST = test_getcpu_override run-getcpu-override \
9 lttng-ust-getcpu-override-test.c
13 # The rpath is necessary because libtool won't build a shared library
15 GETCPU_LIBTOOL_FLAGS = \
20 -rpath $(abs_builddir)
22 noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la
23 lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS)
24 lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c
26 if LTTNG_TOOLS_BUILD_WITH_LIBDL
27 lttng_ust_getcpu_override_test_la_LIBADD = -ldl
29 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
30 lttng_ust_getcpu_override_test_la_LIBADD = -lc
33 noinst_SCRIPTS = test_getcpu_override run-getcpu-override
34 EXTRA_DIST = test_getcpu_override run-getcpu-override
37 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
38 for script in $(EXTRA_DIST); do \
39 cp -f $(srcdir)/$$script $(builddir); \
44 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
45 for script in $(EXTRA_DIST); do \
46 rm -f $(builddir)/$$script; \