OOT build fix: Missing include of src directory
[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
4508697c 13AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir)/src
568d7e2d
JR
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)
4508697c 26lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c
568d7e2d
JR
27
28if LTTNG_TOOLS_BUILD_WITH_LIBDL
29lttng_ust_getcpu_override_test_la_LIBADD = -ldl
30endif
31if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
32lttng_ust_getcpu_override_test_la_LIBADD = -lc
33endif
34
35noinst_SCRIPTS = test_getcpu_override run-getcpu-override
36EXTRA_DIST = test_getcpu_override run-getcpu-override
37
38all-local:
39 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
40 for script in $(EXTRA_DIST); do \
41 cp -f $(srcdir)/$$script $(builddir); \
42 done; \
43 fi
44
45clean-local:
46 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
47 for script in $(EXTRA_DIST); do \
48 rm -f $(builddir)/$$script; \
49 done; \
50 fi
cdbfb1b9
MD
51
52endif
This page took 0.027209 seconds and 4 git commands to generate.