aboutsummaryrefslogtreecommitdiff
path: root/sim/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/Makefile.in')
-rw-r--r--sim/Makefile.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/sim/Makefile.in b/sim/Makefile.in
index ca41cb6..a35f807 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -19,6 +19,8 @@
VPATH = @srcdir@
srcdir = @srcdir@
+abs_srcdir = @abs_srcdir@
+srcroot = $(abs_srcdir)/..
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -54,6 +56,7 @@ INSTALL_DATA = @INSTALL_DATA@
AR = @AR@
AR_FLAGS = rc
CC = @CC@
+CPP = @CPP@
CFLAGS = @CFLAGS@
CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
@@ -221,6 +224,17 @@ Makefile: Makefile.in config.status
config.status: configure
$(SHELL) ./config.status --recheck
+# 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:
+ $(SHELL) $(abs_srcdir)/common/gennltvals.sh --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot) && \
+ $(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
+
# Utility to run autoconf in each directory that uses the common framework.
# This is intended to be invoked in $srcdir as
# "make -f Makefile.in autoconf-common SHELL=/bin/sh".