2002-02-27 Daniel Jacobowitz <drow@mvista.com>
[external/binutils.git] / gdb / gdbserver / configure.srv
1 # Mappings from configuration triplets to gdbserver build options.
2 # This is invoked from the autoconf-generated configure script, to
3 # produce the appropriate Makefile substitutions.
4
5 # This file sets the following shell variables:
6 #   srv_regobj          The register protocol appropriate for this target.
7 #   srv_tgtobj          Any other target-specific modules appropriate
8 #                       for this target.
9 #
10 # In addition, on GNU/Linux the following shell variables will be set:
11 #   srv_linux_regsets   Set to "yes" if ptrace(PTRACE_GETREGS) and friends
12 #                       may be available on this platform;  unset otherwise.
13
14 # Input is taken from the "${target}" variable.
15
16 case "${target}" in
17   arm*-*-linux*)        srv_regobj=reg-arm.o
18                         srv_tgtobj="linux-low.o linux-arm-low.o"
19                         ;;
20   i[3456]86-*-linux*)   srv_regobj=reg-i386-linux.o
21                         srv_tgtobj="linux-low.o linux-i386-low.o"
22                         ;;
23   ia64-*-linux*)        srv_regobj=reg-ia64.o
24                         srv_tgtobj="linux-low.o linux-ia64-low.o"
25                         ;;
26   m68*-*-linux*)        srv_regobj=reg-m68k.o
27                         srv_tgtobj="linux-low.o linux-m68k-low.o"
28                         ;;
29   mips*-*-linux*)       srv_regobj=reg-mips.o
30                         srv_tgtobj="linux-low.o linux-mips-low.o"
31                         ;;
32   powerpc*-*-linux*)    srv_regobj=reg-ppc.o
33                         srv_tgtobj="linux-low.o linux-ppc-low.o"
34                         ;;
35   sh*-*-linux*)         srv_regobj=reg-sh.o
36                         srv_tgtobj="linux-low.o linux-sh-low.o"
37                         ;;
38   *)                    echo "Error: target not supported by gdbserver."
39                         exit 1
40                         ;;
41 esac