Enforce DL_LIBS value instead of hard coded -ldl
[lttng-tools.git] / tests / regression / ust / baddr-statedump / Makefile.am
CommitLineData
65385a82
MJ
1objcopy_verbose = $(objcopy_verbose_@AM_V@)
2objcopy_verbose_ = $(objcopy_verbose_@AM_DEFAULT_V@)
3objcopy_verbose_0 = @echo OBJCOPY $@;
4
343af227 5AM_CPPFLAGS += -I$(srcdir) -g
d4f53cc3
AB
6
7noinst_PROGRAMS = prog
8prog_SOURCES = prog.c tp.c tp.h
b6151646 9prog_LDADD = -llttng-ust $(DL_LIBS)
d4f53cc3
AB
10
11noinst_SCRIPTS = test_baddr-statedump test_baddr-statedump.py
12EXTRA_DIST = test_baddr-statedump test_baddr-statedump.py
13
65385a82
MJ
14# Extract debug symbols
15prog.debug: prog
16 $(objcopy_verbose)$(OBJCOPY) --only-keep-debug prog prog.debug
17
18# Strip and add debuglink
19prog.strip: prog.debug
20 @cp -f prog prog.strip
21 $(objcopy_verbose)$(OBJCOPY) --strip-debug --add-gnu-debuglink=prog.debug prog.strip
22
23all-local: prog.strip
d4f53cc3
AB
24 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
25 for script in $(EXTRA_DIST); do \
26 cp -f $(srcdir)/$$script $(builddir); \
27 done; \
28 fi
d4f53cc3
AB
29
30clean-local:
31 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
32 for script in $(EXTRA_DIST); do \
33 rm -f $(builddir)/$$script; \
34 done; \
35 fi
65385a82
MJ
36
37CLEANFILES = prog.debug prog.strip
This page took 0.037444 seconds and 5 git commands to generate.