X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Flow-throughput%2FMakefile.am;h=95022b9f98e9ede50fe48d9cf1722a6efd3077d6;hb=b1c46f877df8d424d82125f32e2dabd651280f3b;hp=a1df9f5e2600dcd8304b4beae25cb43d2f347feb;hpb=9ac429ef32142eaecfec2d1a44569464c4f8f721;p=lttng-tools.git diff --git a/tests/regression/ust/low-throughput/Makefile.am b/tests/regression/ust/low-throughput/Makefile.am index a1df9f5e2..95022b9f9 100644 --- a/tests/regression/ust/low-throughput/Makefile.am +++ b/tests/regression/ust/low-throughput/Makefile.am @@ -1,16 +1,22 @@ -AM_CFLAGS = -I$(srcdir) -O2 -AM_LDFLAGS = -llttng-ust - -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) noinst_PROGRAMS = gen-events gen_events_SOURCES = main.c tp.c tp.h -gen_events_LDADD = -llttng-ust -lurcu +gen_events_LDADD = -llttng-ust -lurcu $(DL_LIBS) + +noinst_SCRIPTS = test_low_throughput +EXTRA_DIST = test_low_throughput + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi -noinst_SCRIPTS = run -EXTRA_DIST = run +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi