* nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed.
[binutils-gdb.git] / gdb / nlm / configure.in
1 srcname="Remote GDB server for Netware"
2 srctrigger=gdbserve.c
3
4 # per-host:
5
6 # per-target:
7
8 # Map target cpu into the config cpu subdirectory name.
9 # The default is $target_cpu.
10
11 case "${target_cpu}" in
12
13 alpha) gdb_target_cpu=alpha ;;
14 c[12]) gdb_target_cpu=convex ;;
15 hppa*) gdb_target_cpu=pa ;;
16 i[345]86) gdb_target_cpu=i386 ;;
17 m68*) gdb_target_cpu=m68k ;;
18 np1) gdb_target_cpu=gould ;;
19 pn) gdb_target_cpu=gould ;;
20 pyramid) gdb_target_cpu=pyr ;;
21 sparc*) gdb_target_cpu=sparc ;;
22 *) gdb_target_cpu=$target_cpu ;;
23
24 esac
25
26 if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt ]; then
27 echo '***' "GDBSERVE does not support target ${target}" 1>&2
28 exit 1
29 fi
30
31 # We really shouldn't depend on there being a space after CPU_FILE= ...
32 cpufile=`awk '$1 == "CPU_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt`
33
34 target_makefile_frag=../config/${gdb_target_cpu}/gdbserve.mt
35
36 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
37 # (NAT_FILE) is not set in the ?config/* file, we don't make the
38 # corresponding links. But we have to remove the xm.h files and tm.h
39 # files anyway, e.g. when switching from "configure host" to
40 # "configure none".
41
42 files=
43 links=
44 rm -f cpu.h
45 if [ "${cpufile}" != "" ]; then
46 files="${files} ${cpufile}.h"
47 links="${links} cpu.h"
48 fi