mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
a0c4531a55
The igen build fails for me like: gcc -g -O2 -c ../../binutils-gdb/sim/igen/igen.c -o igen/igen.o In file included from ../../binutils-gdb/sim/igen/igen.c:26: ../../binutils-gdb/sim/igen/lf.h:22:10: fatal error: ansidecl.h: No such file or directory This patch fixes the problem by arranging for igen to find the libiberty includes. This seems slightly hacky to me, because libiberty is not a "build" library, so it can't be linked against. However, since igen currently only includes the header, it seems relatively safe. 2021-05-04 Tom Tromey <tromey@adacore.com> * Makefile.in: Rebuild. * Makefile.am (AM_CPPFLAGS): New variable.
58 lines
2.0 KiB
Makefile
58 lines
2.0 KiB
Makefile
## Process this file with automake to generate Makefile.in
|
|
#
|
|
# Copyright (C) 1993-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
|
|
ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
|
|
|
|
srcroot = $(srcdir)/..
|
|
|
|
SUBDIRS = @subdirs@
|
|
|
|
SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
|
|
AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
|
|
|
|
# We don't set some of these vars here, but we need to define them so they may
|
|
# be used consistently in local.mk files we include below.
|
|
check_PROGRAMS =
|
|
noinst_LIBRARIES =
|
|
EXTRA_PROGRAMS =
|
|
|
|
CLEANFILES =
|
|
DISTCLEANFILES =
|
|
MOSTLYCLEANFILES = core
|
|
|
|
AM_CPPFLAGS = -I$(srcroot)/include
|
|
|
|
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
|
|
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
|
|
|
|
# Generate nltvals.def for newlib/libgloss using devo and build tree.
|
|
# This file is shipped with distributions so we build in the source dir.
|
|
# Use `make nltvals' to rebuild.
|
|
# Note: If gdb releases begin to contain target header files (not a good idea,
|
|
# but if they did ...), nltvals.def coud be generated at build time.
|
|
# An alternative is to slurp in the tables at runtime.
|
|
.PHONY: nltvals
|
|
nltvals:
|
|
$(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot)
|
|
$(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
|
|
|
|
if SIM_ENABLE_IGEN
|
|
include igen/local.mk
|
|
endif
|
|
include testsuite/local.mk
|