Commit | Line | Data |
---|---|---|
ff412fb5 MD |
1 | # -Wsystem-headers is needed to print warnings in the tracepoint |
2 | # description file. | |
b6e4919f | 3 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/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 | ||
824a00a7 MD |
9 | if NO_SHARED |
10 | # Do not build this test if shared libraries support was | |
11 | # explicitly disabled. | |
12 | else | |
9036849a | 13 | # Force the shared flag on the noinst libraries since they are |
35129359 | 14 | # only built static by default |
9036849a YB |
15 | FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ |
16 | -rpath $(abs_builddir) | |
4937e69d | 17 | |
9036849a | 18 | noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \ |
deb6e540 MD |
19 | liblttng-ust-provider-ust-tests-demo3.la |
20 | ||
21 | #contains ust_tests_demo.h and ust_tests_demo2.h provider probes | |
22 | liblttng_ust_provider_ust_tests_demo_la_SOURCES = \ | |
23 | tp.c ust_tests_demo.h \ | |
24 | tp2.c ust_tests_demo2.h | |
25 | liblttng_ust_provider_ust_tests_demo_la_LIBADD = \ | |
26 | $(top_builddir)/liblttng-ust/liblttng-ust.la | |
a8566918 | 27 | liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = \ |
35129359 | 28 | $(FORCE_SHARED_LIB_OPTIONS) |
deb6e540 MD |
29 | |
30 | #contains ust_tests_demo3.h provider probes | |
31 | liblttng_ust_provider_ust_tests_demo3_la_SOURCES = \ | |
32 | tp3.c ust_tests_demo3.h | |
33 | liblttng_ust_provider_ust_tests_demo3_la_LIBADD = \ | |
34 | $(top_builddir)/liblttng-ust/liblttng-ust.la | |
a8566918 | 35 | liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = \ |
35129359 | 36 | $(FORCE_SHARED_LIB_OPTIONS) |
deb6e540 | 37 | |
580d134b | 38 | noinst_PROGRAMS = demo |
deb6e540 | 39 | demo_SOURCES = demo.c ust_tests_demo.h |
c6c454ab MD |
40 | # The demo program only depends on libdl/libc for dlopen(). |
41 | if LTTNG_UST_BUILD_WITH_LIBDL | |
42 | demo_LDADD = -ldl | |
43 | endif | |
44 | if LTTNG_UST_BUILD_WITH_LIBC_DL | |
45 | demo_LDADD = -lc | |
46 | endif | |
47 | ||
824a00a7 | 48 | endif |