Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
a9c2df2b FD |
3 | # no optimization |
4 | AM_CFLAGS = -O0 | |
ef3dfe5d FD |
5 | noinst_LTLIBRARIES = libfoo.la |
6 | ||
7 | libfoo_la_SOURCES = foo.c foo.h | |
8 | libfoo_la_LDFLAGS = -shared -module -avoid-version -rpath $(abs_builddir)/.libs/ | |
9 | ||
a9c2df2b FD |
10 | noinst_PROGRAMS = userspace-probe-elf-binary |
11 | userspace_probe_elf_binary_SOURCES = userspace-probe-elf-binary.c | |
ef3dfe5d FD |
12 | userspace_probe_elf_binary_LDADD = libfoo.la |
13 | ||
14 | libfoo.strip: libfoo.la | |
15 | $(OBJCOPY) --strip-all .libs/libfoo.so | |
16 | ||
17 | all-local: libfoo.strip | |
18 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
19 | for script in $(EXTRA_DIST); do \ | |
20 | cp -f $(srcdir)/$$script $(builddir); \ | |
21 | done; \ | |
22 | fi |