vms update (trunk only)
I hadn't tried the build script vmsbuild.com in a long time.... vmsbuild.com wasn't compiling src/sys.c; vmsbuild.com and Makefile.src+Makefile.utl had some linking discrepancies; Makefile.top, Makefile.dat, Makefile.doc - replace old SCCS id/date/rev comment with current cvs one (done for .src & .utl a month or so back); config1.h - running DEC C in VAX C compatability mode to test linking yielded a diagnostic about signed in the schar typedef for every file.
This commit is contained in:
+28
-22
@@ -146,33 +146,37 @@ $ g := 'f$extract(0,1,cc)'
|
||||
$ if g.eqs."$" then g := 'f$extract(1,1,cc)' !"foreign" gcc
|
||||
$ if f$edit(f$extract(1,1,cc),"UPCASE").eqs."E" then g := X !GEMC
|
||||
$ if g.nes."G" .and. c_opt.ne.o_GNUC then gnulib = ""
|
||||
$ if g.eqs."G" .or. c_opt.eq.o_GNUC then gnulib = "," + gnulib
|
||||
$ ! linker setup; if a symbol for "LINK" is defined, we'll use it
|
||||
$ if f$type(link).nes."STRING" then link = "LINK/NOMAP"
|
||||
$ if p4.nes."" then link = link + p4 !append optional user preferences
|
||||
$ if c_opt.eq.o_DECC .or. l_opt.eq.10
|
||||
$ then
|
||||
$ crtl = "" !sys$share:decc$shr.exe/Sharable found automatically
|
||||
$ if f$trnlnm("F").nes."" then close/noLog f
|
||||
$ create crtl.opt !empty
|
||||
$ open/Append f crtl.opt
|
||||
$ write f "! crtl.opt"
|
||||
$ if c_opt.eq.o_DECC .or. l_opt.eq.20
|
||||
$ then $! l_opt=="none", leave crtl.opt empty (shs$share:decc$shr.exe/Share)
|
||||
$ else
|
||||
$ crtl = ",sys$library:vaxcrtl.olb/Library" !object library
|
||||
$ if l_opt.ne.0 then goto crtl_ok
|
||||
$ crtl = ",sys$disk:[-.src]crtl.opt/Options" !shareable image
|
||||
$ if f$search("crtl.opt").nes."" then goto crtl_ok !assume its right
|
||||
$ create sys$disk:[-.src]crtl.opt
|
||||
sys$share:vaxcrtl.exe/Shareable
|
||||
$ ! gnulib order: vaxcrtl.exe+gcclib.olb vs gcclib.olb+vaxcrtl.olb
|
||||
$ if l_opt.eq.0 then write f "sys$share:vaxcrtl.exe/Shareable"
|
||||
$ if gnulib.nes."" then write f gnulib
|
||||
$ if l_opt.ne.0 then write f "sys$library:vaxcrtl.olb/Library"
|
||||
$ endif
|
||||
$crtl_ok:
|
||||
$ close f
|
||||
$ if f$search("crtl.opt;-2").nes."" then purge/Keep=2/noLog crtl.opt
|
||||
$ ! version ID info for linker to record in .EXE files
|
||||
$ create ident.opt
|
||||
$ open/Append f ident.opt
|
||||
$ write f "! ident.opt"
|
||||
$ write f "identification=""",version_number,""" !version"
|
||||
$ close f
|
||||
$ if f$search("ident.opt;-1").nes."" then purge/noLog ident.opt
|
||||
$ ident_opt = ",sys$disk:[-.src]ident.opt/Options"
|
||||
$ ! final setup
|
||||
$ nethacklib = "[-.src]nethack.olb"
|
||||
$ create nethack.opt
|
||||
! nethack.opt
|
||||
nethack.olb/Library/Include=(vmsmain)
|
||||
iosegment=128
|
||||
$ if f$search("nethack.opt;-2").nes."" then purge/Keep=2/noLog nethack.opt
|
||||
$ milestone = "write sys$output f$fao("" !5%T "",0),"
|
||||
$ if c_opt.eq.o_LINK then goto link !"LINK" requested, skip compilation
|
||||
$ rename := rename/New_Vers
|
||||
@@ -220,11 +224,11 @@ $ if f$search("[-.util]lev_yacc.c").eqs."" then @[-.sys.vms]spec_lev.com
|
||||
$!
|
||||
$! create object library
|
||||
$!
|
||||
$ if c_opt.ne.o_SPCL .or. f$search("''nethacklib'").eqs."" then -
|
||||
$ if c_opt.ne.o_SPCL .or. f$search(nethacklib).eqs."" then -
|
||||
libr/Obj 'nethacklib'/Create=(Block=3000,Hist=0)
|
||||
$ if f$search("''nethacklib';-1").nes."" then purge 'nethacklib'
|
||||
$!
|
||||
$! compile and link makedefs, then nethack, finally lev_comp & dgn_comp.
|
||||
$! compile and link makedefs, then nethack, lev_comp+dgn_comp, dlb+recover.
|
||||
$!
|
||||
$ milestone "<compiling...>"
|
||||
$ c_list = "[-.sys.vms]vmsmisc,[-.sys.vms]vmsfiles,[]alloc,dlb,monst,objects"
|
||||
@@ -234,7 +238,7 @@ $ if c_opt.eq.o_SPCL then goto special !"SPECIAL" requested, skip main buil
|
||||
$ set default [-.util]
|
||||
$ c_list = "#makedefs"
|
||||
$ gosub compile_list
|
||||
$ link makedefs.obj,'nethacklib'/Lib'crtl''gnulib''ident_opt'
|
||||
$ link makedefs.obj,'nethacklib'/Lib,[-.src]ident.opt/Opt,[-.src]crtl/Opt
|
||||
$ milestone "makedefs"
|
||||
$! create some build-time files
|
||||
$ makedefs -p !pm.h
|
||||
@@ -264,8 +268,8 @@ $ c_list = "hack,hacklib,invent,light,lock,mail,makemon,mapglyph,mcastu" -
|
||||
$ gosub compile_list
|
||||
$ c_list = "pline,polyself,potion,pray,priest,quest,questpgr,read" -
|
||||
+ ",rect,region,restore,rip,rnd,role,rumors,save,shk,shknam,sit" -
|
||||
+ ",sounds,sp_lev,spell,steal,steed,teleport,timeout,topten,track" -
|
||||
+ ",trap,u_init"
|
||||
+ ",sounds,sp_lev,spell,steal,steed,sys,teleport,timeout,topten" -
|
||||
+ ",track,trap,u_init"
|
||||
$ gosub compile_list
|
||||
$ c_list = "uhitm,vault,vision,vis_tab,weapon,were,wield,windows" -
|
||||
+ ",wizard,worm,worn,write,zap"
|
||||
@@ -273,7 +277,7 @@ $ gosub compile_list
|
||||
$!
|
||||
$link:
|
||||
$ milestone "<linking...>"
|
||||
$ link/Exe=nethack.exe 'nethacklib'/Lib/Incl=(vmsmain)'crtl''gnulib''ident_opt'
|
||||
$ link/Exe=nethack.exe nethack.opt/Options,ident.opt/Options,crtl.opt/Options
|
||||
$ milestone "NetHack"
|
||||
$ if c_opt.eq.o_LINK then goto done !"LINK" only
|
||||
$special:
|
||||
@@ -289,17 +293,19 @@ $ copy [-.sys.vms]lev_lex.h stdio.*/Prot=(s:rwd,o:rwd)
|
||||
$ gosub compile_list
|
||||
$ rename stdio.h lev_lex.*
|
||||
$ link/exe=lev_comp.exe lev_main.obj,lev_yacc.obj,lev_lex.obj,-
|
||||
panic.obj,'nethacklib'/Lib'crtl''gnulib''ident_opt'
|
||||
panic.obj,'nethacklib'/Lib,[-.src]ident.opt/Opt,[-.src]crtl.opt/Opt
|
||||
$ milestone "lev_comp"
|
||||
$ link/exe=dgn_comp.exe dgn_main.obj,dgn_yacc.obj,dgn_lex.obj,-
|
||||
panic.obj,'nethacklib'/Lib'crtl''gnulib''ident_opt'
|
||||
panic.obj,'nethacklib'/Lib,[-.src]ident.opt/Opt,[-.src]crtl.opt/Opt
|
||||
$ milestone "dgn_comp"
|
||||
$!
|
||||
$ c_list = "#dlb_main,#recover"
|
||||
$ gosub compile_list
|
||||
$ link/exe=dlb.exe dlb_main.obj,panic.obj,'nethacklib'/Lib'crtl''gnulib''ident_opt'
|
||||
$ link/exe=dlb.exe dlb_main.obj,-
|
||||
panic.obj,'nethacklib'/Lib,[-.src]ident.opt/Opt,[-.src]crtl.opt/Opt
|
||||
$ milestone "dlb"
|
||||
$ link/exe=recover.exe recover.obj,'nethacklib'/Lib'crtl''gnulib''ident_opt'
|
||||
$ link/exe=recover.exe recover.obj,-
|
||||
'nethacklib'/Lib,[-.src]ident.opt/Opt,[-.src]crtl.opt/Opt
|
||||
$ milestone "recover"
|
||||
$!
|
||||
$done:
|
||||
|
||||
Reference in New Issue
Block a user