tests: test_ust_constructor: Use a C-compiled shared object
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / Makefile.am
CommitLineData
a4cc1b1f
MD
1# SPDX-License-Identifier: GPL-2.0-only
2
3AM_CPPFLAGS += -I$(top_srcdir)/tests/utils -I$(srcdir) \
4 -I$(top_srcdir)/tests/utils/testapp
5
6if HAVE_LIBLTTNG_UST_CTL
7# Disable some warnings flags to accomodate the tracepoint headers
8WARN_FLAGS = \
9 -Wno-redundant-decls \
10 -Wno-missing-field-initializers
11
12AM_CFLAGS += $(WARN_FLAGS)
13AM_CXXFLAGS += $(WARN_FLAGS)
14
15if NO_SHARED
16# Build the shared library as a static archive if shared libraries
17# are disabled.
18FORCE_SHARED_LIB_OPTIONS =
19else
20# Force the shared flag on the noinst libraries since they are
21# only built static by default
22FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
23 -rpath $(abs_builddir)
24endif
25
26noinst_LTLIBRARIES = libtp-so-provider.la libtp-so-define.la \
ed1b6b66 27 libtp-so_c-provider.la libtp-so_c-define.la \
ab4919b5
KS
28 libtp-a-provider.la libtp-a-define.la \
29 libtp-a_c-provider.la libtp-a_c-define.la
a4cc1b1f
MD
30
31# dynamic libraries
32libtp_so_provider_la_SOURCES = \
33 tp-so-provider.cpp \
34 tp-so.h
35libtp_so_provider_la_LDFLAGS = \
36 $(FORCE_SHARED_LIB_OPTIONS)
37
38libtp_so_define_la_SOURCES = \
39 tp-so-define.cpp \
40 tp-so.h
41libtp_so_define_la_LDFLAGS = \
42 $(FORCE_SHARED_LIB_OPTIONS)
43
ed1b6b66
KS
44libtp_so_c_provider_la_SOURCES = \
45 tp-so_c-provider.c \
46 tp-so_c.h
47libtp_so_c_provider_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
48
49libtp_so_c_define_la_SOURCES = \
50 tp-so_c-define.c \
51 tp-so_c.h
52libtp_so_c_define_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
53
a4cc1b1f
MD
54# static archives
55libtp_a_provider_la_SOURCES = \
56 tp-a-provider.cpp \
57 tp-a.h
58
59libtp_a_define_la_SOURCES = \
60 tp-a-define.cpp \
61 tp-a.h
62
ab4919b5
KS
63libtp_a_c_provider_la_SOURCES = \
64 tp-a_c-provider.c \
65 tp-a_c.h
66
67libtp_a_c_define_la_SOURCES = \
68 tp-a_c-define.c \
69 tp-a_c.h
70
71
b8e79f3f
KS
72noinst_PROGRAMS = gen-ust-events-constructor \
73 uses_heap
74gen_ust_events_constructor_SOURCES = main.cpp \
a4cc1b1f
MD
75 01-tp-before-define.cpp \
76 02-define-tp.cpp \
77 03-tp-after-define.cpp \
78 04-tp-provider.cpp \
79 05-tp-after-provider.cpp \
80 obj.cpp \
81 obj.h \
82 tp.h
83gen_ust_events_constructor_LDADD = $(UST_LIBS) \
84 $(builddir)/libtp-so-define.la \
85 $(builddir)/libtp-so-provider.la \
ed1b6b66
KS
86 $(builddir)/libtp-so_c-define.la \
87 $(builddir)/libtp-so_c-provider.la \
a4cc1b1f
MD
88 $(builddir)/libtp-a-define.la \
89 $(builddir)/libtp-a-provider.la \
ab4919b5
KS
90 $(builddir)/libtp-a_c-define.la \
91 $(builddir)/libtp-a_c-provider.la \
a4cc1b1f
MD
92 $(top_builddir)/tests/utils/libtestutils.la \
93 $(DL_LIBS)
b8e79f3f
KS
94
95uses_heap_SOURCES = uses_heap.cpp
a4cc1b1f 96endif
This page took 0.030963 seconds and 4 git commands to generate.