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