Commit | Line | Data |
---|---|---|
cdbfb1b9 MD |
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 | ||
4508697c | 13 | AM_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_ | |
17 | GETCPU_LIBTOOL_FLAGS = \ | |
18 | -module \ | |
19 | -shared \ | |
20 | -avoid-version \ | |
21 | --no-as-needed \ | |
22 | -rpath $(abs_builddir) | |
23 | ||
24 | noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la | |
25 | lttng_ust_getcpu_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) | |
4508697c | 26 | lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c |
568d7e2d JR |
27 | |
28 | if LTTNG_TOOLS_BUILD_WITH_LIBDL | |
29 | lttng_ust_getcpu_override_test_la_LIBADD = -ldl | |
30 | endif | |
31 | if LTTNG_TOOLS_BUILD_WITH_LIBC_DL | |
32 | lttng_ust_getcpu_override_test_la_LIBADD = -lc | |
33 | endif | |
34 | ||
35 | noinst_SCRIPTS = test_getcpu_override run-getcpu-override | |
36 | EXTRA_DIST = test_getcpu_override run-getcpu-override | |
37 | ||
38 | all-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 | ||
45 | clean-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 | |
52 | endif |