Force the building of shared noinst libraries in the demo test program
[lttng-ust.git] / tests / demo / Makefile.am
1 # -Wsystem-headers is needed to print warnings in the tracepoint
2 # description file.
3 AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers
4
5 # Force the shared flag on the noinst libraries since they are
6 # only build static by default
7 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
8 -rpath $(abs_builddir)
9
10 noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \
11 liblttng-ust-provider-ust-tests-demo3.la
12
13 #contains ust_tests_demo.h and ust_tests_demo2.h provider probes
14 liblttng_ust_provider_ust_tests_demo_la_SOURCES = \
15 tp.c ust_tests_demo.h \
16 tp2.c ust_tests_demo2.h
17 liblttng_ust_provider_ust_tests_demo_la_LIBADD = \
18 $(top_builddir)/liblttng-ust/liblttng-ust.la
19 liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
20
21 #contains ust_tests_demo3.h provider probes
22 liblttng_ust_provider_ust_tests_demo3_la_SOURCES = \
23 tp3.c ust_tests_demo3.h
24 liblttng_ust_provider_ust_tests_demo3_la_LIBADD = \
25 $(top_builddir)/liblttng-ust/liblttng-ust.la
26 liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
27
28 noinst_PROGRAMS = demo
29 demo_SOURCES = demo.c ust_tests_demo.h
30 # The demo program only depends on libdl.
31 demo_LIBS = -ldl
This page took 0.031147 seconds and 5 git commands to generate.