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 \
18 gen-ust-events-c-constructor-a \
22 # Build the shared library as a static archive if shared libraries
24 FORCE_SHARED_LIB_OPTIONS =
26 # Force the shared flag on the noinst libraries since they are
27 # only built static by default
28 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
29 -rpath $(abs_builddir)
31 noinst_LTLIBRARIES += libtp-so-provider.la libtp-so-define.la \
32 libtp-so_c-provider.la libtp-so_c-define.la
33 noinst_PROGRAMS += gen-ust-events-constructor-so \
34 gen-ust-events-c-constructor-so
39 libtp_so_provider_la_SOURCES = \
42 libtp_so_provider_la_LDFLAGS = \
43 $(FORCE_SHARED_LIB_OPTIONS)
45 libtp_so_define_la_SOURCES = \
48 libtp_so_define_la_LDFLAGS = \
49 $(FORCE_SHARED_LIB_OPTIONS)
51 libtp_so_c_provider_la_SOURCES = \
54 libtp_so_c_provider_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
56 libtp_so_c_define_la_SOURCES = \
59 libtp_so_c_define_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
62 libtp_a_provider_la_SOURCES = \
66 libtp_a_define_la_SOURCES = \
70 libtp_a_c_provider_la_SOURCES = \
74 libtp_a_c_define_la_SOURCES = \
79 gen_ust_events_constructor_so_SOURCES = main.cpp \
80 01-tp-before-define.cpp \
82 03-tp-after-define.cpp \
84 05-tp-after-provider.cpp \
88 gen_ust_events_constructor_so_LDADD = $(UST_LIBS) \
89 $(builddir)/libtp-so-define.la \
90 $(builddir)/libtp-so-provider.la \
91 $(builddir)/libtp-so_c-define.la \
92 $(builddir)/libtp-so_c-provider.la \
93 $(top_builddir)/tests/utils/libtestutils.la \
96 gen_ust_events_c_constructor_so_SOURCES = main_c-so.c \
97 01-c-tp-before-define.c \
99 03-c-tp-after-define.c \
101 05-c-tp-after-provider.c \
103 gen_ust_events_c_constructor_so_LDADD = $(UST_LIBS) \
104 $(builddir)/libtp-so-define.la \
105 $(builddir)/libtp-so-provider.la \
106 $(builddir)/libtp-so_c-define.la \
107 $(builddir)/libtp-so_c-provider.la \
108 $(top_builddir)/tests/utils/libtestutils.la \
111 gen_ust_events_constructor_a_SOURCES = main-a.cpp \
112 01-tp-before-define.cpp \
114 03-tp-after-define.cpp \
116 05-tp-after-provider.cpp \
120 gen_ust_events_constructor_a_LDADD = $(UST_LIBS) \
121 $(builddir)/libtp-a-define.la \
122 $(builddir)/libtp-a-provider.la \
123 $(builddir)/libtp-a_c-define.la \
124 $(builddir)/libtp-a_c-provider.la \
125 $(top_builddir)/tests/utils/libtestutils.la \
128 gen_ust_events_c_constructor_a_SOURCES = main_c-a.c \
129 01-c-tp-before-define.c \
131 03-c-tp-after-define.c \
133 05-c-tp-after-provider.c \
135 gen_ust_events_c_constructor_a_LDADD = $(UST_LIBS) \
136 $(builddir)/libtp-a_c-define.la \
137 $(builddir)/libtp-a_c-provider.la \
138 $(top_builddir)/tests/utils/libtestutils.la \
141 uses_heap_SOURCES = uses_heap.cpp