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