Add missing ust_app_regenerate_statedump_all stub
[lttng-tools.git] / tests / regression / ust / ust-dl / Makefile.am
CommitLineData
cdbfb1b9
MD
1if NO_SHARED
2# Do not build this test if shared libraries support was
3# explicitly disabled.
4
5CLEANFILES = libfoo.so libfoo.so.debug prog
6
7EXTRA_DIST = test_ust-dl test_ust-dl.py libfoo.c libfoo.h \
8 prog.c
9
10else
11
65385a82
MJ
12objcopy_verbose = $(objcopy_verbose_@AM_V@)
13objcopy_verbose_ = $(objcopy_verbose_@AM_DEFAULT_V@)
14objcopy_verbose_0 = @echo OBJCOPY $@;
15
c70c42cc
AB
16AM_CPPFLAGS = -I$(srcdir) -g
17
18noinst_PROGRAMS = prog
19prog_SOURCES = prog.c
20prog_LDADD = -ldl
21
22noinst_LTLIBRARIES = libfoo.la
23libfoo_la_SOURCES = libfoo.c libfoo.h
24libfoo_la_LDFLAGS = -module -shared -avoid-version \
25 -rpath $(abs_builddir)
26
cdbfb1b9 27CLEANFILES = libfoo.so libfoo.so.debug
c70c42cc 28
65385a82
MJ
29# Extract debug symbols
30libfoo.so.debug: libfoo.la
31 $(objcopy_verbose)$(OBJCOPY) --only-keep-debug .libs/libfoo.so libfoo.so.debug
32
33# Strip and add debuglink
34libfoo.so: libfoo.so.debug
35 @cp -f .libs/libfoo.so libfoo.so
36 $(objcopy_verbose)$(OBJCOPY) --strip-debug --add-gnu-debuglink=libfoo.so.debug libfoo.so
37
cdbfb1b9
MD
38noinst_SCRIPTS = test_ust-dl test_ust-dl.py
39EXTRA_DIST = test_ust-dl test_ust-dl.py
40
65385a82 41all-local: libfoo.so
c70c42cc
AB
42 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
43 for script in $(EXTRA_DIST); do \
44 cp -f $(srcdir)/$$script $(builddir); \
45 done; \
46 fi
c70c42cc
AB
47
48clean-local:
49 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
50 for script in $(EXTRA_DIST); do \
51 rm -f $(builddir)/$$script; \
52 done; \
53 fi
65385a82 54
cdbfb1b9 55endif
This page took 0.035201 seconds and 4 git commands to generate.