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