Fix: make dist fails on sdt-probe test with autotools v1.16+
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / Makefile.am
1 EXTRA_DIST = foobar_provider.d
2
3 # Although this is redundant with the check performed in the parent
4 # Makefile.am, this is needed for autotools v1.16+ as BUILT_SOURCES is
5 # evaluated for the 'dist' target.
6 #
7 # It is fine to generate this header in the 'dist' target (when
8 # enabled) as it won't be distributed anyhow (it is marked as nodist).
9 if TEST_SDT_UPROBE
10 BUILT_SOURCES = foobar_provider.h
11 endif
12
13 noinst_PROGRAMS = userspace-probe-sdt-binary
14 userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c
15 userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la $(DL_LIBS)
16 userspace_probe_sdt_binary_CFLAGS = -I$(abs_builddir)
17 nodist_userspace_probe_sdt_binary_SOURCES = $(abs_builddir)/foobar_provider.h
18
19 noinst_LTLIBRARIES = libfoo.la libbar.la libzzz.la
20 libfoo_la_SOURCES = libfoo.h libfoo.c
21 libfoo_la_LIBADD = foobar_provider.o
22 libfoo_la_CFLAGS = -I$(abs_builddir)
23 libfoo_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/
24 nodist_libfoo_la_SOURCES = $(abs_builddir)/foobar_provider.h
25
26 libbar_la_SOURCES = libbar.h libbar.c
27 libbar_la_LIBADD = foobar_provider.o
28 libbar_la_CFLAGS = -I$(abs_builddir)
29 libbar_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/
30 nodist_libbar_la_SOURCES = $(abs_builddir)/foobar_provider.h
31
32 libzzz_la_SOURCES = libzzz.h libzzz.c
33 libzzz_la_LIBADD = foobar_provider.o
34 libzzz_la_CFLAGS = -I$(abs_builddir)
35 libzzz_la_LDFLAGS = -module -shared -avoid-version -rpath $(abs_builddir)/.libs/
36 nodist_libzzz_la_SOURCES = $(abs_builddir)/foobar_provider.h
37
38 dtrace_verbose = $(dtrace_verbose_@AM_V@)
39 dtrace_verbose_ = $(dtrace_verbose_@AM_DEFAULT_V@)
40 dtrace_verbose_0 = @echo " DTRACE " $@;
41
42 foobar_provider.h: foobar_provider.d
43 $(dtrace_verbose)$(DTRACE) -s $< -o $@ -h
44
45 foobar_provider.o: foobar_provider.d
46 $(dtrace_verbose)$(DTRACE) -s $< -o $@ -G
47
48 CLEANFILES = foobar_provider.h
This page took 0.03004 seconds and 5 git commands to generate.