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