[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070]
$!----------------------------------------------------------------------------- $! BUILD_WASDOC.COM $! $! P1 == LINK or BUILD or empty (builds) $! $! 12-MAY-2020 MGD remove NAVIG8.* obsolete from v2.n $! 22-FEB-2019 MGD initial $!----------------------------------------------------------------------------- $! $ set noverify $ on controly then exit 44 $! $ if f$search("wasd_root:[src]archer.com") .nes. "" $ then $ @wasd_root:[src]archer.com "WASDOC" $ else $ arch_name = f$edit(f$getsyi("arch_name"),"upcase") $ write sys$output "" $ write sys$output "Building ""WASDOC"" for ""''arch_name'""" $! $ if arch_name .eqs. "ALPHA" then arch_name = "axp" $ if f$search(f$edit("OBJ_''arch_name'.DIR","upcase")) .EQS. "" - then create /dir [.obj_'arch_name'] $ object_dir = "[.obj_''arch_name']" $ endif $! $ if f$search("navig8.c") .nes. "" then delete [...]navig8.*;* $! $ defines = " /define=(__VMS_VER=70000000,__CRTL_VER=70000000)" $ includes = " /include=[]" $ warnings= " /warning=(disable=(preoptw))" $ float = " /float=ieee /ieee=denorm" $ cc_options = "/decc /optimize /stand=relaxed_ansi /prefix=all" +- float + includes + defines + warnings $! $ @style_wasdoc $! $ P1 = f$edit(P1,"upcase") $ if P1 .eqs. "" .or. P1 .eqs. "BUILD" .or. P1 .eqs. "COMPILE" $ then $ set noon $ set verify $ cc 'cc_options' /object='object_dir' cgi $ cc 'cc_options' /object='object_dir' cgilib $ cc 'cc_options' /object='object_dir' cli $ cc 'cc_options' /object='object_dir' draw $ cc 'cc_options' /object='object_dir' pass2 $ regex_defines = defines - ")" + "," + "STDC_HEADERS,REGEX_MALLOC)" $ cc 'cc_options' 'regex_defines' /object='object_dir' regex $ cc 'cc_options' /object='object_dir' render $ cc 'cc_options' /object='object_dir' spawn $ cc 'cc_options' /object='object_dir' test $ cc 'cc_options' /object='object_dir' wasDOC $! 'f$verify(0) $ set on $ endif $! $linkit: $ if P1 .eqs. "" .or. P1 .eqs. "BUILD" .or. P1 .eqs. "LINK" $ then $ set noon $ set verify $ link /executable='object_dir'wasdoc.exe - 'object_dir'cgi,cgilib,cli,draw,wasdoc,pass2,regex,render,spawn,test $! 'f$verify(0) $ set on $ endif $ purge /nolog 'object_dir' $! $!-----------------------------------------------------------------------------