* configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
[deliverable/binutils-gdb.git] / bfd / mpw-make.sed
CommitLineData
698e0075
SS
1# Sed commands to finish translating the Unix BFD Makefile into MPW syntax.
2
3# Whack out unused host and target define bits.
4/HDEFINES/s/@HDEFINES@//
5/TDEFINES/s/@TDEFINES@//
6
7/INCDIR=/s/"{srcdir}":/"{topsrcdir}"/
8/^CSEARCH = .*$/s/$/ -i "{INCDIR}":mpw: -i ::extra-include:/
9
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 = /
14
15# Remove extra, useless, "all".
16/^all \\Option-f _oldest/,/^$/d
17
18# Remove the Makefile rebuild rule.
19/^Makefile /,/--recheck/d
20
21# Don't do any recursive subdir stuff.
aadf04f7 22/ subdir_do/s/{MAKE}/null-command/
698e0075
SS
23
24/BFD_H/s/^{BFD_H}/#{BFD_H}/
25
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
b576c7b3 30/elf32-target/s/^elf32-target\.h/"{o}"elf32-target.h/
698e0075 31/elf64-target/s/"{s}"elf64-target\.h/"{o}"elf64-target.h/g
b576c7b3 32/elf64-target/s/^elf64-target\.h/"{o}"elf64-target.h/
698e0075
SS
33
34/"{s}"{INCDIR}/s/"{s}"{INCDIR}/"{INCDIR}"/g
35
36/dep/s/\.dep/__dep/g
37
38# Removing duplicates is cool but presently unnecessary,
39# so whack this out.
40/^ofiles \\Option-f/,/^$/d
41/ofiles/s/{OFILES} ofiles/{OFILES}/
42/echo ofiles = /d
43/cat ofiles/s/`cat ofiles`/{OFILES}/
44
45# No corefile support.
46/COREFILE/s/@COREFILE@//
47/COREFLAG/s/@COREFLAG@//
48
14fd4616
SS
49# No PIC foolery in this environment.
50/@ALLLIBS@/s/@ALLLIBS@/{TARGETLIB}/
51/@PICLIST@/s/@PICLIST@//
52/@PICFLAG@/s/@PICFLAG@//
53/^{OFILES} \\Option-f stamp-picdir/,/^$/d
54
55# Remove the pic trickery from the default build rule.
56/^\.c\.o \\Option-f /,/End If/c\
57.c.o \\Option-f .c
58
698e0075
SS
59# MPW Make doesn't know about $<.
60/"{o}"targets.c.o \\Option-f "{s}"targets.c Makefile/,/^$/c\
61"{o}"targets.c.o \\Option-f "{s}"targets.c Makefile\
62 {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"targets.c -o "{o}"targets.c.o
63
64/"{o}"archures.c.o \\Option-f "{s}"archures.c Makefile/,/^$/c\
65"{o}"archures.c.o \\Option-f "{s}"archures.c Makefile\
66 {CC} {ALL_CFLAGS} {TDEFAULTS} "{s}"archures.c -o "{o}"archures.c.o
67
14fd4616
SS
68# Remove the .h rebuilding rules, we don't currently have a doc subdir,
69# or a way to build the prototype-hacking tool that's in it.
70/^"{srcdir}"bfd-in2.h \\Option-f /,/^$/d
71/^"{srcdir}"libbfd.h \\Option-f /,/^$/d
72/^"{srcdir}"libcoff.h \\Option-f /,/^$/d
This page took 0.09461 seconds and 4 git commands to generate.