Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
cdbfb1b9 MD |
3 | if NO_SHARED |
4 | # Do not build this test if shared libraries support was | |
5 | # explicitly disabled. | |
6 | ||
7 | CLEANFILES = lttng-ust-clock-override-test.so \ | |
8 | lttng-ust-clock-override-test.so.debug | |
9 | ||
10 | EXTRA_DIST = test_clock_override lttng-ust-clock-override-test.c | |
11 | ||
12 | else | |
13 | ||
199800b2 JR |
14 | # The rpath is necessary because libtool won't build a shared library |
15 | # if it's noinst_ | |
16 | GETCPU_LIBTOOL_FLAGS = \ | |
17 | -module \ | |
18 | -shared \ | |
19 | -avoid-version \ | |
20 | --no-as-needed \ | |
21 | -rpath $(abs_builddir) | |
22 | ||
23 | noinst_LTLIBRARIES = lttng-ust-clock-override-test.la | |
24 | lttng_ust_clock_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) | |
4508697c | 25 | lttng_ust_clock_override_test_la_SOURCES = lttng-ust-clock-override-test.c |
b1c46f87 | 26 | lttng_ust_clock_override_test_la_LIBADD = $(DL_LIBS) |
199800b2 | 27 | |
1df1febe JG |
28 | noinst_SCRIPTS = test_clock_override |
29 | EXTRA_DIST = test_clock_override | |
199800b2 JR |
30 | |
31 | all-local: | |
32 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
33 | for script in $(EXTRA_DIST); do \ | |
34 | cp -f $(srcdir)/$$script $(builddir); \ | |
35 | done; \ | |
36 | fi | |
37 | ||
38 | clean-local: | |
39 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
40 | for script in $(EXTRA_DIST); do \ | |
41 | rm -f $(builddir)/$$script; \ | |
42 | done; \ | |
43 | fi | |
cdbfb1b9 MD |
44 | |
45 | endif |