1 objcopy_verbose = $(objcopy_verbose_@AM_V@)
2 objcopy_verbose_ = $(objcopy_verbose_@AM_DEFAULT_V@)
3 objcopy_verbose_0 = @echo OBJCOPY $@;
5 AM_CPPFLAGS = -I$(srcdir) -g
11 noinst_LTLIBRARIES = libfoo.la
12 libfoo_la_SOURCES = libfoo.c libfoo.h
13 libfoo_la_LDFLAGS = -module -shared -avoid-version \
14 -rpath $(abs_builddir)
16 noinst_SCRIPTS = test_ust-dl test_ust-dl.py
17 EXTRA_DIST = test_ust-dl test_ust-dl.py
19 # Extract debug symbols
20 libfoo.so.debug: libfoo.la
21 $(objcopy_verbose)$(OBJCOPY) --only-keep-debug .libs/libfoo.so libfoo.so.debug
23 # Strip and add debuglink
24 libfoo.so: libfoo.so.debug
25 @cp -f .libs/libfoo.so libfoo.so
26 $(objcopy_verbose)$(OBJCOPY) --strip-debug --add-gnu-debuglink=libfoo.so.debug libfoo.so
29 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
30 for script in $(EXTRA_DIST); do \
31 cp -f $(srcdir)/$$script $(builddir); \
36 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
37 for script in $(EXTRA_DIST); do \
38 rm -f $(builddir)/$$script; \
42 CLEANFILES = libfoo.so libfoo.so.debug