1 # SPDX-License-Identifier: GPL-2.0-only
5 noinst_LTLIBRARIES = libfoo.la
7 libfoo_la_SOURCES = foo.c foo.h
8 libfoo_la_LDFLAGS = -shared -module -avoid-version -rpath $(abs_builddir)/.libs/
10 noinst_PROGRAMS = userspace-probe-elf-binary
11 userspace_probe_elf_binary_SOURCES = userspace-probe-elf-binary.c
12 userspace_probe_elf_binary_LDADD = libfoo.la
14 libfoo.strip: libfoo.la
15 $(OBJCOPY) --strip-all .libs/libfoo.so
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); \