diff options
Diffstat (limited to 'vms/vmsbuild.com')
-rw-r--r-- | vms/vmsbuild.com | 72 |
1 files changed, 49 insertions, 23 deletions
diff --git a/vms/vmsbuild.com b/vms/vmsbuild.com index 40a9307c..04a54792 100644 --- a/vms/vmsbuild.com +++ b/vms/vmsbuild.com @@ -4,31 +4,50 @@ $! gawk 2.13 revised, Jun'91 $! gawk 2.14 revised, Sep'92 $! gawk 2.15 revised, Oct'93 $! gawk 3.0 revised, Dec'95 +$! gawk 3.0.1 revised, Nov'96 $! $ REL = "3.0" !release version number -$ PATCHLVL = "0" +$ PATCHLVL = "1" $! -$! [ remove "/optimize=noinline" for VAX C V2.x or DEC C ] -$! [ add "/standard=VAXC" for DEC C and "/g_float" for Alpha ] -$ if f$type(cc) .nes."STRING" then cc := cc/nolist/optimize=noinline -$ if f$type(link).nes."STRING" then link := link/nomap -$ if f$type(set_command).nes."STRING" then set_command := set command $! -$ cc := 'cc'/Include=[]/Define="(""GAWK"",""HAVE_CONFIG_H"")" -$ libs = "sys$share:vaxcrtl.exe/Shareable" -$ -$! uncomment for DEC C -$ ! libs = "" -$ -$! uncomment the next two lines for VAX C V2.x -$ ! define vaxc$library sys$library:,sys$disk:[.vms] -$ ! define c$library [],[.vms] +$ CCFLAGS = "/noList" ! "/noOpt/Debug" +$ CDEFS = "GAWK,HAVE_CONFIG_H" $! -$! uncomment next two lines for GNU C -$ ! cc := gcc/Include=([],[.vms])/Define="(""GAWK"",""HAVE_CONFIG_H"")" -$ ! libs = "gnu_cc:[000000]gcclib.olb/Library,sys$library:vaxcrtl.olb/Library" +$ if p1.eqs."" then p1 = "DECC" !default compiler +$ if p1.eqs."GNUC" +$ then +$! assumes VAX +$ CC = "gcc" +$ if f$type(gcc).eqs."STRING" then CC = gcc +$ CFLAGS = "/Incl=([],[.vms])/Obj=[]/Def=(''CDEFS')''CCFLAGS'" +$ LIBS = "gnu_cc:[000000]gcclib.olb/Library,sys$library:vaxcrtl.olb/Library" +$ if p2.eqs."DO_GNUC_SETUP" then set command gnu_cc:[000000]gcc +$ else !!GNUC +$ if p1.eqs."VAXC" +$ then +$! always VAX; version V3.x of VAX C assumed (for V2.x, remove /Opt=noInline) +$ CC = "cc" +$ if f$trnlnm("DECC$CC_DEFAULT").nes."" then CC = "cc/VAXC" +$ CFLAGS = "/Incl=[]/Obj=[]/Opt=noInline/Def=(''CDEFS')''CCFLAGS'" +$ LIBS = "sys$share:vaxcrtl.exe/Shareable" +$ else !!VAXC +$! neither GNUC nor VAXC, assume DECC (same for either VAX or Alpha) +$ CC = "cc/DECC/Prefix=All" +$ CFLAGS = "/Incl=[]/Obj=[]/Def=(''CDEFS')''CCFLAGS'" +$ LIBS = "" ! DECC$SHR instead of VAXCRTL, no special link option needed +$ endif !VAXC +$ endif !GNUC $! -$ if f$search("config.h").eqs."" then copy [.vms]vms-conf.h []config.h +$ cc = CC + CFLAGS +$ show symbol cc +$! +$ if f$search("config.h").nes."" then - + if f$cvtime(f$file_attr("config.h","RDT")).ges.- + f$cvtime(f$file_attr("[.vms]vms-conf.h","RDT")) then goto config_ok +$ v = f$verify(1) +$ copy [.vms]vms-conf.h []config.h +$! 'f$verify(v)' +$config_ok: $ if f$search("awktab.c").nes."" then goto awktab_ok $ write sys$output " You must process `awk.y' with ""yacc"" or ""bison""" $ if f$search("awk_tab.c").nes."" then - !bison was run manually @@ -37,6 +56,7 @@ $ if f$search("ytab.c").nes."" .or. f$search("y_tab.c").nes."" then - !yacc write sys$output " or else rename `ytab.c' or `y_tab.c' to `awktab.c'." $ exit $awktab_ok: +$ v = f$verify(1) $ cc array.c $ cc builtin.c $ cc eval.c @@ -54,20 +74,23 @@ $ cc getopt.c $ cc getopt1.c $ cc regex.c $ cc dfa.c -$ cc/define=("STACK_DIRECTION=(-1)","exit=vms_exit") alloca.c +$ cc random.c +$ cc/Define=('CDEFS',"STACK_DIRECTION=(-1)","exit=vms_exit") alloca.c $ cc [.vms]vms_misc.c $ cc [.vms]vms_popen.c $ cc [.vms]vms_fwrite.c $ cc [.vms]vms_args.c $ cc [.vms]vms_gawk.c $ cc [.vms]vms_cli.c -$ set_command/object=[]gawk_cmd.obj [.vms]gawk.cld +$ set command/Object=[]gawk_cmd.obj [.vms]gawk.cld +$! 'f$verify(v)' $! +$ close/noLog Fopt $ create gawk.opt -! GAWK -- Gnu AWK +! GAWK -- GNU awk array.obj,builtin.obj,eval.obj,field.obj,gawkmisc.obj io.obj,main.obj,missing.obj,msg.obj,node.obj,re.obj,version.obj,awktab.obj -getopt.obj,getopt1.obj,regex.obj,dfa.obj,alloca.obj +getopt.obj,getopt1.obj,regex.obj,dfa.obj,random.obj,alloca.obj []vms_misc.obj,vms_popen.obj,vms_fwrite.obj,vms_args.obj []vms_gawk.obj,vms_cli.obj,gawk_cmd.obj psect_attr=environ,noshr !extern [noshare] char ** @@ -78,4 +101,7 @@ $ write Fopt libs $ write Fopt "identification=""V''REL'.''PATCHLVL'""" $ close Fopt $! +$ v = f$verify(1) $ link/exe=gawk.exe gawk.opt/options +$! 'f$verify(v)' +$ exit |