]>
Commit | Line | Data |
---|---|---|
21c9f626 RP |
1 | # This file is a shell script that supplies the information necessary |
2 | # to tailor a template configure script into the configure script | |
3 | # appropriate for this directory. For more information, check any | |
4 | # existing configure script. | |
5 | ||
3b4f1a5d | 6 | configdirs="doc" |
21c9f626 | 7 | srctrigger=libbfd.c |
5b2765bf | 8 | srcname="BFD" |
d89b9f99 | 9 | target_dependent=true |
21c9f626 RP |
10 | |
11 | # per-host: | |
12 | ||
5a5fa368 | 13 | . ${srcdir}/configure.host |
4dfe09da | 14 | |
5b2765bf | 15 | # Set up to make a link between the host's include file and "sysdep.h". |
5868184b | 16 | files="hosts/${my_host}.h" |
5b2765bf JG |
17 | links="sysdep.h" |
18 | ||
d89b9f99 | 19 | if [ ! -f ${srcdir}/${files} ] ; then |
0e238aa7 PB |
20 | files=../bfd/hosts/std-host.h |
21 | echo "[${srcname} has no specific support for host ${host} -- using std-host]" | |
21c9f626 RP |
22 | fi |
23 | ||
5b2765bf | 24 | host_makefile_frag= |
5868184b FF |
25 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
26 | host_makefile_frag=config/${my_host}.mh | |
5b2765bf | 27 | fi |
4dfe09da | 28 | |
21c9f626 RP |
29 | # per-target: |
30 | ||
218ce930 JG |
31 | # WHEN ADDING ENTRIES TO THIS MATRIX: |
32 | # Make sure that the left side always has two dashes. Otherwise you | |
33 | # can get spurious matches. Even for unambiguous cases, do this as a | |
34 | # convention, else the table becomes a real mess to understand and maintain. | |
35 | ||
1e730c4b | 36 | case "${target}" in |
9faacb92 | 37 | alpha-*-*) bfd_target=alphaosf ;; |
439a4936 JG |
38 | a29k-*-ebmon) bfd_target=a29k-coff ;; |
39 | a29k-*-udi) bfd_target=a29k-coff ;; | |
40 | a29k-*-aout) bfd_target=a29k-aout ;; | |
41 | a29k-*-coff) bfd_target=a29k-coff ;; | |
42 | a29k-*-sym1) bfd_target=a29k-coff ;; | |
43 | h8300-*-*) bfd_target=h8300-coff ;; | |
9faacb92 SC |
44 | h8500-*-*) bfd_target=h8500-coff ;; |
45 | sh-*-*) bfd_target=sh-coff ;; | |
439a4936 JG |
46 | hppa*-*-bsd) bfd_target=hppabsd ;; |
47 | hppa*-*-hpux) bfd_target=hppahpux ;; | |
18f81c05 | 48 | hppa*-*-osf) bfd_target=hppa-elf ;; |
439a4936 JG |
49 | i[34]86-*-sysv4*) bfd_target=i386-elf ;; |
50 | i[34]86-*-sysv*) bfd_target=i386-coff ;; | |
60ac749c ILT |
51 | i[34]86-*-isc*) bfd_target=i386-coff ;; |
52 | i[34]86-*-sco*) bfd_target=i386-sco ;; | |
5a5fa368 | 53 | i[34]86-*-bsd*) bfd_target=i386-bsd ;; |
60ac749c | 54 | i[34]86-*-aix*) bfd_target=i386-coff ;; |
7a35367c | 55 | i[34]86-*-elf) bfd_target=i386-elf ;; |
772b5e9b | 56 | i[34]86-*-linux*) bfd_target=i386-linux ;; |
439a4936 JG |
57 | i[34]86-none-*) bfd_target=i386-coff ;; |
58 | i960-*-vxworks) bfd_target=i960-bout ;; | |
6ac05343 JG |
59 | i960-*-aout) bfd_target=i960-bout ;; |
60 | i960-*-bout) bfd_target=i960-bout ;; | |
439a4936 JG |
61 | m68*-hp-bsd) bfd_target=hp300bsd ;; |
62 | m68*-*-aout) bfd_target=m68k-aout ;; | |
63 | m68*-*-coff) bfd_target=m68k-coff ;; | |
64 | m68*-*-hpux) bfd_target=hp300 ;; | |
65 | m68*-*-os68k) bfd_target=m68k-aout ;; | |
66 | m68*-*-sunos*) bfd_target=m68k-aout ;; | |
67 | m68*-*-vxworks*) bfd_target=m68k-aout ;; | |
68 | m68*-ericsson-*) bfd_target=m68k-aout ;; | |
69 | m68*-netx-*) bfd_target=m68k-aout ;; | |
70 | m88k-*-*) bfd_target=m88k-coff ;; | |
9faacb92 | 71 | mips-big-*) bfd_target=bigmips ;; |
7a35367c | 72 | mips-dec-bsd*) bfd_target=mipsdecbsd ;; |
439a4936 | 73 | mips-dec-*) bfd_target=decstation ;; |
9faacb92 SC |
74 | mips-*-ecoff) bfd_target=bigmips ;; |
75 | mips-sgi-*) bfd_target=bigmips ;; | |
439a4936 JG |
76 | rs6000-*-*) bfd_target=rs6000 ;; |
77 | sparc-*-solaris2*) bfd_target=sparc-elf ;; | |
78 | sparc-*-sysv4*) bfd_target=sparc-elf ;; | |
60ac749c | 79 | sparc*-*-*) bfd_target=sparc-aout ;; |
439a4936 | 80 | tahoe-*-*) bfd_target=tahoe ;; |
7a35367c | 81 | vax-*-vms) bfd_target=vax-vms ;; |
439a4936 JG |
82 | vax-*-*) bfd_target=vax ;; |
83 | we32k-*-*) bfd_target=we32k ;; | |
84 | z8k*-*-*) bfd_target=z8k-coff ;; | |
85 | ||
86 | *-*-aout) bfd_target=${target_cpu}-aout ;; | |
87 | *-*-bsd) bfd_target=${target_cpu}-aout ;; | |
88 | *-*-sysv4*) bfd_target=${target_cpu}-elf ;; | |
89 | *-*-solaris2*) bfd_target=${target_cpu}-elf ;; | |
90 | *-*-go32) bfd_target=${target_cpu}-aout ;; | |
439a4936 | 91 | *-*-sysv*) bfd_target=${target_cpu}-coff ;; |
439a4936 JG |
92 | |
93 | *-adobe-*) bfd_target=adobe ;; | |
94 | *-sony-*) bfd_target=news ;; | |
95 | *-intel-*) bfd_target=${target_cpu}-coff ;; | |
96 | *-stratus-*) bfd_target=${target_cpu}-elf ;; | |
97 | *-cbm-*) bfd_target=${target_cpu}-elf ;; | |
98 | *-ncr-*) bfd_target=${target_cpu}-elf ;; | |
99 | *-tandem-*) bfd_target=st2000 ;; | |
4dfe09da RP |
100 | esac |
101 | ||
5868184b | 102 | if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then |
5b2765bf | 103 | if [ -n "${bfd_target}" ] ; then |
eafc6d85 | 104 | echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2 |
5b2765bf | 105 | fi |
eafc6d85 FF |
106 | echo '***' BFD does not support target ${target} 1>&2 |
107 | echo '***' Look in bfd/configure.in for supported targets 1>&2 | |
21c9f626 RP |
108 | exit 1 |
109 | fi | |
5868184b | 110 | target_makefile_frag=config/${bfd_target}.mt |
4dfe09da | 111 | |
5b2765bf JG |
112 | # We don't do any links based on the target system, just very minor makefile |
113 | # config. | |
7a35367c KR |
114 | |
115 | # post-target: | |
116 | ||
117 | case ${with_minimal_bfd} in | |
118 | yes) | |
119 | echo MINIMIZE=1 >> Makefile | |
120 | ;; | |
121 | no | "") | |
122 | ;; | |
123 | *) | |
124 | echo "*** bad value \"${with_minimal_bfd}\" for minimal-bfd flag; ignored" 1>&2 | |
125 | ;; | |
126 | esac |