348adbe903acc70884887c827233699b9e534685
[lttng-tools.git] / tests / regression / ust / overlap / demo / Makefile.am
1 if NO_SHARED
2 # Do not build this test if shared libraries support was
3 # explicitly disabled.
4
5 CLEANFILES = demo
6
7 EXTRA_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
11 else
12
13 AM_CPPFLAGS += -I$(srcdir)
14
15 # Force the shared flag on the noinst libraries since they are
16 # only built static by default
17 FORCE_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
21 liblttng_ust_provider_ust_tests_demo_la_SOURCES = \
22 tp.c ust_tests_demo.h \
23 tp2.c ust_tests_demo2.h
24 liblttng_ust_provider_ust_tests_demo_la_LIBADD = $(UST_LIBS)
25 liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
26
27 #contains ust_tests_demo3.h provider probes
28 liblttng_ust_provider_ust_tests_demo3_la_SOURCES = tp3.c ust_tests_demo3.h
29 liblttng_ust_provider_ust_tests_demo3_la_LIBADD = $(UST_LIBS)
30 liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
31
32 noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \
33 liblttng-ust-provider-ust-tests-demo3.la
34
35 noinst_PROGRAMS = demo
36 demo_SOURCES = demo.c ust_tests_demo.h
37 # The demo program only depends on libdl/libc for dlopen().
38 demo_LDADD = $(DL_LIBS)
39
40 noinst_SCRIPTS = demo-trace
41 EXTRA_DIST = demo-trace
42
43 all-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
50 clean-local:
51 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
52 for script in $(EXTRA_DIST); do \
53 rm -f $(builddir)/$$script; \
54 done; \
55 fi
56
57 endif
This page took 0.031095 seconds and 4 git commands to generate.