diff options
author | Stu Grossman <grossman@cygnus> | 1994-08-18 06:32:55 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-08-18 06:32:55 +0000 |
commit | b7da24943dbe07851c083336f4c352e6e2e41d74 (patch) | |
tree | a4e317f709103fd5840b842e74f8a6aee753e05d /gdb/nlm/configure.in | |
parent | 8c074d7ada27e4eecda9fa92c79e5bc5cf23f77b (diff) | |
download | gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.zip gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.gz gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.bz2 |
* Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target.
* configure.in (powerpc-*-netware*): Automatically configure nlm
subdir.
* nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha
specific stuff. Make things more configurable.
* nlm/configure.in: Add powerpc-*-netware* target. Use
gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h
files.
* nlm/gdbserve.c: Move Alpha specific stuff into other files.
Remove lots of architecture-specific stuff.
* nlm/gdbserve.def: Add new imports.
* nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code.
* nlm/prelude.c: Don't include libhooks.h, get rid of call to
register library.
* nlm/prelude.o: What was this doing here?
Diffstat (limited to 'gdb/nlm/configure.in')
-rw-r--r-- | gdb/nlm/configure.in | 73 |
1 files changed, 11 insertions, 62 deletions
diff --git a/gdb/nlm/configure.in b/gdb/nlm/configure.in index 5f4ca6c..2e0ff17 100644 --- a/gdb/nlm/configure.in +++ b/gdb/nlm/configure.in @@ -106,14 +106,6 @@ vax-*-ultrix*) gdb_host=vaxult ;; esac -if [ ! -f ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ]; then - echo '***' "GDB remote does not support host ${host}" 1>&2 - exit 1 -fi - -# We really shouldn't depend on there being a space after XM_FILE= ... -hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` - # per-target: # Map target cpu into the config cpu subdirectory name. @@ -230,6 +222,7 @@ ns32k-utek-sysv) gdb_target=merlin ;; ns32k-utek-*) gdb_target=umax ;; pn-*-*) gdb_target=pn ;; +powerpc-*-netware*) gdb_target=ppc-nw ;; pyramid-*-*) gdb_target=pyramid ;; @@ -251,25 +244,20 @@ vax-*-*) gdb_target=vax ;; z8k-*-sim) gdb_target=z8ksim ;; esac -if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt ]; then - echo '***' "GDB remote does not support target ${target}" 1>&2 +if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt ]; then + echo '***' "GDBSERVE does not support target ${target}" 1>&2 exit 1 fi if [ -z "${removing}" ] ; then - cat ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" { + cat ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt | awk '$1 == "#msg" { print substr($0,6)}' fi -# We really shouldn't depend on there being a space after TM_FILE= ... -targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt` +# We really shouldn't depend on there being a space after CPU_FILE= ... +cpufile=`awk '$1 == "CPU_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt` -if [ "${target}" = "${host}" ] ; then - nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` -fi - -host_makefile_frag=../config/${gdb_host_cpu}/${gdb_host}.mh -target_makefile_frag=../config/${gdb_target_cpu}/${gdb_target}.mt +target_makefile_frag=../config/${gdb_target_cpu}/gdbserve.mt # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile # (NAT_FILE) is not set in the ?config/* file, we don't make the @@ -279,47 +267,8 @@ target_makefile_frag=../config/${gdb_target_cpu}/${gdb_target}.mt files= links= -rm -f xm.h -if [ "${hostfile}" != "" ]; then - if [ -f ${srcdir}/../config/${hostfile} ]; then - files="${files} ../config/${hostfile}" - else - files="${files} ../config/${gdb_host_cpu}/${hostfile}" - fi - links="${links} xm.h" -fi -rm -f tm.h -if [ "${targetfile}" != "" ]; then - if [ -f ${srcdir}/../config/${targetfile} ]; then - files="${files} ../config/${targetfile}" - else - files="${files} ../config/${gdb_target_cpu}/${targetfile}" - fi - links="${links} tm.h" -fi -rm -f nm.h -if [ "${nativefile}" != "" ]; then - if [ -f ${srcdir}/../config/${nativefile} ]; then - files="${files} ../config/${nativefile}" - else - files="${files} ../config/${gdb_host_cpu}/${nativefile}" - fi - links="${links} nm.h" -# temporary scaffolding until all hosts have the host/target/native -# split in place. -else - files="${files} ../config/nm-trash.h" - links="${links} nm.h" -fi - -if [ ${target_cpu} = "sparclite" ]; then - configdirs="${configdirs} sparclite" -fi - -# post-target: - -if [ "${nativefile}" = "" ] ; then - sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \ - < Makefile > Makefile.tem - mv -f Makefile.tem Makefile +rm -f cpu.c +if [ "${cpufile}" != "" ]; then + files="${files} ${cpufile}.c ${cpufile}.h" + links="${links} cpu.c cpu.h" fi |