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 | # 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) | |
4508697c | 24 | lttng_ust_getcpu_override_test_la_SOURCES = lttng-ust-getcpu-override-test.c |
b1c46f87 | 25 | lttng_ust_getcpu_override_test_la_LIBADD = $(DL_LIBS) |
568d7e2d JR |
26 | |
27 | noinst_SCRIPTS = test_getcpu_override run-getcpu-override | |
28 | EXTRA_DIST = test_getcpu_override run-getcpu-override | |
29 | ||
30 | all-local: | |
31 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
32 | for script in $(EXTRA_DIST); do \ | |
33 | cp -f $(srcdir)/$$script $(builddir); \ | |
34 | done; \ | |
35 | fi | |
36 | ||
37 | clean-local: | |
38 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
39 | for script in $(EXTRA_DIST); do \ | |
40 | rm -f $(builddir)/$$script; \ | |
41 | done; \ | |
42 | fi | |
cdbfb1b9 MD |
43 | |
44 | endif |