X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2FMakefile.am;h=f12ced228e4611ee6b48361fafe28454b4621b47;hp=e86939b4c0a6a6cac68f5e9504eef960725937f0;hb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;hpb=a9c2df2bfce7a27b53ee5d5101f259f3e1f506b1 diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/Makefile.am b/tests/utils/testapp/userspace-probe-sdt-binary/Makefile.am index e86939b4c..f12ced228 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/Makefile.am +++ b/tests/utils/testapp/userspace-probe-sdt-binary/Makefile.am @@ -1,9 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0-only + EXTRA_DIST = foobar_provider.d + +# Although this is redundant with the check performed in the parent +# Makefile.am, this is needed for autotools v1.16+ as BUILT_SOURCES is +# evaluated for the 'dist' target. +# +# It is fine to generate this header in the 'dist' target (when +# enabled) as it won't be distributed anyhow (it is marked as nodist). +if TEST_SDT_UPROBE BUILT_SOURCES = foobar_provider.h +endif noinst_PROGRAMS = userspace-probe-sdt-binary userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c -userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la -ldl +userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la $(DL_LIBS) userspace_probe_sdt_binary_CFLAGS = -I$(abs_builddir) nodist_userspace_probe_sdt_binary_SOURCES = $(abs_builddir)/foobar_provider.h @@ -26,10 +37,14 @@ libzzz_la_CFLAGS = -I$(abs_builddir) libzzz_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/ nodist_libzzz_la_SOURCES = $(abs_builddir)/foobar_provider.h +dtrace_verbose = $(dtrace_verbose_@AM_V@) +dtrace_verbose_ = $(dtrace_verbose_@AM_DEFAULT_V@) +dtrace_verbose_0 = @echo " DTRACE " $@; + foobar_provider.h: foobar_provider.d - dtrace -s $< -o $@ -h + $(dtrace_verbose)$(DTRACE) -s $< -o $@ -h foobar_provider.o: foobar_provider.d - dtrace -s $< -o $@ -G + $(dtrace_verbose)$(DTRACE) -s $< -o $@ -G CLEANFILES = foobar_provider.h