aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mpw-make.sed
blob: 5faa927d91963871447640630c28ef95e28840f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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}/

# No PIC foolery in this environment.
/@ALLLIBS@/s/@ALLLIBS@/{TARGETLIB}/
/@PICLIST@/s/@PICLIST@//
/@PICFLAG@/s/@PICFLAG@//
/^{OFILES} \\Option-f stamp-picdir/,/^$/d

# Remove the pic trickery from the default build rule.
/^\.c\.o \\Option-f /,/End If/c\
.c.o \\Option-f .c

# Remove pic trickery from other rules - aimed at the rule
# for disassemble.o in particular.
/-n "{PICFLAG}"/,/End If/d