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 | ||
568d7e2d JR |
13 | AM_CPPFLAGS = -I$(srcdir) |
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) | |
26 | ||
27 | if LTTNG_TOOLS_BUILD_WITH_LIBDL | |
28 | lttng_ust_getcpu_override_test_la_LIBADD = -ldl | |
29 | endif | |
30 | if LTTNG_TOOLS_BUILD_WITH_LIBC_DL | |
31 | lttng_ust_getcpu_override_test_la_LIBADD = -lc | |
32 | endif | |
33 | ||
34 | noinst_SCRIPTS = test_getcpu_override run-getcpu-override | |
35 | EXTRA_DIST = test_getcpu_override run-getcpu-override | |
36 | ||
37 | all-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 | ||
44 | clean-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 | |
51 | endif |