1 # Sed commands to finish translating the Unix BFD Makefile into MPW syntax.
3 # Whack out unused host and target define bits.
4 /HDEFINES/s/@HDEFINES@//
5 /TDEFINES/s/@TDEFINES@//
7 /INCDIR=/s/"{srcdir}":/"{topsrcdir}"/
8 /^CSEARCH = .*$/s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/
10 /WORDSIZE/s/^WORDSIZE = /#WORDSIZE = /
11 /BFD_MACHINES/s/^BFD_MACHINES = /#BFD_MACHINES = /
12 /BFD_BACKENDS/s/^BFD_BACKENDS = /#BFD_BACKENDS = /
13 /TDEFAULTS/s/^TDEFAULTS = /#TDEFAULTS = /
15 # Remove extra, useless, "all".
16 /^all \\Option-f _oldest/,/^$/d
18 # Remove the Makefile rebuild rule.
19 /^Makefile /,/--recheck/d
21 # Don't do any recursive subdir stuff.
22 / subdir_do/s/{MAKE}/null-command/
24 /BFD_H/s/^{BFD_H}/#{BFD_H}/
26 # Point at include files that are always in the objdir.
27 /bfd/s/"{s}"bfd\.h/"{o}"bfd.h/g
28 /config/s/"{s}"config\.h/"{o}"config.h/g
29 /elf32-target/s/"{s}"elf32-target\.h/"{o}"elf32-target.h/g
30 /elf64-target/s/"{s}"elf64-target\.h/"{o}"elf64-target.h/g
32 /"{s}"{INCDIR}/s/"{s}"{INCDIR}/"{INCDIR}"/g
36 # Removing duplicates is cool but presently unnecessary,
38 /^ofiles \\Option-f/,/^$/d
39 /ofiles/s/{OFILES} ofiles/{OFILES}/
41 /cat ofiles/s/`cat ofiles`/{OFILES}/
43 # No corefile support.
44 /COREFILE/s/@COREFILE@//
45 /COREFLAG/s/@COREFLAG@//
47 # MPW Make doesn't know about $<.
48 /"{o}"targets.c.o \\Option-f "{s}"targets.c Makefile/,/^$/c\
49 "{o}"targets.c.o \\Option-f "{s}"targets.c Makefile\
50 {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"targets.c -o "{o}"targets.c.o
52 /"{o}"archures.c.o \\Option-f "{s}"archures.c Makefile/,/^$/c\
53 "{o}"archures.c.o \\Option-f "{s}"archures.c Makefile\
54 {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"archures.c -o "{o}"archures.c.o