configure: add '-Wredundant-decls' to warning flags
[lttng-tools.git] / tests / regression / ust / overlap / demo / Makefile.am
CommitLineData
9d16b343
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
ccf7af6c
CB
3if NO_SHARED
4# Do not build this test if shared libraries support was
5# explicitly disabled.
cdbfb1b9
MD
6
7CLEANFILES = demo
8
9EXTRA_DIST = demo-trace demo.c ust_tests_demo.h \
10 tp3.c ust_tests_demo3.h tp2.c ust_tests_demo2.h \
11 tp.c ust_tests_demo.h
12
ccf7af6c 13else
cdbfb1b9 14
343af227 15AM_CPPFLAGS += -I$(srcdir)
cdbfb1b9 16
19708280
MJ
17# Disable some warnings flags to accomodate the tracepoint headers
18AM_CFLAGS += \
19 -Wno-redundant-decls
20
ccf7af6c
CB
21# Force the shared flag on the noinst libraries since they are
22# only built static by default
26b53d3b
DG
23FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
24 -rpath $(abs_builddir)
25
26#contains ust_tests_demo.h and ust_tests_demo2.h provider probes
27liblttng_ust_provider_ust_tests_demo_la_SOURCES = \
28 tp.c ust_tests_demo.h \
29 tp2.c ust_tests_demo2.h
20dd2de1 30liblttng_ust_provider_ust_tests_demo_la_LIBADD = $(UST_LIBS)
26b53d3b
DG
31liblttng_ust_provider_ust_tests_demo_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
32
33#contains ust_tests_demo3.h provider probes
34liblttng_ust_provider_ust_tests_demo3_la_SOURCES = tp3.c ust_tests_demo3.h
20dd2de1 35liblttng_ust_provider_ust_tests_demo3_la_LIBADD = $(UST_LIBS)
26b53d3b
DG
36liblttng_ust_provider_ust_tests_demo3_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
37
38noinst_LTLIBRARIES = liblttng-ust-provider-ust-tests-demo.la \
39 liblttng-ust-provider-ust-tests-demo3.la
40
41noinst_PROGRAMS = demo
42demo_SOURCES = demo.c ust_tests_demo.h
43# The demo program only depends on libdl/libc for dlopen().
b1c46f87 44demo_LDADD = $(DL_LIBS)
0a340972
DG
45
46noinst_SCRIPTS = demo-trace
47EXTRA_DIST = demo-trace
c83e7ca0
DG
48
49all-local:
50 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
51 for script in $(EXTRA_DIST); do \
52 cp -f $(srcdir)/$$script $(builddir); \
53 done; \
54 fi
55
56clean-local:
57 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
58 for script in $(EXTRA_DIST); do \
59 rm -f $(builddir)/$$script; \
60 done; \
61 fi
cdbfb1b9 62
ccf7af6c 63endif
This page took 0.046421 seconds and 4 git commands to generate.