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