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-clock-override-test.so \ | |
6 | lttng-ust-clock-override-test.so.debug | |
7 | ||
8 | EXTRA_DIST = test_clock_override lttng-ust-clock-override-test.c | |
9 | ||
10 | else | |
11 | ||
199800b2 JR |
12 | # The rpath is necessary because libtool won't build a shared library |
13 | # if it's noinst_ | |
14 | GETCPU_LIBTOOL_FLAGS = \ | |
15 | -module \ | |
16 | -shared \ | |
17 | -avoid-version \ | |
18 | --no-as-needed \ | |
19 | -rpath $(abs_builddir) | |
20 | ||
21 | noinst_LTLIBRARIES = lttng-ust-clock-override-test.la | |
22 | lttng_ust_clock_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) | |
4508697c | 23 | lttng_ust_clock_override_test_la_SOURCES = lttng-ust-clock-override-test.c |
b1e91030 | 24 | lttng_ust_clock_override_test_la_LIBADD = $(DL_LIBS) |
199800b2 | 25 | |
1df1febe JG |
26 | noinst_SCRIPTS = test_clock_override |
27 | EXTRA_DIST = test_clock_override | |
199800b2 JR |
28 | |
29 | all-local: | |
30 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
31 | for script in $(EXTRA_DIST); do \ | |
32 | cp -f $(srcdir)/$$script $(builddir); \ | |
33 | done; \ | |
34 | fi | |
35 | ||
36 | clean-local: | |
37 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
38 | for script in $(EXTRA_DIST); do \ | |
39 | rm -f $(builddir)/$$script; \ | |
40 | done; \ | |
41 | fi | |
cdbfb1b9 MD |
42 | |
43 | endif |