Fix: Conditionally disable test requiring shared libs
[lttng-tools.git] / tests / 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
ccf7af6c 38endif
This page took 0.024076 seconds and 4 git commands to generate.