]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/Makefile.in
sim: common: delete configure & Makefile
[thirdparty/binutils-gdb.git] / sim / Makefile.in
index ca41cb6f65e5c2392d7896c1a6c92b88bb46afb2..a35f807d6f0b2c1899d2855bb6aa1bca751fc683 100644 (file)
@@ -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".