* configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
[external/binutils.git] / gdb / configure.tgt
1 # Mappings from configurations to GDB target definitions.  This is
2 # invoked from the autoconf generated configure script.
3
4 # This file sets the following shell variables:
5 #  gdb_target_cpu       generic name of CPU
6 #  gdb_target           name of GDB target definition to use
7
8 case $target in
9  d10v-*-* | \
10  hppa*-*-hiux* | \
11  i[34567]86-ncr-* | \
12  i[34567]86-*-lynxos* | \
13  m68*-cisco*-* | \
14  m68*-tandem-* | \
15  m68*-*-os68k* | \
16  mips*-*-pe | \
17  rs6000-*-lynxos* | \
18  sh*-*-pe | \
19  null)
20     echo "*** Configuration $target is obsolete." >&2
21     echo "*** Support has been REMOVED." >&2
22     exit 1
23     ;;
24 esac
25
26 # Map target cpu into the config cpu subdirectory name.
27 # The default is $target_cpu.
28
29 case "${target_cpu}" in
30
31 alpha*)                 gdb_target_cpu=alpha ;;
32 am33_2.0*)              gdb_target_cpu=mn10300 ;;
33 arm*)                   gdb_target_cpu=arm ;;
34 avr*)                   gdb_target_cpu=avr ;;
35 hppa*)                  gdb_target_cpu=pa ;;
36 i[34567]86*)            gdb_target_cpu=i386 ;;
37 m68hc11*|m6811*)        gdb_target_cpu=m68hc11 ;;
38 m68*)                   gdb_target_cpu=m68k ;;
39 m88*)                   gdb_target_cpu=m88k ;;
40 mips*)                  gdb_target_cpu=mips ;;
41 powerpc* | rs6000)      gdb_target_cpu=powerpc ;;
42 sparc*)                 gdb_target_cpu=sparc ;;
43 thumb*)                 gdb_target_cpu=arm ;;
44 s390*)                  gdb_target_cpu=s390 ;;
45 score*)                 gdb_target_cpu=score ;;
46 sh*)                    gdb_target_cpu=sh ;;
47 spu*)                   gdb_target_cpu=spu ;;
48 strongarm*)             gdb_target_cpu=arm ;;
49 xscale*)                gdb_target_cpu=arm ;;
50 x86_64*)                gdb_target_cpu=i386 ;;
51 xtensa*)                gdb_target_cpu=xtensa ;;
52 *)                      gdb_target_cpu=$target_cpu ;;
53
54 esac
55
56 # map target info into gdb names.
57
58 case "${target}" in
59
60 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
61                         gdb_target=fbsd64 ;;
62 *-*-freebsd* | *-*-kfreebsd*-gnu)
63                         gdb_target=fbsd ;;
64
65 alpha*-*-osf*)          gdb_target=alpha-osf1 ;;
66 alpha*-*-linux*)        gdb_target=alpha-linux ;;
67 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
68                         gdb_target=nbsd ;;
69 alpha*-*-openbsd*)      gdb_target=obsd ;;
70 alpha*-*-*)             gdb_target=alpha ;;
71
72 # mn10300 / am33 liunux
73 am33_2.0*-*-linux*)     gdb_target=linux ;;
74
75 arm*-wince-pe | arm*-*-mingw32ce*)
76                         gdb_target=wince
77                         build_gdbserver=yes
78                         ;;
79 arm*-*-linux*)          gdb_target=linux
80                         build_gdbserver=yes
81                         ;;
82 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
83                         gdb_target=nbsd ;;
84 arm*-*-openbsd*)        gdb_target=obsd ;;
85 arm*-*-* | thumb*-*-* | strongarm*-*-*)
86                         gdb_target=embed
87                         build_rdi_share=yes
88                         ;;
89 xscale-*-*)             gdb_target=embed
90                         build_rdi_share=yes
91                         ;;
92
93 avr-*-*)                gdb_target=avr ;;
94
95 cris*)                  gdb_target=cris ;;
96
97 frv-*-*)                gdb_target=frv ;;
98
99 h8300-*-*)              gdb_target=h8300 ;;
100
101 hppa*64*-*-hpux11*)     gdb_target=hppa64 ;;
102 hppa*-*-hpux*)          gdb_target=hppahpux ;;
103 hppa*-*-linux*)         gdb_target=linux ;;
104 hppa*-*-openbsd*)       gdb_target=obsd ;;
105 hppa*-*-*)              gdb_target=hppa ;;
106
107 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
108                         gdb_target=nbsd ;;
109 i[34567]86-*-openbsd*)  gdb_target=obsd ;;
110 i[34567]86-*-nto*)      gdb_target=nto ;;
111 i[34567]86-*-solaris2.1[0-9]*)  gdb_target=sol2-64 ;;
112 i[34567]86-*-solaris*)  gdb_target=i386sol2 ;;
113 i[34567]86-*-linux*)    gdb_target=linux
114                         build_gdbserver=yes
115                         ;;
116 i[34567]86-*-gnu*)      gdb_target=i386gnu ;;
117 i[34567]86-*-cygwin*)   gdb_target=cygwin
118                         build_gdbserver=yes
119                         ;;
120 i[34567]86-*-mingw32*)  gdb_target=i386
121                         build_gdbserver=yes
122                         ;;
123 i[34567]86-*-*)         gdb_target=i386 ;;
124
125 ia64-*-linux*)          gdb_target=linux
126                         build_gdbserver=yes
127                         ;;
128 ia64*-*-*)              gdb_target=ia64 ;;
129
130 iq2000-*-*)             gdb_target=iq2000 ;;
131
132 m32c-*-*)               gdb_target=m32c ;;
133
134 m32r*-*-linux*)         gdb_target=linux
135                         build_gdbserver=yes
136                         ;;
137 m32r*-*-*)              gdb_target=m32r ;;
138
139 m68hc11*-*-*|m6811*-*-*)        gdb_target=m68hc11 ;;
140
141 m68*-*-aout*)           gdb_target=monitor ;;
142 m68*-*-coff*)           gdb_target=monitor ;;
143 m68*-*-elf*)            gdb_target=monitor ;;
144 m68*-*-rtems*)          gdb_target=monitor ;;
145 m68*-*-linux*)          gdb_target=linux
146                         build_gdbserver=yes
147                         ;;
148 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
149                         gdb_target=nbsd ;;
150 m68*-*-openbsd*)        gdb_target=obsd ;;
151 m68*-*-uclinux*)        gdb_target=monitor ;;
152
153 m88*-*-openbsd*)        gdb_target=obsd ;;
154
155 mep-*-*)                gdb_target=mep ;;
156
157 mips*-sgi-irix5*)       gdb_target=irix5 ;;
158 mips*-sgi-irix6*)       gdb_target=irix6 ;;
159 mips*-*-linux*)         gdb_target=linux
160                         build_gdbserver=yes
161                         ;;
162 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
163                         gdb_target=nbsd ;;
164 mips64*-*-openbsd*)     gdb_target=obsd64 ;;
165 mips*-*-*)              gdb_target=embed ;;
166
167 mn10300-*-*)            gdb_target=mn10300 ;;
168
169 mt-*-*)                 gdb_target=mt ;;
170
171 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
172                         gdb_target=nbsd ;;
173 powerpc-*-openbsd*)     gdb_target=obsd ;;
174 powerpc-*-aix* | rs6000-*-*)
175                         gdb_target=aix ;;
176 powerpc-*-linux*)       gdb_target=linux
177                         build_gdbserver=yes
178                         ;;
179 powerpc64-*-linux*)     gdb_target=linux
180                         build_gdbserver=yes
181                         ;;
182 powerpc*-*-*)           if test -f ../sim/ppc/Makefile; then
183                           gdb_target=ppc-sim
184                         else
185                           gdb_target=ppc-eabi
186                         fi ;;
187
188 s390*-*-*)              gdb_target=s390
189                         build_gdbserver=yes
190                         ;;
191
192 score-*-*)              gdb_target=embed ;;
193 sh-*-coff*)             gdb_target=embed ;;
194 sh-*-elf*)              gdb_target=embed ;;
195 # FIXME should that be sh*-*-linux*, perhaps?
196 sh-*-linux*)            gdb_target=linux
197                         build_gdbserver=yes
198                         ;;
199 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
200                         gdb_target=nbsd ;;
201 sh*-*-openbsd*)         gdb_target=obsd ;;
202 sh64-*-elf*)            gdb_target=sh64 ;;
203 sh*)                    gdb_target=embed ;;
204
205 sparc-*-linux*)         gdb_target=linux ;;
206 sparc64-*-linux*)       gdb_target=linux64 ;;
207 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
208                         gdb_target=nbsd ;;
209 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
210                         gdb_target=nbsd64 ;;
211 sparc-*-openbsd*)       gdb_target=obsd ;;
212 sparc64-*-openbsd*)     gdb_target=obsd64 ;;
213 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
214                         gdb_target=sol2
215                         ;;
216 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
217                         gdb_target=sol2-64
218                         ;;
219 sparc-*-rtems*)         gdb_target=embed ;;
220 sparc-*-*)              gdb_target=sparc ;;
221 sparc64-*-*)            gdb_target=sparc64 ;;
222
223 spu*-*-*)               gdb_target=spu
224                         build_gdbserver=yes
225                         ;;
226
227 xstormy16-*-*)          gdb_target=xstormy16 ;;
228
229 v850*-*-elf)            gdb_target=v850 ;;
230
231 vax-*-netbsd* | vax-*-knetbsd*-gnu)
232                         gdb_target=nbsd ;;
233 vax-*-openbsd*)         gdb_target=obsd ;;
234 vax-*-*)                gdb_target=vax ;;
235
236 x86_64-*-linux*)        gdb_target=linux64
237                         build_gdbserver=yes
238                         ;;
239 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
240                         gdb_target=nbsd64 ;;
241 x86_64-*-openbsd*)      gdb_target=obsd64 ;;
242
243 xtensa*)                gdb_target=xtensa ;;
244
245 esac
246
247 # map target onto default OS ABI
248
249 case "${target}" in
250 *-*-freebsd*)   gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
251 *-*-linux*)     gdb_osabi=GDB_OSABI_LINUX ;;
252 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
253 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
254 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
255 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
256 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
257 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
258 esac