Fix: Don't override user variables within the build system
[lttng-tools.git] / tests / regression / ust / clock-override / Makefile.am
CommitLineData
cdbfb1b9
MD
1if NO_SHARED
2# Do not build this test if shared libraries support was
3# explicitly disabled.
4
5CLEANFILES = lttng-ust-clock-override-test.so \
6 lttng-ust-clock-override-test.so.debug
7
8EXTRA_DIST = test_clock_override lttng-ust-clock-override-test.c
9
10else
11
199800b2
JR
12# The rpath is necessary because libtool won't build a shared library
13# if it's noinst_
14GETCPU_LIBTOOL_FLAGS = \
15 -module \
16 -shared \
17 -avoid-version \
18 --no-as-needed \
19 -rpath $(abs_builddir)
20
21noinst_LTLIBRARIES = lttng-ust-clock-override-test.la
22lttng_ust_clock_override_test_la_LDFLAGS = $(GETCPU_LIBTOOL_FLAGS)
4508697c 23lttng_ust_clock_override_test_la_SOURCES = lttng-ust-clock-override-test.c
199800b2
JR
24
25if LTTNG_TOOLS_BUILD_WITH_LIBDL
26lttng_ust_clock_override_test_la_LIBADD = -ldl
27endif
28if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
29lttng_ust_clock_override_test_la_LIBADD = -lc
30endif
31
1df1febe
JG
32noinst_SCRIPTS = test_clock_override
33EXTRA_DIST = test_clock_override
199800b2
JR
34
35all-local:
36 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
37 for script in $(EXTRA_DIST); do \
38 cp -f $(srcdir)/$$script $(builddir); \
39 done; \
40 fi
41
42clean-local:
43 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
44 for script in $(EXTRA_DIST); do \
45 rm -f $(builddir)/$$script; \
46 done; \
47 fi
cdbfb1b9
MD
48
49endif
This page took 0.033355 seconds and 5 git commands to generate.