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)
15 noinst_LTLIBRARIES = libtp-a-provider.la libtp-a-define.la \
16 libtp-a_c-provider.la libtp-a_c-define.la
17 noinst_PROGRAMS = gen-ust-events-constructor-a \
21 # Build the shared library as a static archive if shared libraries
23 FORCE_SHARED_LIB_OPTIONS =
25 # Force the shared flag on the noinst libraries since they are
26 # only built static by default
27 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
28 -rpath $(abs_builddir)
30 noinst_LTLIBRARIES += libtp-so-provider.la libtp-so-define.la \
31 libtp-so_c-provider.la libtp-so_c-define.la
32 noinst_PROGRAMS += gen-ust-events-constructor-so
37 libtp_so_provider_la_SOURCES = \
40 libtp_so_provider_la_LDFLAGS = \
41 $(FORCE_SHARED_LIB_OPTIONS)
43 libtp_so_define_la_SOURCES = \
46 libtp_so_define_la_LDFLAGS = \
47 $(FORCE_SHARED_LIB_OPTIONS)
49 libtp_so_c_provider_la_SOURCES = \
52 libtp_so_c_provider_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
54 libtp_so_c_define_la_SOURCES = \
57 libtp_so_c_define_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
60 libtp_a_provider_la_SOURCES = \
64 libtp_a_define_la_SOURCES = \
68 libtp_a_c_provider_la_SOURCES = \
72 libtp_a_c_define_la_SOURCES = \
77 gen_ust_events_constructor_so_SOURCES = main.cpp \
78 01-tp-before-define.cpp \
80 03-tp-after-define.cpp \
82 05-tp-after-provider.cpp \
86 gen_ust_events_constructor_so_LDADD = $(UST_LIBS) \
87 $(builddir)/libtp-so-define.la \
88 $(builddir)/libtp-so-provider.la \
89 $(builddir)/libtp-so_c-define.la \
90 $(builddir)/libtp-so_c-provider.la \
91 $(top_builddir)/tests/utils/libtestutils.la \
94 gen_ust_events_constructor_a_SOURCES = main-a.cpp \
95 01-tp-before-define.cpp \
97 03-tp-after-define.cpp \
99 05-tp-after-provider.cpp \
103 gen_ust_events_constructor_a_LDADD = $(UST_LIBS) \
104 $(builddir)/libtp-a-define.la \
105 $(builddir)/libtp-a-provider.la \
106 $(builddir)/libtp-a_c-define.la \
107 $(builddir)/libtp-a_c-provider.la \
108 $(top_builddir)/tests/utils/libtestutils.la \
111 uses_heap_SOURCES = uses_heap.cpp