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