Remove path name from test case
[binutils-gdb.git] / libsframe / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2 #
3 # Copyright (C) 2022-2023 Free Software Foundation, Inc.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING. If not see
17 # <http://www.gnu.org/licenses/>.
18 #
19 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
20
21 AUTOMAKE_OPTIONS = dejagnu foreign no-texinfo.tex info-in-builddir subdir-objects
22
23 # Variables that we might accumulate conditionally or in subdirs.
24 info_TEXINFOS =
25 DISTCLEANFILES =
26 MAINTAINERCLEANFILES =
27
28 INCDIR = $(srcdir)/../include
29 # include libctf for swap.h
30 AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../libctf
31 AM_CFLAGS = @ac_libsframe_warn_cflags@
32 libsframe_version_info = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
33 # libsframe does not restrict the set of exported symbols. So, if linker does
34 # not support symbol versioning, there is no need to fall back on libtool's
35 # -export-symbols option.
36 if HAVE_LD_VERSION_SCRIPT
37 if HAVE_SOLARIS_LD
38 libsframe_version_script = -Wl,-M -Wl,$(srcdir)/libsframe.ver
39 else
40 libsframe_version_script = -Wl,--version-script=$(srcdir)/libsframe.ver
41 endif
42 endif
43
44 if INSTALL_LIBBFD
45 lib_LTLIBRARIES = libsframe.la
46 include_HEADERS = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h
47 else
48 include_HEADERS =
49 noinst_LTLIBRARIES = libsframe.la
50 endif
51
52 libsframe_la_SOURCES = sframe.c sframe-dump.c sframe-error.c
53 libsframe_la_CPPFLAGS = $(AM_CPPFLAGS)
54 libsframe_la_LDFLAGS = $(libsframe_version_info) $(libsframe_version_script)
55
56 EXTRA_DIST = libtool-version libsframe.ver
57 diststuff: $(EXTRA_DIST) info
58
59 include doc/local.mk
60
61 include testsuite/local.mk