Commit | Line | Data |
---|---|---|
c70c42cc AB |
1 | AM_CPPFLAGS = -I$(srcdir) -g |
2 | ||
3 | noinst_PROGRAMS = prog | |
4 | prog_SOURCES = prog.c | |
5 | prog_LDADD = -ldl | |
6 | ||
7 | noinst_LTLIBRARIES = libfoo.la | |
8 | libfoo_la_SOURCES = libfoo.c libfoo.h | |
9 | libfoo_la_LDFLAGS = -module -shared -avoid-version \ | |
10 | -rpath $(abs_builddir) | |
11 | ||
12 | noinst_SCRIPTS = test_ust-dl test_ust-dl.py | |
13 | EXTRA_DIST = test_ust-dl test_ust-dl.py | |
14 | ||
15 | all-local: libfoo.la | |
16 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
17 | for script in $(EXTRA_DIST); do \ | |
18 | cp -f $(srcdir)/$$script $(builddir); \ | |
19 | done; \ | |
20 | fi | |
21 | objcopy --only-keep-debug .libs/libfoo.so .libs/libfoo.so.debug | |
22 | strip -g .libs/libfoo.so | |
23 | objcopy --add-gnu-debuglink .libs/libfoo.so.debug .libs/libfoo.so | |
24 | ||
25 | clean-local: | |
26 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
27 | for script in $(EXTRA_DIST); do \ | |
28 | rm -f $(builddir)/$$script; \ | |
29 | done; \ | |
30 | fi | |
31 | rm -f .libs/libfoo.so.debug |