Use pkgconfig to detect and configure liblttng-ust
[lttng-tools.git] / tests / regression / ust / overlap / demo / Makefile.am
... / ...
CommitLineData
1if NO_SHARED
2# Do not build this test if shared libraries support was
3# explicitly disabled.
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
11else
12
13AM_CPPFLAGS += -I$(srcdir)
14
15# Force the shared flag on the noinst libraries since they are
16# only built static by default
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 = $(UST_LIBS)
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 = $(UST_LIBS)
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().
38demo_LDADD = $(DL_LIBS)
39
40noinst_SCRIPTS = demo-trace
41EXTRA_DIST = demo-trace
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
56
57endif
This page took 0.022407 seconds and 4 git commands to generate.