| 1 | # Sed commands to finish translating the opcodes Makefile.in into MPW syntax. |
| 2 | |
| 3 | # Empty HDEFINES. |
| 4 | /HDEFINES/s/@HDEFINES@// |
| 5 | |
| 6 | # Fix pathnames to include directories. |
| 7 | /^INCDIR = /s/^INCDIR = .*$/INCDIR = "{topsrcdir}"include/ |
| 8 | /^CSEARCH = /s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/ |
| 9 | |
| 10 | /BFD_MACHINES/s/@BFD_MACHINES@/{BFD_MACHINES}/ |
| 11 | /archdefs/s/@archdefs@/{ARCHDEFS}/ |
| 12 | |
| 13 | # No PIC foolery in this environment. |
| 14 | /@ALLLIBS@/s/@ALLLIBS@/{TARGETLIB}/ |
| 15 | /@PICLIST@/s/@PICLIST@// |
| 16 | /@PICFLAG@/s/@PICFLAG@// |
| 17 | /^{OFILES} \\Option-f stamp-picdir/,/^$/d |
| 18 | |
| 19 | # Remove the pic trickery from the default build rule. |
| 20 | /^\.c\.o \\Option-f /,/End If/c\ |
| 21 | .c.o \\Option-f .c |
| 22 | |
| 23 | # Remove pic trickery from other rules - aimed at the rule |
| 24 | # for disassemble.o in particular. |
| 25 | /-n "{PICFLAG}"/,/End If/d |