Port GDB to powerpc-lynx178.
[platform/upstream/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_obs       target-specific object files to use
6 #  gdb_sim              simulator library for target
7 #  gdb_osabi            default OS ABI to use with target
8 #  build_gdbserver      set to "yes" if gdbserver supports target
9
10 # NOTE: Every file added to a gdb_target_obs variable for any target here
11 #       must also be added to either ALL_TARGET_OBS or ALL_64_TARGET_OBS
12 #       in Makefile.in!
13
14 case $targ in
15  d10v-*-* | \
16  hppa*-*-hiux* | \
17  i[34567]86-ncr-* | \
18  m68*-cisco*-* | \
19  m68*-tandem-* | \
20  m68*-*-os68k* | \
21  mips*-*-pe | \
22  rs6000-*-lynxos* | \
23  sh*-*-pe | \
24  null)
25     echo "*** Configuration $targ is obsolete." >&2
26     echo "*** Support has been REMOVED." >&2
27     exit 1
28     ;;
29 esac
30
31 # map target info into gdb names.
32
33 case "${targ}" in
34
35 alpha*-*-osf*)
36         # Target: Little-endian Alpha running OSF/1
37         gdb_target_obs="alpha-tdep.o alpha-osf1-tdep.o alpha-mdebug-tdep.o"
38         ;;
39 alpha*-*-linux*)
40         # Target: Little-endian Alpha running Linux
41         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-linux-tdep.o \
42                         linux-tdep.o solib-svr4.o"
43         ;;
44 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
45         # Target: FreeBSD/alpha
46         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
47                         alphafbsd-tdep.o solib-svr4.o"
48         ;;
49 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
50         # Target: NetBSD/alpha
51         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
52                         alphanbsd-tdep.o nbsd-tdep.o solib-svr4.o"
53         ;;
54 alpha*-*-openbsd*)
55         # Target: OpenBSD/alpha
56         gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
57                         alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
58                         obsd-tdep.o solib-svr4.o"
59         ;;
60 alpha*-*-*)
61         # Target: Alpha
62         gdb_target_obs="alpha-tdep.o"
63         ;;
64
65 am33_2.0*-*-linux*)
66         # Target: Matsushita mn10300 (AM33) running Linux
67         gdb_target_obs="mn10300-tdep.o mn10300-linux-tdep.o linux-tdep.o \
68                         solib-svr4.o"
69         ;;
70
71 arm*-wince-pe | arm*-*-mingw32ce*)
72         # Target: ARM based machine running Windows CE (win32)
73         gdb_target_obs="arm-tdep.o arm-wince-tdep.o"
74         build_gdbserver=yes
75         ;;
76 arm*-*-linux*)
77         # Target: ARM based machine running GNU/Linux
78         gdb_target_obs="arm-tdep.o arm-linux-tdep.o glibc-tdep.o \
79                         solib-svr4.o symfile-mem.o linux-tdep.o"
80         build_gdbserver=yes
81         ;;
82 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
83         # Target: NetBSD/arm
84         gdb_target_obs="arm-tdep.o armnbsd-tdep.o solib-svr4.o"
85         ;;
86 arm*-*-openbsd*)
87         # Target: OpenBSD/arm
88         gdb_target_obs="arm-tdep.o armbsd-tdep.o armobsd-tdep.o obsd-tdep.o \
89                         solib-svr4.o"
90         ;;
91 arm*-*-symbianelf*)
92         # Target: SymbianOS/arm
93         gdb_target_obs="arm-tdep.o arm-symbian-tdep.o"
94         ;;
95 arm*-*-*)
96         # Target: ARM embedded system
97         gdb_target_obs="arm-tdep.o"
98         gdb_sim=../sim/arm/libsim.a
99         ;;
100
101 avr-*-*)
102         # Target: AVR
103         gdb_target_obs="avr-tdep.o"
104         gdb_sim=../sim/avr/libsim.a
105         ;;
106
107 bfin-*-*linux*)
108         # Target: Blackfin Linux
109         gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o"
110         gdb_sim=../sim/bfin/libsim.a
111         build_gdbserver=yes
112         ;;
113 bfin-*-*)
114         # Target: Blackfin processor
115         gdb_target_obs="bfin-tdep.o"
116         gdb_sim=../sim/bfin/libsim.a
117         ;;
118
119 cris*)
120         # Target: CRIS
121         gdb_target_obs="cris-tdep.o solib-svr4.o"
122         ;;
123
124 frv-*-*)
125         # Target: Fujitsu FRV processor
126         gdb_target_obs="frv-tdep.o frv-linux-tdep.o linux-tdep.o solib-frv.o"
127         gdb_sim=../sim/frv/libsim.a
128         ;;
129
130 moxie-*-elf)
131         gdb_target_obs="moxie-tdep.o"
132         gdb_sim=../sim/moxie/libsim.a
133         ;;
134
135 h8300-*-*)
136         # Target: H8300 with HMS monitor and H8 simulator
137         gdb_target_obs="h8300-tdep.o monitor.o dsrec.o"
138         gdb_sim=../sim/h8300/libsim.a
139         ;;
140
141 hppa*-*-hpux*)
142         # Target: HP PA-RISC running hpux
143         gdb_target_obs="hppa-tdep.o hppa-hpux-tdep.o solib-som.o solib-pa64.o"
144         ;;
145 hppa*-*-linux*)
146         # Target: HP PA-RISC running Linux
147         gdb_target_obs="hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o \
148                         linux-tdep.o solib-svr4.o symfile-mem.o"
149         ;;
150 hppa*-*-netbsd*)
151         # Target: NetBSD/hppa
152         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o solib-svr4.o"
153         ;;
154 hppa*-*-openbsd*)
155         # Target: OpenBSD/hppa
156         gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o solib-svr4.o"
157         ;;
158 hppa*-*-*)
159         # Target: HP PA-RISC
160         gdb_target_obs="hppa-tdep.o"
161         ;;
162
163 i[34567]86-*-darwin*)
164         # Target: Darwin/i386
165         gdb_target_obs="i386-tdep.o i387-tdep.o \
166                         i386-darwin-tdep.o solib-darwin.o"
167         if test "x$enable_64_bit_bfd" = "xyes"; then
168             # Target: GNU/Linux x86-64
169             gdb_target_obs="amd64-tdep.o amd64-darwin-tdep.o ${gdb_target_obs}"
170         fi
171         ;;
172 i[34567]86-*-dicos*)
173         # Target: DICOS/i386
174         gdb_target_obs="i386-tdep.o i387-tdep.o dicos-tdep.o i386-dicos-tdep.o"
175         ;;
176 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
177         # Target: FreeBSD/i386
178         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
179                         bsd-uthread.o solib-svr4.o"
180         ;;
181 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
182         # Target: NetBSD/i386
183         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
184                         nbsd-tdep.o solib-svr4.o"
185         ;;
186 i[34567]86-*-openbsd*)
187         # Target: OpenBSD/i386
188         gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
189                         bsd-uthread.o solib-svr4.o"
190         ;;
191 i[34567]86-*-nto*)
192         # Target: Intel 386 running qnx6.
193         gdb_target_obs="i386-tdep.o i387-tdep.o solib-svr4.o \
194                         i386-nto-tdep.o nto-tdep.o"
195         build_gdbserver=yes
196         ;;
197 i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
198         # Target: Solaris x86_64
199         gdb_target_obs="i386-tdep.o i387-tdep.o amd64-tdep.o amd64-sol2-tdep.o \
200                         i386-sol2-tdep.o sol2-tdep.o solib-svr4.o"
201         ;;
202 i[34567]86-*-solaris*)
203         # Target: Solaris x86
204         gdb_target_obs="i386-tdep.o i387-tdep.o i386-sol2-tdep.o sol2-tdep.o \
205                         solib-svr4.o"
206         ;;
207 i[34567]86-*-linux*)
208         # Target: Intel 386 running GNU/Linux
209         gdb_target_obs="i386-tdep.o i386-linux-tdep.o glibc-tdep.o i387-tdep.o \
210                         solib-svr4.o symfile-mem.o \
211                         linux-tdep.o linux-record.o"
212         if test "x$enable_64_bit_bfd" = "xyes"; then
213             # Target: GNU/Linux x86-64
214             gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o ${gdb_target_obs}"
215         fi
216         build_gdbserver=yes
217         ;;
218 i[34567]86-*-gnu*)
219         # Target: Intel 386 running the GNU Hurd
220         gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
221         ;;
222 i[34567]86-*-cygwin*)
223         # Target: Intel 386 running win32
224         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
225                         windows-tdep.o"
226         build_gdbserver=yes
227         ;;
228 i[34567]86-*-mingw32*)
229         # Target: Intel 386 running win32
230         gdb_target_obs="i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
231                         windows-tdep.o"
232         build_gdbserver=yes
233         ;;
234 i[34567]86-*-*)
235         # Target: i386
236         gdb_target_obs="i386-tdep.o i387-tdep.o"
237         ;;
238
239 ia64-*-hpux*)
240         # Target: Intel IA-64 running HP-UX
241         gdb_target_obs="ia64-tdep.o ia64-hpux-tdep.o"
242         ;;
243 ia64-*-linux*)
244         # Target: Intel IA-64 running GNU/Linux
245         gdb_target_obs="ia64-tdep.o ia64-linux-tdep.o linux-tdep.o \
246                         solib-svr4.o symfile-mem.o"
247         build_gdbserver=yes
248         ;;
249 ia64-*-*vms*)
250         # Target: Intel IA-64 running OpenVMS
251         gdb_target_obs="ia64-tdep.o ia64-vms-tdep.o"
252         ;;
253 ia64*-*-*)
254         # Target: Intel IA-64
255         gdb_target_obs="ia64-tdep.o"
256         ;;
257
258 iq2000-*-*)
259         gdb_target_obs="iq2000-tdep.o"
260         gdb_sim=../sim/iq2000/libsim.a
261         ;;
262
263 lm32-*-*)               
264         gdb_target_obs="lm32-tdep.o" 
265         gdb_sim=../sim/lm32/libsim.a
266         ;;
267
268 m32c-*-*)
269         # Target: Renesas M32C family
270         gdb_target_obs="m32c-tdep.o"
271         # There may also be a SID / CGEN simulator for this,
272         # but we do have DJ Delorie's mini-sim.
273         gdb_sim=../sim/m32c/libsim.a
274         ;;
275
276 m32r*-*-linux*)
277         # Target: Renesas M32R running GNU/Linux
278         gdb_target_obs="m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o \
279                         glibc-tdep.o solib-svr4.o symfile-mem.o \
280                         linux-tdep.o"
281         gdb_sim=../sim/m32r/libsim.a
282         build_gdbserver=yes
283         ;;
284 m32r*-*-*)
285         # Target: Renesas m32r processor
286         gdb_target_obs="m32r-tdep.o monitor.o m32r-rom.o dsrec.o \
287                         remote-m32r-sdi.o"
288         gdb_sim=../sim/m32r/libsim.a
289         ;;
290
291 m68hc11*-*-*|m6811*-*-*)
292         # Target: Motorola 68HC11 processor
293         gdb_target_obs="m68hc11-tdep.o"
294         gdb_sim=../sim/m68hc11/libsim.a
295         ;;
296
297 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
298 fido-*-elf*)
299         # Target: Motorola m68k embedded (e.g. bug monitors)
300         gdb_target_obs="m68k-tdep.o monitor.o dbug-rom.o dsrec.o"
301         ;;
302 m68*-*-linux*)
303         # Target: Motorola m68k with a.out and ELF
304         gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \
305                         linux-tdep.o glibc-tdep.o symfile-mem.o"
306         build_gdbserver=yes
307         ;;
308 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
309         # Target: NetBSD/m68k
310         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
311         ;;
312 m68*-*-openbsd*)
313         # Target: OpenBSD/m68k
314         gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
315         ;;
316
317 m88*-*-openbsd*)
318         # Target: OpenBSD/m88k
319         gdb_target_obs="m88k-tdep.o"
320         ;;
321
322 mep-*-*)
323         # Target: Toshiba Media Processor (MEP)
324         gdb_target_obs="mep-tdep.o"
325         # No sim needed. Target uses SID.
326         ;;
327
328 microblaze*-linux-*|microblaze*-*-linux*)
329         # Target: Xilinx MicroBlaze running Linux
330         gdb_target_obs="microblaze-tdep.o microblaze-linux-tdep.o microblaze-rom.o \
331                         monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
332         gdb_sim=../sim/microblaze/libsim.a
333         ;;
334 microblaze*-*-*)
335         # Target: Xilinx MicroBlaze running standalone
336         gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
337         gdb_sim=../sim/microblaze/libsim.a
338         ;;
339
340 mips*-sgi-irix5*)
341         # Target: MIPS SGI running Irix 5
342         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
343         ;;
344 mips*-sgi-irix6*)
345         # Target: MIPS SGI running Irix 6.x
346         gdb_target_obs="mips-tdep.o mips-irix-tdep.o solib-irix.o"
347         ;;
348 mips*-*-linux*)
349         # Target: Linux/MIPS
350         gdb_target_obs="mips-tdep.o mips-linux-tdep.o glibc-tdep.o \
351                         solib-svr4.o symfile-mem.o linux-tdep.o"
352         gdb_sim=../sim/mips/libsim.a
353         build_gdbserver=yes
354         ;;
355 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
356         # Target: MIPS running NetBSD
357         gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o"
358         gdb_sim=../sim/mips/libsim.a
359         ;;
360 mips64*-*-openbsd*)
361         # Target: OpenBSD/mips64
362         gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o"
363         ;;
364 mips*-*-elf)
365         # Target: MIPS ELF
366         gdb_target_obs="mips-tdep.o remote-mips.o"
367         gdb_sim=../sim/mips/libsim.a
368         ;;
369 mips*-*-*)
370         # Target: MIPS
371         gdb_target_obs="mips-tdep.o"
372         gdb_sim=../sim/mips/libsim.a
373         ;;
374
375 mn10300-*-*)
376         # Target: Matsushita mn10300
377         gdb_target_obs="mn10300-tdep.o"
378         gdb_sim=../sim/mn10300/libsim.a
379         ;;
380
381 mt-*-*)
382         # Target: Morpho Technologies ms1 processor
383         gdb_target_obs="mt-tdep.o"
384         ;;
385
386 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
387         # Target: NetBSD/powerpc
388         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
389                         solib-svr4.o \
390                         ravenscar-thread.o ppc-ravenscar-thread.o"
391         gdb_sim=../sim/ppc/libsim.a
392         ;;
393 powerpc-*-openbsd*)
394         # Target: OpenBSD/powerpc
395         gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
396                         solib-svr4.o \
397                         ravenscar-thread.o ppc-ravenscar-thread.o"
398         ;;
399 powerpc-*-aix* | rs6000-*-*)
400         # Target: PowerPC running AIX
401         gdb_target_obs="rs6000-tdep.o rs6000-aix-tdep.o xcoffread.o \
402                         ppc-sysv-tdep.o solib-svr4.o \
403                         ravenscar-thread.o ppc-ravenscar-thread.o"
404         ;;
405 powerpc-*-linux* | powerpc64-*-linux*)
406         # Target: PowerPC running Linux
407         gdb_target_obs="rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o \
408                         solib-svr4.o solib-spu.o spu-multiarch.o \
409                         glibc-tdep.o symfile-mem.o linux-tdep.o \
410                         ravenscar-thread.o ppc-ravenscar-thread.o"
411         gdb_sim=../sim/ppc/libsim.a
412         build_gdbserver=yes
413         ;;
414 powerpc-*-lynx*178)
415         # Target: PowerPC running Lynx178.
416         gdb_target_obs="rs6000-tdep.o rs6000-lynx178-tdep.o \
417                         xcoffread.o monitor.o dsrec.o ppc-sysv-tdep.o \
418                         ravenscar-thread.o ppc-ravenscar-thread.o"
419         ;;
420 powerpc*-*-*)
421         # Target: PowerPC running eabi
422         gdb_target_obs="rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o \
423                         dink32-rom.o ppc-sysv-tdep.o solib-svr4.o \
424                         ravenscar-thread.o ppc-ravenscar-thread.o"
425         if test -f ../sim/ppc/Makefile; then
426           gdb_sim=../sim/ppc/libsim.a
427         fi
428         ;;
429
430 s390*-*-*)
431         # Target: S390 running Linux
432         gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
433         build_gdbserver=yes
434         ;;
435
436 rl78-*-elf)
437         # Target: Renesas rl78
438         gdb_target_obs="rl78-tdep.o"
439         gdb_sim=../sim/rl78/libsim.a
440         ;;
441
442 rx-*-elf)
443         # Target: Renesas RX
444         gdb_target_obs="rx-tdep.o"
445         gdb_sim=../sim/rx/libsim.a
446         ;;
447
448 score-*-*)
449         # Target: S+core embedded system
450         gdb_target_obs="score-tdep.o"
451         if test -f ../sim/score/Makefile; then
452           gdb_sim=../sim/score/libsim.a
453         fi
454         build_gdbserver=yes
455         ;;
456
457 sh*-*-linux*)
458         # Target: GNU/Linux Super-H
459         gdb_target_obs="sh-tdep.o sh64-tdep.o sh-linux-tdep.o monitor.o \
460                         dsrec.o solib-svr4.o symfile-mem.o \
461                         glibc-tdep.o linux-tdep.o"
462         gdb_sim=../sim/sh/libsim.a
463         build_gdbserver=yes
464         ;;
465 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
466         # Target: NetBSD/sh
467         gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o"
468         gdb_sim=../sim/sh/libsim.a
469         ;;
470 sh*-*-openbsd*)
471         # Target: OpenBSD/sh
472         gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o"
473         ;;
474 sh64-*-elf*)
475         # Target: Renesas/Super-H 64 bit with simulator
476         gdb_target_obs="sh-tdep.o sh64-tdep.o"
477         gdb_sim=../sim/sh64/libsim.a
478         ;;
479 sh*)
480         # Target: Embedded Renesas Super-H with ICE and simulator
481         gdb_target_obs="sh-tdep.o sh64-tdep.o monitor.o dsrec.o"
482         gdb_sim=../sim/sh/libsim.a
483         ;;
484
485 sparc-*-linux*)
486         # Target: GNU/Linux SPARC
487         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
488                         sparc-linux-tdep.o solib-svr4.o symfile-mem.o \
489                         linux-tdep.o \
490                         ravenscar-thread.o sparc-ravenscar-thread.o"
491         if test "x$enable_64_bit_bfd" = "xyes"; then
492             # Target: GNU/Linux UltraSPARC
493             gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o \
494                             sparc64-linux-tdep.o ${gdb_target_obs}"
495         fi
496         build_gdbserver=yes
497         ;;
498 sparc64-*-linux*)
499         # Target: GNU/Linux UltraSPARC
500         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sol2-tdep.o \
501                         sparc64-linux-tdep.o sparc-tdep.o sparc-sol2-tdep.o \
502                         sparc-linux-tdep.o solib-svr4.o linux-tdep.o \
503                         ravenscar-thread.o sparc-ravenscar-thread.o"
504         build_gdbserver=yes
505         ;;
506 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
507         # Target: FreeBSD/sparc64
508         gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
509                         solib-svr4.o \
510                         ravenscar-thread.o sparc-ravenscar-thread.o"
511         ;;
512 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
513         # Target: NetBSD/sparc
514         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
515                         solib-svr4.o \
516                         ravenscar-thread.o sparc-ravenscar-thread.o"
517         ;;
518 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
519         # Target: NetBSD/sparc64
520         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
521                         sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \
522                         ravenscar-thread.o sparc-ravenscar-thread.o"
523         ;;
524 sparc-*-openbsd*)
525         # Target: OpenBSD/sparc
526         gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
527                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
528                         ravenscar-thread.o sparc-ravenscar-thread.o"
529         ;;
530 sparc64-*-openbsd*)
531         # Target: OpenBSD/sparc64
532         gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
533                         sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
534                         nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
535                         ravenscar-thread.o sparc-ravenscar-thread.o"
536         ;;
537 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
538         # Target: Solaris SPARC
539         gdb_target_obs="sparc-tdep.o sparc-sol2-tdep.o sol2-tdep.o \
540                         solib-svr4.o \
541                         ravenscar-thread.o sparc-ravenscar-thread.o"
542         ;;
543 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
544         # Target: Solaris UltraSPARC
545         gdb_target_obs="sparc64-tdep.o sparc64-sol2-tdep.o sparc-tdep.o \
546                         sparc-sol2-tdep.o sol2-tdep.o solib-svr4.o \
547                         ravenscar-thread.o sparc-ravenscar-thread.o"
548         ;;
549 sparc-*-*)
550         # Target: SPARC
551         gdb_target_obs="sparc-tdep.o \
552                         ravenscar-thread.o sparc-ravenscar-thread.o"
553         gdb_sim=../sim/erc32/libsim.a
554         ;;
555 sparc64-*-*)
556         # Target: UltraSPARC
557         gdb_target_obs="sparc-tdep.o sparc64-tdep.o \
558                         ravenscar-thread.o sparc-ravenscar-thread.o"
559         ;;
560
561 spu*-*-*)
562         # Target: Cell BE SPU
563         gdb_target_obs="spu-tdep.o"
564         build_gdbserver=yes
565         ;;
566
567 tic6x-*-*linux)
568         # Target: GNU/Linux TI C6x
569         gdb_target_obs="tic6x-tdep.o tic6x-linux-tdep.o solib-dsbt.o \
570                         glibc-tdep.o linux-tdep.o"
571         ;;
572
573 tic6x-*-*)
574         # Target: TI C6X 
575         gdb_target_obs="tic6x-tdep.o"
576         ;;
577
578 tilegx-*-linux*)
579         # Target: TILE-Gx
580         gdb_target_obs="tilegx-tdep.o tilegx-linux-tdep.o solib-svr4.o \
581                         symfile-mem.o glibc-tdep.o linux-tdep.o"
582         ;;
583
584 xstormy16-*-*)
585         # Target: Sanyo Xstormy16a processor
586         gdb_target_obs="xstormy16-tdep.o"
587         # No simulator libraries are needed -- target uses SID.
588         ;;
589
590 v850*-*-elf | v850*-*-rtems*)
591         # Target: NEC V850 processor
592         gdb_target_obs="v850-tdep.o"
593         gdb_sim=../sim/v850/libsim.a
594         ;;
595
596 vax-*-netbsd* | vax-*-knetbsd*-gnu)
597         # Target: NetBSD/vax
598         gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
599         ;;
600 vax-*-openbsd*)
601         # Target: OpenBSD/vax
602         gdb_target_obs="vax-tdep.o vaxobsd-tdep.o"
603         ;;
604 vax-*-*)
605         # Target: VAX running 4.2BSD or Ultrix
606         gdb_target_obs="vax-tdep.o"
607         ;;
608
609 x86_64-*-darwin*)
610         # Target: Darwin/x86-64
611         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
612                         i386-darwin-tdep.o amd64-darwin-tdep.o \
613                         solib-darwin.o"
614         ;;
615
616 x86_64-*-dicos*)
617         # Target: DICOS/x86-64
618         gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o \
619                         dicos-tdep.o i386-dicos-tdep.o amd64-dicos-tdep.o"
620         ;;
621 x86_64-*-linux*)
622         # Target: GNU/Linux x86-64
623         gdb_target_obs="amd64-tdep.o amd64-linux-tdep.o i386-tdep.o \
624                         i387-tdep.o i386-linux-tdep.o glibc-tdep.o \
625                         solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
626         build_gdbserver=yes
627         ;;
628 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
629         # Target: FreeBSD/amd64
630         gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
631                         i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
632                         bsd-uthread.o solib-svr4.o"
633         ;;
634 x86_64-*-mingw*)
635         # Target: MingW/amd64
636         gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
637                         i386-tdep.o i386-cygwin-tdep.o i387-tdep.o \
638                         windows-tdep.o"
639         build_gdbserver=yes
640         ;;
641 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
642         # Target: NetBSD/amd64
643         gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
644                         nbsd-tdep.o solib-svr4.o"
645         ;;
646 x86_64-*-openbsd*)
647         # Target: OpenBSD/amd64
648         gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
649                         i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
650                         bsd-uthread.o solib-svr4.o"
651         ;;
652 xtensa*-*-linux*)       gdb_target=linux
653         # Target: GNU/Linux Xtensa
654         gdb_target_obs="xtensa-tdep.o xtensa-config.o xtensa-linux-tdep.o \
655                         solib-svr4.o symfile-mem.o linux-tdep.o"
656         build_gdbserver=yes
657         ;;
658 xtensa*)
659         # Target: Tensilica Xtensa processors
660         gdb_target_obs="xtensa-tdep.o xtensa-config.o solib-svr4.o"
661         ;;
662
663 esac
664
665 # map target onto default OS ABI
666
667 case "${targ}" in
668 *-*-freebsd* | *-*-kfreebsd*-gnu)
669                 gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
670 *-*-linux* | *-*-uclinux*)
671                 gdb_osabi=GDB_OSABI_LINUX ;;
672 *-*-nto*)       gdb_osabi=GDB_OSABI_QNXNTO ;;
673 m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
674 *-*-openbsd*)   gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
675 *-*-solaris*)   gdb_osabi=GDB_OSABI_SOLARIS ;;
676 *-*-*-gnu*)     ;; # prevent non-GNU kernels to match the Hurd rule below
677 *-*-gnu*)       gdb_osabi=GDB_OSABI_HURD ;;
678 *-*-mingw32ce*) gdb_osabi=GDB_OSABI_WINCE ;;
679 *-*-mingw* | *-*-cygwin*)
680                 gdb_osabi=GDB_OSABI_CYGWIN ;;
681 *-*-dicos*)     gdb_osabi=GDB_OSABI_DICOS ;;
682 *-*-symbianelf*)
683                 gdb_osabi=GDB_OSABI_SYMBIAN ;;
684 esac