04b6e8c990f541c71e3d1f87c2c94a67f3c8e8a7
[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 -I$(top_builddir)/include -Wsystem-headers
4
5 # Set LIBS to nothing so the application does not link on useless
6 # libraries.
7 LIBS =
8
9 # Force the shared flag on the noinst libraries since they are
10 # only built static by default
11 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
12 -rpath $(abs_builddir)
13
14 noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \
15 liblttng-ust-provider-ust-tests-demo3.la
16
17 #contains ust_tests_demo.h and ust_tests_demo2.h provider probes
18 liblttng_ust_provider_ust_tests_demo_la_SOURCES = \
19 tp.c ust_tests_demo.h \
20 tp2.c ust_tests_demo2.h
21 liblttng_ust_provider_ust_tests_demo_la_LIBADD = \
22 $(top_builddir)/liblttng-ust/liblttng-ust.la
23 liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = \
24 $(FORCE_SHARED_LIB_OPTIONS)
25
26 #contains ust_tests_demo3.h provider probes
27 liblttng_ust_provider_ust_tests_demo3_la_SOURCES = \
28 tp3.c ust_tests_demo3.h
29 liblttng_ust_provider_ust_tests_demo3_la_LIBADD = \
30 $(top_builddir)/liblttng-ust/liblttng-ust.la
31 liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = \
32 $(FORCE_SHARED_LIB_OPTIONS)
33
34 noinst_PROGRAMS = demo
35 demo_SOURCES = demo.c ust_tests_demo.h
36 # The demo program only depends on libdl.
37 demo_LDFLAGS = -ldl
This page took 0.029687 seconds and 3 git commands to generate.