X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2FMakefile.am;h=0ddbd9d390a489947969dcf0a78e81ce1c2bf224;hb=7ccba6cb4d96e233ad7fa3cd412a44829781dd17;hp=d62c06db99a48cd53ae8a56acf87e01878e99ef9;hpb=32f754b34658ed4bda092acc56ec3cdb28e4fe98;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-nevents/Makefile.am b/tests/utils/testapp/gen-ust-nevents/Makefile.am index d62c06db9..0ddbd9d39 100644 --- a/tests/utils/testapp/gen-ust-nevents/Makefile.am +++ b/tests/utils/testapp/gen-ust-nevents/Makefile.am @@ -1,15 +1,12 @@ -AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir) -O2 -g -AM_LDFLAGS = +# SPDX-License-Identifier: GPL-2.0-only -if LTTNG_TOOLS_BUILD_WITH_LIBDL -AM_LDFLAGS += -ldl -endif -if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -AM_LDFLAGS += -lc -endif +AM_CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/tests/utils \ + -I$(top_srcdir)/tests/utils/testapp if HAVE_LIBLTTNG_UST_CTL noinst_PROGRAMS = gen-ust-nevents gen_ust_nevents_SOURCES = gen-ust-nevents.c tp.c tp.h -gen_ust_nevents_LDADD = -llttng-ust -lurcu-bp +gen_ust_nevents_LDADD = $(UST_LIBS) \ + $(top_builddir)/tests/utils/libtestutils.la \ + $(DL_LIBS) endif