1## Process this file with automake to produce Makefile.in. 2# 3# Copyright (C) 2022-2024 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# 19ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd 20 21AUTOMAKE_OPTIONS = dejagnu foreign no-texinfo.tex info-in-builddir subdir-objects 22 23# Variables that we might accumulate conditionally or in subdirs. 24info_TEXINFOS = 25DISTCLEANFILES = 26MAINTAINERCLEANFILES = 27 28INCDIR = $(srcdir)/../include 29# include libctf for swap.h 30AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../libctf 31AM_CFLAGS = @ac_libsframe_warn_cflags@ 32libsframe_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. 36if HAVE_LD_VERSION_SCRIPT 37if HAVE_SOLARIS_LD 38 libsframe_version_script = -Wl,-M -Wl,$(srcdir)/libsframe.ver 39else 40 libsframe_version_script = -Wl,--version-script=$(srcdir)/libsframe.ver 41endif 42endif 43 44if INSTALL_LIBBFD 45lib_LTLIBRARIES = libsframe.la 46include_HEADERS = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h 47else 48include_HEADERS = 49noinst_LTLIBRARIES = libsframe.la 50endif 51 52libsframe_la_SOURCES = sframe.c sframe-dump.c sframe-error.c 53libsframe_la_CPPFLAGS = $(AM_CPPFLAGS) 54libsframe_la_LDFLAGS = $(libsframe_version_info) $(libsframe_version_script) 55 56EXTRA_DIST = libtool-version libsframe.ver 57diststuff: $(EXTRA_DIST) info 58 59include doc/local.mk 60 61include testsuite/local.mk 62