2a226303aa7d36c4455ce4ad5c9477dcf0b4b911
[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) -I$(top_srcdir)/src
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 lttng_ust_clock_override_test_la_SOURCES = lttng-ust-clock-override-test.c
26
27 if LTTNG_TOOLS_BUILD_WITH_LIBDL
28 lttng_ust_clock_override_test_la_LIBADD = -ldl
29 endif
30 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
31 lttng_ust_clock_override_test_la_LIBADD = -lc
32 endif
33
34 noinst_SCRIPTS = test_clock_override
35 EXTRA_DIST = test_clock_override
36
37 all-local:
38 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
39 for script in $(EXTRA_DIST); do \
40 cp -f $(srcdir)/$$script $(builddir); \
41 done; \
42 fi
43
44 clean-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 rm -f $(builddir)/$$script; \
48 done; \
49 fi
50
51 endif
This page took 0.03004 seconds and 3 git commands to generate.