Tests: fix make targets using objcopy
[lttng-tools.git] / tests / regression / ust / ust-dl / Makefile.am
1 objcopy_verbose = $(objcopy_verbose_@AM_V@)
2 objcopy_verbose_ = $(objcopy_verbose_@AM_DEFAULT_V@)
3 objcopy_verbose_0 = @echo OBJCOPY $@;
4
5 AM_CPPFLAGS = -I$(srcdir) -g
6
7 noinst_PROGRAMS = prog
8 prog_SOURCES = prog.c
9 prog_LDADD = -ldl
10
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)
15
16 noinst_SCRIPTS = test_ust-dl test_ust-dl.py
17 EXTRA_DIST = test_ust-dl test_ust-dl.py
18
19 # Extract debug symbols
20 libfoo.so.debug: libfoo.la
21 $(objcopy_verbose)$(OBJCOPY) --only-keep-debug .libs/libfoo.so libfoo.so.debug
22
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
27
28 all-local: libfoo.so
29 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
30 for script in $(EXTRA_DIST); do \
31 cp -f $(srcdir)/$$script $(builddir); \
32 done; \
33 fi
34
35 clean-local:
36 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
37 for script in $(EXTRA_DIST); do \
38 rm -f $(builddir)/$$script; \
39 done; \
40 fi
41
42 CLEANFILES = libfoo.so libfoo.so.debug
This page took 0.03142 seconds and 5 git commands to generate.