Fix: tests: don't build dynamic lib tests if support disabled
[lttng-tools.git] / tests / regression / ust / clock-override / Makefile.am
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
12 AM_CPPFLAGS = -I$(srcdir)
13
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)
25
26 if LTTNG_TOOLS_BUILD_WITH_LIBDL
27 lttng_ust_clock_override_test_la_LIBADD = -ldl
28 endif
29 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
30 lttng_ust_clock_override_test_la_LIBADD = -lc
31 endif
32
33 noinst_SCRIPTS = test_clock_override
34 EXTRA_DIST = test_clock_override
35
36 all-local:
37 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
38 for script in $(EXTRA_DIST); do \
39 cp -f $(srcdir)/$$script $(builddir); \
40 done; \
41 fi
42
43 clean-local:
44 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
45 for script in $(EXTRA_DIST); do \
46 rm -f $(builddir)/$$script; \
47 done; \
48 fi
49
50 endif
This page took 0.02966 seconds and 4 git commands to generate.