| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | SUBDIRS = event_name field_stats |
| 4 | |
| 5 | AM_CPPFLAGS += -I$(srcdir) |
| 6 | AM_CXXFLAGS += $(babeltrace2_CFLAGS) \ |
| 7 | $(WARN_FLAGS) |
| 8 | |
| 9 | noinst_LTLIBRARIES = lttngtest.la |
| 10 | |
| 11 | # lttng-tools uses -fvisibility=hidden by default, but to |
| 12 | # produce a loadable plugin some of the symbols must not be |
| 13 | # hidden. Override the `-fvisibility` for this shared object. |
| 14 | lttngtest_la_CXXFLAGS = \ |
| 15 | $(AM_CXXFLAGS) \ |
| 16 | -fvisibility=default |
| 17 | |
| 18 | lttngtest_la_SOURCES = \ |
| 19 | lttngtest-plugin.cpp \ |
| 20 | fmt.hpp \ |
| 21 | utils.hpp |
| 22 | |
| 23 | lttngtest_la_LDFLAGS = \ |
| 24 | $(AM_LDFLAGS) \ |
| 25 | $(LD_NO_UNDEFINED) \ |
| 26 | $(top_builddir)/src/vendor/fmt/libfmt.la \ |
| 27 | -rpath / -avoid-version -module $(LD_NOTEXT) |
| 28 | |
| 29 | lttngtest_la_LIBADD = \ |
| 30 | event_name/event_name.la \ |
| 31 | field_stats/field_stats.la |