]> Git Repo - binutils.git/blobdiff - gas/config-gas.com
handle target ppc-*-elf*, for zoo.
[binutils.git] / gas / config-gas.com
index 48e2e49dc8dbaefa2508426a63243702cc54d2b6..7ad1a0a98fd07033e707d7439ac9341689ed6512 100644 (file)
@@ -30,36 +30,30 @@ $!
 $!
 $! Create the file version.opt, which helps identify the executalbe.
 $!
-$search version.c version_string,"="/match=and/output=t.tmp
+$search Makefile.in "VERSION="/match=and/output=t.tmp
 $open ifile$ t.tmp
 $read ifile$ line
 $close ifile$
-$delete/nolog t.tmp;
-$ijk=f$locate("""",line)+1
+$delete/nolog t.tmp;*
+$! Discard "VERSION=" and "\n" parts.
+$ijk=f$locate("=",line)+1
 $line=f$extract(ijk,f$length(line)-ijk,line)
-$ijk=f$locate("""",line)
-$line=f$extract(0,ijk,line)
 $ijk=f$locate("\n",line)
 $line=f$extract(0,ijk,line)
 $!
-$i=0
-$loop:
-$elm=f$element(i," ",line)
-$if elm.eqs."" then goto no_ident
-$if (elm.les."9").and.(elm.ges."0") then goto write_ident
-$i=i+1
-$goto loop
-$!
-$no_ident:
-$elm="?.??"
-$!
-$!
-$write_ident:
+$ if f$search("version.opt").nes."" then delete/noconfirm version.opt;*
 $open ifile$ version.opt/write
-$write ifile$ "ident="+""""+elm+""""
+$write ifile$ "ident="+""""+line+""""
+$close ifile$
+$! Now write config.h.
+$ if f$search("config.h").nes."" then delete/noconfirm config.h;*
+$open ifile$ config.h/write
+$write ifile$ "#define TARGET_CPU       """,cpu_type,"""
+$write ifile$ "#define TARGET_ALIAS     ""vms"""
+$write ifile$ "#define TARGET_CANONICAL ""vax-dec-vms"""
+$write ifile$ "#define GAS_VERSION      """,line,""""
 $close ifile$
 $!
-$ !
 $ if f$search("config.status") .nes. "" then delete config.status.*
 $ open/write file config.status
 $ write file "Links are now set up for use with a vax running VMS."
This page took 0.024285 seconds and 4 git commands to generate.