* monitor.h (struct memrw_cmd->resp_delim): Document this as a regexp.
[deliverable/binutils-gdb.git] / bfd / mpw-config.in
CommitLineData
a92c5906
SS
1# Configuration fragment for BFD.
2
e0151f38
SS
3# This is almost always correct.
4
698e0075 5Set selarchs "&bfd_{target_cpu}_arch"
e0151f38
SS
6Set defvec ""
7Set selvecs ""
1d3c6d87
SS
8
9If "{target_canonical}" =~ /m68k-apple-macos/
e0151f38
SS
10 Set BFD_BACKENDS '"{o}"coff-m68k.c.o "{o}"cofflink.c.o'
11 Set defvec m68kcoff_vec
12 Set selvecs '&m68kcoff_vec'
13Else If "{target_canonical}" =~ /powerpc-apple-macos/
698e0075
SS
14 Set BFD_BACKENDS '"{o}"coff-pmac.c.o "{o}"cofflink.c.o'
15 Set defvec pmac_xcoff_vec
16 Set selvecs '&pmac_xcoff_vec'
17 Set selarchs "&bfd_powerpc_arch"
e0151f38
SS
18Else If "{target_canonical}" =~ /i386-unknown-go32/
19 Set BFD_BACKENDS '"{o}"coff-i386.c.o'
20 Set defvec i386coff_vec
21 Set selvecs '&i386coff_vec'
c71f5783 22Else If "{target_canonical}" =~ /mips-idt-ecoff/
e0151f38
SS
23 Set BFD_BACKENDS '"{o}"coff-mips.c.o "{o}"ecoff.c.o "{o}"ecofflink.c.o'
24 Set defvec ecoff_big_vec
25 Set selvecs '&ecoff_big_vec,&ecoff_little_vec'
26Else If "{target_canonical}" =~ /sh-hitachi-hms/
27 Set BFD_BACKENDS '"{o}"coff-sh.c.o "{o}"cofflink.c.o'
28 Set defvec shcoff_vec
29 Set selvecs '&shcoff_vec,&shlcoff_vec'
c71f5783 30End If
1d3c6d87 31
698e0075 32Set ta `echo {selarchs} | sed -e 's/&bfd_/{o}cpu-/g' -e 's/_arch/.c.o/g'`
e0151f38
SS
33
34Set tdefaults "-d DEFAULT_VECTOR={defvec} -d SELECT_VECS={selvecs} -d SELECT_ARCHITECTURES={selarchs}"
35
698e0075
SS
36Echo '# From mpw-config.in' > "{o}"mk.tmp
37Echo 'WORDSIZE = 32' >> "{o}"mk.tmp
38Echo 'BFD_MACHINES = ' {ta} >> "{o}"mk.tmp
39Echo 'BFD_BACKENDS = ' {BFD_BACKENDS} >> "{o}"mk.tmp
40Echo 'TDEFAULTS = ' {tdefaults} >> "{o}"mk.tmp
41Echo 'HDEPFILES = ' >> "{o}"mk.tmp
42Echo 'TDEPFILES = ' >> "{o}"mk.tmp
43Echo '# End from mpw-config.in' >> "{o}"mk.tmp
44
45Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
46Echo '#include "mpw.h"' >> "{o}"config.new
47
48MoveIfChange "{o}"config.new "{o}"config.h
e0151f38 49
698e0075
SS
50# We can only handle 32-bit targets right now.
51
52sed -e 's/@WORDSIZE@/32/' \Option-d
53 -e "s/@VERSION@/`Catenate {srcdir}VERSION`/" \Option-d
54 -e 's/@BFD_HOST_64BIT_LONG@/0/' \Option-d
55 "{srcdir}"bfd-in2.h >"{o}"bfd.h-new
e0151f38 56
698e0075 57MoveIfChange "{o}"bfd.h-new "{o}"bfd.h
e0151f38 58
698e0075 59# Pre-expand some macros in coffswap.h, so MPW C doesn't choke.
e0151f38 60
698e0075
SS
61sed -e 's/^ PUT_AOUTHDR_TSIZE (/ bfd_h_put_32 (/' \Option-d
62 -e 's/^ PUT_AOUTHDR_DSIZE (/ bfd_h_put_32 (/' \Option-d
63 -e 's/^ PUT_AOUTHDR_BSIZE (/ bfd_h_put_32 (/' \Option-d
64 -e 's/^ PUT_AOUTHDR_ENTRY (/ bfd_h_put_32 (/' \Option-d
65 -e 's/^ PUT_AOUTHDR_TEXT_START (/ bfd_h_put_32 (/' \Option-d
66 -e 's/^ PUT_AOUTHDR_DATA_START (/ bfd_h_put_32 (/' \Option-d
67 "{srcdir}"coffswap.h >"{o}"coffswap.h-new
e0151f38 68
698e0075 69MoveIfChange "{o}"coffswap.h-new "{o}"coffswap.h
This page took 0.080098 seconds and 4 git commands to generate.