Fix: tests: don't build dynamic lib tests if support disabled
[lttng-tools.git] / tests / regression / ust / getcpu-override / Makefile.am
CommitLineData
cdbfb1b9
MD
1if NO_SHARED
2# Do not build this test if shared libraries support was
3# explicitly disabled.
4
5CLEANFILES = lttng-ust-getcpu-override-test.so \
6 lttng-ust-getcpu-override-test.so.debug
7
8EXTRA_DIST = test_getcpu_override run-getcpu-override \
9 lttng-ust-getcpu-override-test.c
10
11else
12
568d7e2d
JR
13AM_CPPFLAGS = -I$(srcdir)
14
15# The rpath is necessary because libtool won't build a shared library
16# if it's noinst_
17GETCPU_LIBTOOL_FLAGS = \
18 -module \
19 -shared \
20 -avoid-version \
21 --no-as-needed \
22 -rpath $(abs_builddir)
23
24noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la
25lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS)
26
27if LTTNG_TOOLS_BUILD_WITH_LIBDL
28lttng_ust_getcpu_override_test_la_LIBADD = -ldl
29endif
30if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
31lttng_ust_getcpu_override_test_la_LIBADD = -lc
32endif
33
34noinst_SCRIPTS = test_getcpu_override run-getcpu-override
35EXTRA_DIST = test_getcpu_override run-getcpu-override
36
37all-local:
38 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
39 for script in $(EXTRA_DIST); do \
40 cp -f $(srcdir)/$$script $(builddir); \
41 done; \
42 fi
43
44clean-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 rm -f $(builddir)/$$script; \
48 done; \
49 fi
cdbfb1b9
MD
50
51endif
This page took 0.02527 seconds and 4 git commands to generate.