X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2FMakefile.am;h=33c2d41efa8795b960ea08ccc864373a7fbeaf06;hb=95983a02c557a99506716fc2c28f74be37def2b3;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..33c2d41ef 100644 --- a/tests/utils/testapp/gen-ust-nevents/Makefile.am +++ b/tests/utils/testapp/gen-ust-nevents/Makefile.am @@ -1,15 +1,10 @@ -AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir) -O2 -g -AM_LDFLAGS = - -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 = -llttng-ust -lurcu-bp \ + $(top_builddir)/tests/utils/libtestutils.la \ + $(DL_LIBS) endif