Fix: support VPATH build for tests
[lttng-tools.git] / tests / regression / ust / overlap / demo / Makefile.am
CommitLineData
26b53d3b 1AM_CFLAGS=-I$(srcdir)
ccf7af6c
CB
2if NO_SHARED
3# Do not build this test if shared libraries support was
4# explicitly disabled.
5else
6# Force the shared flag on the noinst libraries since they are
7# only built static by default
26b53d3b
DG
8FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
9 -rpath $(abs_builddir)
10
11#contains ust_tests_demo.h and ust_tests_demo2.h provider probes
12liblttng_ust_provider_ust_tests_demo_la_SOURCES = \
13 tp.c ust_tests_demo.h \
14 tp2.c ust_tests_demo2.h
15liblttng_ust_provider_ust_tests_demo_la_LIBADD = -llttng-ust
16liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
17
18#contains ust_tests_demo3.h provider probes
19liblttng_ust_provider_ust_tests_demo3_la_SOURCES = tp3.c ust_tests_demo3.h
20liblttng_ust_provider_ust_tests_demo3_la_LIBADD = -llttng-ust
21liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
22
23noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \
24 liblttng-ust-provider-ust-tests-demo3.la
25
26noinst_PROGRAMS = demo
27demo_SOURCES = demo.c ust_tests_demo.h
28# The demo program only depends on libdl/libc for dlopen().
29if LTTNG_TOOLS_BUILD_WITH_LIBDL
30demo_LDADD = -ldl
31endif
32if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
33demo_LDADD = -lc
34endif
0a340972
DG
35
36noinst_SCRIPTS = demo-trace
37EXTRA_DIST = demo-trace
c83e7ca0
DG
38
39all-local:
40 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
41 for script in $(EXTRA_DIST); do \
42 cp -f $(srcdir)/$$script $(builddir); \
43 done; \
44 fi
45
46clean-local:
47 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
48 for script in $(EXTRA_DIST); do \
49 rm -f $(builddir)/$$script; \
50 done; \
51 fi
ccf7af6c 52endif
This page took 0.029979 seconds and 5 git commands to generate.