aboutsummaryrefslogtreecommitdiff
path: root/bfd/mpw-make.sed
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1996-08-15 19:41:17 +0000
committerStan Shebs <shebs@codesourcery.com>1996-08-15 19:41:17 +0000
commit22edd5473227bc0e89c19d04022727f62dfd514c (patch)
treee5b2cbee23f1318d489b3d51d1b2482183a25b51 /bfd/mpw-make.sed
parent53ef6e607610f5c6ab77df73405afa124a7e6d81 (diff)
downloadgdb-22edd5473227bc0e89c19d04022727f62dfd514c.zip
gdb-22edd5473227bc0e89c19d04022727f62dfd514c.tar.gz
gdb-22edd5473227bc0e89c19d04022727f62dfd514c.tar.bz2
* mpw-config.in: Update editing of autoconf vars to reflect
Jul 18 configure.in change. * mpw-make.sed: Update editing of include pathnames to be more general, add @DASH_C_FLAG@ to explicit compile rule edit.
Diffstat (limited to 'bfd/mpw-make.sed')
-rw-r--r--bfd/mpw-make.sed19
1 files changed, 11 insertions, 8 deletions
diff --git a/bfd/mpw-make.sed b/bfd/mpw-make.sed
index aaf4aca..7248569 100644
--- a/bfd/mpw-make.sed
+++ b/bfd/mpw-make.sed
@@ -4,13 +4,16 @@
/HDEFINES/s/@HDEFINES@//
/TDEFINES/s/@TDEFINES@//
-/INCDIR=/s/"{srcdir}":/"{topsrcdir}"/
-/^CSEARCH = .*$/s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/
+# Fix pathnames to include directories.
+/^INCDIR = /s/^INCDIR = .*$/INCDIR = "{topsrcdir}"include/
+/^CSEARCH = /s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/
-/WORDSIZE/s/^WORDSIZE = /#WORDSIZE = /
-/BFD_MACHINES/s/^BFD_MACHINES = /#BFD_MACHINES = /
-/BFD_BACKENDS/s/^BFD_BACKENDS = /#BFD_BACKENDS = /
-/TDEFAULTS/s/^TDEFAULTS = /#TDEFAULTS = /
+# Comment out setting of vars, configure script will add these itself.
+/^WORDSIZE =/s/^/#/
+# /^ALL_BACKENDS/s/^/#/
+/^BFD_BACKENDS/s/^/#/
+/^BFD_MACHINES/s/^/#/
+/^TDEFAULTS/s/^/#/
# Remove extra, useless, "all".
/^all \\Option-f _oldest/,/^$/d
@@ -59,11 +62,11 @@
# MPW Make doesn't know about $<.
/"{o}"targets.c.o \\Option-f "{s}"targets.c Makefile/,/^$/c\
"{o}"targets.c.o \\Option-f "{s}"targets.c Makefile\
- {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"targets.c -o "{o}"targets.c.o
+ {CC} @DASH_C_FLAG@ {ALL_CFLAGS} {TDEFAULTS} "{s}"targets.c -o "{o}"targets.c.o
/"{o}"archures.c.o \\Option-f "{s}"archures.c Makefile/,/^$/c\
"{o}"archures.c.o \\Option-f "{s}"archures.c Makefile\
- {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"archures.c -o "{o}"archures.c.o
+ {CC} @DASH_C_FLAG@ {ALL_CFLAGS} {TDEFAULTS} "{s}"archures.c -o "{o}"archures.c.o
# Remove the .h rebuilding rules, we don't currently have a doc subdir,
# or a way to build the prototype-hacking tool that's in it.