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