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