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 AM_CPPFLAGS = -I$(srcdir)
15 # The rpath is necessary because libtool won't build a shared library
17 GETCPU_LIBTOOL_FLAGS = \
22 -rpath $(abs_builddir)
24 noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la
25 lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS)
27 if LTTNG_TOOLS_BUILD_WITH_LIBDL
28 lttng_ust_getcpu_override_test_la_LIBADD = -ldl
30 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
31 lttng_ust_getcpu_override_test_la_LIBADD = -lc
34 noinst_SCRIPTS = test_getcpu_override run-getcpu-override
35 EXTRA_DIST = test_getcpu_override run-getcpu-override
38 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
39 for script in $(EXTRA_DIST); do \
40 cp -f $(srcdir)/$$script $(builddir); \
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 rm -f $(builddir)/$$script; \