aboutsummaryrefslogtreecommitdiff
path: root/bfd/mpw-make.sed
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-09-29 02:14:51 +0000
committerStan Shebs <shebs@codesourcery.com>1995-09-29 02:14:51 +0000
commit698e0075ef292e847b24274688ec947af32b64be (patch)
tree9d40576c2cf842a6f3ff80ee8f8f3e23ac82d4d0 /bfd/mpw-make.sed
parent0e4ca328e1d046bc478f61273b1cb3a86d5c592e (diff)
downloadfsf-binutils-gdb-698e0075ef292e847b24274688ec947af32b64be.zip
fsf-binutils-gdb-698e0075ef292e847b24274688ec947af32b64be.tar.gz
fsf-binutils-gdb-698e0075ef292e847b24274688ec947af32b64be.tar.bz2
* config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
* configure, configure.in: Add pmac_xcoff_vec case. * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. * coff-pmac.c: New file, PowerMac XCOFF support. * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. * targets.c (pmac_xcoff_vec): Declare. * mpw-config.in: Various changes to be compatible with the autoconf-based configury. * mpw-make.sed: New file, sed commands to translate Unix makefile into MPW syntax. * mpw-make.in: Remove. * hosts/mpw.h: Remove. * bfd-in.h, bfd-in2.h: If MPW, include the file that defines true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
Diffstat (limited to 'bfd/mpw-make.sed')
-rw-r--r--bfd/mpw-make.sed55
1 files changed, 55 insertions, 0 deletions
diff --git a/bfd/mpw-make.sed b/bfd/mpw-make.sed
new file mode 100644
index 0000000..3659494
--- /dev/null
+++ b/bfd/mpw-make.sed
@@ -0,0 +1,55 @@
+# Sed commands to finish translating the Unix BFD Makefile into MPW syntax.
+
+# Whack out unused host and target define bits.
+/HDEFINES/s/@HDEFINES@//
+/TDEFINES/s/@TDEFINES@//
+
+/INCDIR=/s/"{srcdir}":/"{topsrcdir}"/
+/^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 = /
+
+# Remove extra, useless, "all".
+/^all \\Option-f _oldest/,/^$/d
+
+# Remove the Makefile rebuild rule.
+/^Makefile /,/--recheck/d
+
+# Don't do any recursive subdir stuff.
+/subdir_do/s/{MAKE} subdir_do/null-command/
+
+/BFD_H/s/^{BFD_H}/#{BFD_H}/
+
+# Point at include files that are always in the objdir.
+/bfd/s/"{s}"bfd\.h/"{o}"bfd.h/g
+/config/s/"{s}"config\.h/"{o}"config.h/g
+/elf32-target/s/"{s}"elf32-target\.h/"{o}"elf32-target.h/g
+/elf64-target/s/"{s}"elf64-target\.h/"{o}"elf64-target.h/g
+
+/"{s}"{INCDIR}/s/"{s}"{INCDIR}/"{INCDIR}"/g
+
+/dep/s/\.dep/__dep/g
+
+# Removing duplicates is cool but presently unnecessary,
+# so whack this out.
+/^ofiles \\Option-f/,/^$/d
+/ofiles/s/{OFILES} ofiles/{OFILES}/
+/echo ofiles = /d
+/cat ofiles/s/`cat ofiles`/{OFILES}/
+
+# No corefile support.
+/COREFILE/s/@COREFILE@//
+/COREFLAG/s/@COREFLAG@//
+
+# 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
+
+/"{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
+