aboutsummaryrefslogtreecommitdiff
path: root/binutils/mpw-make.sed
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1996-01-16 20:12:17 +0000
committerStan Shebs <shebs@codesourcery.com>1996-01-16 20:12:17 +0000
commitdda8716b94b8e1302df82d5ca0c240df8b992e91 (patch)
tree62767f7426441733a7c0e54ed56dfbb026598cd6 /binutils/mpw-make.sed
parent130c6e3d59796f33ad8a57b58d16395c0d1d496b (diff)
downloadgdb-dda8716b94b8e1302df82d5ca0c240df8b992e91.zip
gdb-dda8716b94b8e1302df82d5ca0c240df8b992e91.tar.gz
gdb-dda8716b94b8e1302df82d5ca0c240df8b992e91.tar.bz2
* mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
BUILD_DLLTOOL): Put definitions for these into makefile when configuring, instead of always clearing in mpw-make.sed. * mpw-make.sed: Edit out any host_alias or target_alias settings, fix pathname to BFD internal include files, remove dependency calculation rules.
Diffstat (limited to 'binutils/mpw-make.sed')
-rw-r--r--binutils/mpw-make.sed20
1 files changed, 14 insertions, 6 deletions
diff --git a/binutils/mpw-make.sed b/binutils/mpw-make.sed
index 1fba3c7..1285856 100644
--- a/binutils/mpw-make.sed
+++ b/binutils/mpw-make.sed
@@ -1,15 +1,14 @@
# Sed commands to finish translating the binutils Unix makefile into MPW syntax.
-# Define undefined makefile variables.
+# Add a rule.
/^#### .*/a\
\
-BUILD_NLMCONV = \
-BUILD_SRCONV = \
-SYSINFO_PROG = \
-BUILD_DLLTOOL = \
-\
"{o}"underscore.c.o \\Option-f "{o}"underscore.c\
+# Comment out any alias settings.
+/^host_alias =/s/^/#/
+/^target_alias =/s/^/#/
+
# Whack out unused host define bits.
/HDEFINES/s/@HDEFINES@//
@@ -37,6 +36,10 @@ BUILD_DLLTOOL = \
/^{[A-Z]*_PROG}/s/$/ "{s}"mac-binutils.r/
/{[A-Z]*_PROG}\.r/s/{[A-Z]*_PROG}\.r/mac-binutils.r/
+# There are auto-generated references to BFD .h files that are not
+# in the objdir (like bfd.h) but are in the source dir.
+/::bfd:lib/s/::bfd:lib\([a-z]*\)\.h/{BFDDIR}:lib\1.h/g
+
# Fix the locations of generated files.
/config/s/"{s}"config\.h/"{o}"config.h/g
/config/s/^config\.h/"{o}"config\.h/
@@ -84,6 +87,11 @@ install-only \\Option-f\
End For\
+/true/s/ ; @true$//
+
+# dot files are trouble, remove them and their actions.
+/^\.dep/,/^$/d
+
# Remove un-useful targets.
/^Makefile \\Option-f/,/^$/d
/^"{o}"config.h \\Option-f/,/^$/d