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