Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
a9c2df2b | 3 | EXTRA_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). | |
11 | if TEST_SDT_UPROBE | |
a9c2df2b | 12 | BUILT_SOURCES = foobar_provider.h |
f9e096db | 13 | endif |
a9c2df2b FD |
14 | |
15 | noinst_PROGRAMS = userspace-probe-sdt-binary | |
16 | userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c | |
b6151646 | 17 | userspace_probe_sdt_binary_LDADD = foobar_provider.o libfoo.la libbar.la $(DL_LIBS) |
a9c2df2b FD |
18 | userspace_probe_sdt_binary_CFLAGS = -I$(abs_builddir) |
19 | nodist_userspace_probe_sdt_binary_SOURCES = $(abs_builddir)/foobar_provider.h | |
20 | ||
21 | noinst_LTLIBRARIES = libfoo.la libbar.la libzzz.la | |
22 | libfoo_la_SOURCES = libfoo.h libfoo.c | |
23 | libfoo_la_LIBADD = foobar_provider.o | |
24 | libfoo_la_CFLAGS = -I$(abs_builddir) | |
6b979fc6 | 25 | libfoo_la_LDFLAGS = -module -shared -avoid-version -rpath $(libdir) |
a9c2df2b FD |
26 | nodist_libfoo_la_SOURCES = $(abs_builddir)/foobar_provider.h |
27 | ||
28 | libbar_la_SOURCES = libbar.h libbar.c | |
29 | libbar_la_LIBADD = foobar_provider.o | |
30 | libbar_la_CFLAGS = -I$(abs_builddir) | |
6b979fc6 | 31 | libbar_la_LDFLAGS = -module -shared -avoid-version -rpath $(libdir) |
a9c2df2b FD |
32 | nodist_libbar_la_SOURCES = $(abs_builddir)/foobar_provider.h |
33 | ||
34 | libzzz_la_SOURCES = libzzz.h libzzz.c | |
35 | libzzz_la_LIBADD = foobar_provider.o | |
36 | libzzz_la_CFLAGS = -I$(abs_builddir) | |
6b979fc6 | 37 | libzzz_la_LDFLAGS = -module -shared -avoid-version -rpath $(libdir) |
a9c2df2b FD |
38 | nodist_libzzz_la_SOURCES = $(abs_builddir)/foobar_provider.h |
39 | ||
1a1986ce MJ |
40 | dtrace_verbose = $(dtrace_verbose_@AM_V@) |
41 | dtrace_verbose_ = $(dtrace_verbose_@AM_DEFAULT_V@) | |
42 | dtrace_verbose_0 = @echo " DTRACE " $@; | |
43 | ||
a9c2df2b | 44 | foobar_provider.h: foobar_provider.d |
1a1986ce | 45 | $(dtrace_verbose)$(DTRACE) -s $< -o $@ -h |
a9c2df2b FD |
46 | |
47 | foobar_provider.o: foobar_provider.d | |
1a1986ce | 48 | $(dtrace_verbose)$(DTRACE) -s $< -o $@ -G |
a9c2df2b FD |
49 | |
50 | CLEANFILES = foobar_provider.h |