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 \
28 libtp-a_c-provider.la libtp-a_c-define.la
31 libtp_so_provider_la_SOURCES = \
34 libtp_so_provider_la_LDFLAGS = \
35 $(FORCE_SHARED_LIB_OPTIONS)
37 libtp_so_define_la_SOURCES = \
40 libtp_so_define_la_LDFLAGS = \
41 $(FORCE_SHARED_LIB_OPTIONS)
44 libtp_a_provider_la_SOURCES = \
48 libtp_a_define_la_SOURCES = \
52 libtp_a_c_provider_la_SOURCES = \
56 libtp_a_c_define_la_SOURCES = \
61 noinst_PROGRAMS = gen-ust-events-constructor \
63 gen_ust_events_constructor_SOURCES = main.cpp \
64 01-tp-before-define.cpp \
66 03-tp-after-define.cpp \
68 05-tp-after-provider.cpp \
72 gen_ust_events_constructor_LDADD = $(UST_LIBS) \
73 $(builddir)/libtp-so-define.la \
74 $(builddir)/libtp-so-provider.la \
75 $(builddir)/libtp-a-define.la \
76 $(builddir)/libtp-a-provider.la \
77 $(builddir)/libtp-a_c-define.la \
78 $(builddir)/libtp-a_c-provider.la \
79 $(top_builddir)/tests/utils/libtestutils.la \
82 uses_heap_SOURCES = uses_heap.cpp