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