1 # SPDX-License-Identifier: GPL-2.0-only
3 AM_CPPFLAGS += -I$(top_srcdir)/tests/utils -I$(srcdir) \
4 -I$(top_srcdir)/tests/utils/testapp
6 if HAVE_LIBLTTNG_UST_CTL
7 # Disable some warnings flags to accomodate the tracepoint headers
10 -Wno-missing-field-initializers
12 AM_CFLAGS += $(WARN_FLAGS)
13 AM_CXXFLAGS += $(WARN_FLAGS)
16 # Build the shared library as a static archive if shared libraries
18 FORCE_SHARED_LIB_OPTIONS =
20 # Force the shared flag on the noinst libraries since they are
21 # only built static by default
22 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
23 -rpath $(abs_builddir)
26 noinst_LTLIBRARIES = libtp-so-provider.la libtp-so-define.la \
27 libtp-a-provider.la libtp-a-define.la
30 libtp_so_provider_la_SOURCES = \
33 libtp_so_provider_la_LDFLAGS = \
34 $(FORCE_SHARED_LIB_OPTIONS)
36 libtp_so_define_la_SOURCES = \
39 libtp_so_define_la_LDFLAGS = \
40 $(FORCE_SHARED_LIB_OPTIONS)
43 libtp_a_provider_la_SOURCES = \
47 libtp_a_define_la_SOURCES = \
51 noinst_PROGRAMS = gen-ust-events-constructor
52 gen_ust_events_constructor_SOURCES = \
54 01-tp-before-define.cpp \
56 03-tp-after-define.cpp \
58 05-tp-after-provider.cpp \
62 gen_ust_events_constructor_LDADD = $(UST_LIBS) \
63 $(builddir)/libtp-so-define.la \
64 $(builddir)/libtp-so-provider.la \
65 $(builddir)/libtp-a-define.la \
66 $(builddir)/libtp-a-provider.la \
67 $(top_builddir)/tests/utils/libtestutils.la \