X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2FMakefile.am;h=d160d920d9b0006368286e810b7a41834c0ef5be;hb=86cf031ae8be7633ff8eee0cd0bf503b331cfc34;hp=ace00160b2511cd98402a4196d3dfd8a7b711aca;hpb=d7c5433442024fc55c8e9e4299c9105ed2c961ae;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 ace00160b..d160d920d 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 -LIBS += -ldl -endif -if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -LIBS += -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) -lurcu-bp \ + $(top_builddir)/tests/utils/libtestutils.la \ + $(DL_LIBS) endif