Commit | Line | Data |
---|---|---|
199800b2 JR |
1 | AM_CPPFLAGS = -I$(srcdir) |
2 | ||
3 | # The rpath is necessary because libtool won't build a shared library | |
4 | # if it's noinst_ | |
5 | GETCPU_LIBTOOL_FLAGS = \ | |
6 | -module \ | |
7 | -shared \ | |
8 | -avoid-version \ | |
9 | --no-as-needed \ | |
10 | -rpath $(abs_builddir) | |
11 | ||
12 | noinst_LTLIBRARIES = lttng-ust-clock-override-test.la | |
13 | lttng_ust_clock_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS) | |
14 | ||
15 | if LTTNG_TOOLS_BUILD_WITH_LIBDL | |
16 | lttng_ust_clock_override_test_la_LIBADD = -ldl | |
17 | endif | |
18 | if LTTNG_TOOLS_BUILD_WITH_LIBC_DL | |
19 | lttng_ust_clock_override_test_la_LIBADD = -lc | |
20 | endif | |
21 | ||
1df1febe JG |
22 | noinst_SCRIPTS = test_clock_override |
23 | EXTRA_DIST = test_clock_override | |
199800b2 JR |
24 | |
25 | all-local: | |
26 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
27 | for script in $(EXTRA_DIST); do \ | |
28 | cp -f $(srcdir)/$$script $(builddir); \ | |
29 | done; \ | |
30 | fi | |
31 | ||
32 | clean-local: | |
33 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
34 | for script in $(EXTRA_DIST); do \ | |
35 | rm -f $(builddir)/$$script; \ | |
36 | done; \ | |
37 | fi |