Commit | Line | Data |
---|---|---|
ff412fb5 MD |
1 | # -Wsystem-headers is needed to print warnings in the tracepoint |
2 | # description file. | |
3 | AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers | |
580d134b | 4 | |
a8566918 MD |
5 | # Set LIBS to nothing so the application does not link on useless |
6 | # libraries. | |
7 | LIBS = | |
8 | ||
9036849a YB |
9 | # Force the shared flag on the noinst libraries since they are |
10 | # only build static by default | |
11 | FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ | |
12 | -rpath $(abs_builddir) | |
4937e69d | 13 | |
a8566918 MD |
14 | PROBE_LIBS = -lurcu-bp -lurcu-bp -luuid -lpthread -ldl |
15 | ||
9036849a | 16 | noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \ |
deb6e540 MD |
17 | liblttng-ust-provider-ust-tests-demo3.la |
18 | ||
19 | #contains ust_tests_demo.h and ust_tests_demo2.h provider probes | |
20 | liblttng_ust_provider_ust_tests_demo_la_SOURCES = \ | |
21 | tp.c ust_tests_demo.h \ | |
22 | tp2.c ust_tests_demo2.h | |
23 | liblttng_ust_provider_ust_tests_demo_la_LIBADD = \ | |
24 | $(top_builddir)/liblttng-ust/liblttng-ust.la | |
a8566918 MD |
25 | liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = \ |
26 | $(FORCE_SHARED_LIB_OPTIONS) \ | |
27 | $(PROBE_LIBS) | |
deb6e540 MD |
28 | |
29 | #contains ust_tests_demo3.h provider probes | |
30 | liblttng_ust_provider_ust_tests_demo3_la_SOURCES = \ | |
31 | tp3.c ust_tests_demo3.h | |
32 | liblttng_ust_provider_ust_tests_demo3_la_LIBADD = \ | |
33 | $(top_builddir)/liblttng-ust/liblttng-ust.la | |
a8566918 MD |
34 | liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = \ |
35 | $(FORCE_SHARED_LIB_OPTIONS) \ | |
36 | $(PROBE_LIBS) | |
deb6e540 | 37 | |
580d134b | 38 | noinst_PROGRAMS = demo |
deb6e540 | 39 | demo_SOURCES = demo.c ust_tests_demo.h |
6d638c86 | 40 | # The demo program only depends on libdl. |
a8566918 | 41 | demo_LDFLAGS = -ldl |