X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2FMakefile.am;h=f85d35a13217342fdae671bac0c6ce0f98e77398;hb=6718a79b6e5cc242bc70ca581c62008a29a9d5a8;hp=b3212228fe2a6a852c6e125a4ba4ee9cd486e321;hpb=ae941114b338a4e6afb683345ee5f4fcc4296e01;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 b3212228f..f85d35a13 100644 --- a/tests/utils/testapp/gen-ust-nevents/Makefile.am +++ b/tests/utils/testapp/gen-ust-nevents/Makefile.am @@ -1,16 +1,10 @@ -AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(srcdir) \ - -I$(top_srcdir)/tests/utils -O2 -g - -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 \ - $(top_builddir)/tests/utils/libtestutils.la +gen_ust_nevents_LDADD = $(UST_LIBS) -lurcu-bp \ + $(top_builddir)/tests/utils/libtestutils.la \ + $(DL_LIBS) endif