aboutsummaryrefslogtreecommitdiff
path: root/gas/config-gas.com
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-04-01 21:26:16 +0000
committerIan Lance Taylor <ian@airs.com>1997-04-01 21:26:16 +0000
commit396e8d7ff0e38e563376a2a6de347e4cf339998e (patch)
tree117a3dac98be7eca518fb5f536aa9a1e6be8a732 /gas/config-gas.com
parente72afe26be436ed8c2d4b794fb77430eec502d87 (diff)
downloadgdb-396e8d7ff0e38e563376a2a6de347e4cf339998e.zip
gdb-396e8d7ff0e38e563376a2a6de347e4cf339998e.tar.gz
gdb-396e8d7ff0e38e563376a2a6de347e4cf339998e.tar.bz2
Tue Apr 1 16:24:28 1997 Klaus Kaempf <kkaempf@progis.de>
* config-gas.com: Update to handle both vax and alpha. * makefile.vms: Update to use config-gas. * conf-a-gas.com: Remove file.
Diffstat (limited to 'gas/config-gas.com')
-rw-r--r--gas/config-gas.com26
1 files changed, 20 insertions, 6 deletions
diff --git a/gas/config-gas.com b/gas/config-gas.com
index 2bfc576..afb0642 100644
--- a/gas/config-gas.com
+++ b/gas/config-gas.com
@@ -3,15 +3,23 @@ $! This file sets things up to build gas on a VMS system to generate object
$! files for a VMS system. We do not use the configure script, since we
$! do not have /bin/sh to execute it.
$!
-$! If you are running this file, then obviously the host is vax-dec-vms.
-$! [That's no longer obvious, but there's not much we can do about alpha yet.]
$!
$gas_host="vms"
$!
+$arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1) ! vax==1, alpha==2
+$arch = f$element(arch_indx,"|","|VAX|Alpha|")
+$if arch .eqs. "VAX"
+$then
$cpu_type="vax"
-$emulation="generic"
$obj_format="vms"
$atof="vax"
+$else
+$ cpu_type="alpha"
+$ obj_format="evax"
+$ atof="ieee"
+$endif
+$
+$emulation="generic"
$!
$ DELETE = "delete/noConfirm"
$ ECHO = "write sys$output"
@@ -60,7 +68,12 @@ $write ifile$ "#ifndef GAS_VERSION"
$write ifile$ "#define GAS_VERSION """,line,""""
$write ifile$ "#endif"
$write ifile$ "/*--*/"
+$if arch .eqs. "VAX"
+$then
$append [.config]vms-conf.h ifile$:
+$else
+$ append [.config]vms-a-conf.h ifile$:
+$endif
$close ifile$
$ECHO "Created config.h."
$!
@@ -155,9 +168,10 @@ $!
$! Done
$!
$ if f$search("config.status") .nes. "" then DELETE config.status;*
-$ create config.status
-Links are now set up for use with a vax running VMS.
-$ type config.status
+$ open/write cfile []config.status
+$ write cfile "Links are now set up for use with a "+arch+" running VMS."
+$ close cfile
+$ type []config.status
$exit
$!
$!