aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mpw-make.sed
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/mpw-make.sed')
-rw-r--r--opcodes/mpw-make.sed14
1 files changed, 14 insertions, 0 deletions
diff --git a/opcodes/mpw-make.sed b/opcodes/mpw-make.sed
new file mode 100644
index 0000000..7096e22
--- /dev/null
+++ b/opcodes/mpw-make.sed
@@ -0,0 +1,14 @@
+# Sed commands to finish translating the opcodes Makefile.in into MPW syntax.
+
+# Empty HDEFINES.
+/HDEFINES/s/@HDEFINES@//
+
+/INCDIR=/s/"{srcdir}":/"{topsrcdir}"/
+/^CSEARCH = .*$/s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/
+/BFD_MACHINES/s/@BFD_MACHINES@/{BFD_MACHINES}/
+/archdefs/s/@archdefs@/{ARCHDEFS}/
+
+# Use a ppc-opc.c that has been tweaked to have less macro nesting.
+# (really only needed for Metrowerks)
+/ppc-opc.c/s/"{s}"ppc-opc\.c/"{o}"hacked_ppc-opc.c/
+/ppc-opc.c.o/s/"{o}"ppc-opc\.c\.o/"{o}"hacked_ppc-opc.c.o/