$! VBUILD.COM $! $! Build Decus C on VMS $! Includes compiler, assembler, library, tools, lex, useful, misc, $! libc, vaxlib and documentation $! $! The default directory is [-.command] $! $! First check that externally defined commands/logicals are present. $! $ ok = 1 $ if "''f$logical("C")'" .nes. "" then goto ok1 $ write sys$error "The C: logical device must be defined" $ ok = 0 $ ok1: if "''f$logical("BIN")'" .nes. "" then goto ok2 $ write sys$error "The BIN: logical device must be defined" $ ok = 0 $ ok2: if "''XCC'" .nes. "" then goto ok3 $ write sys$error "The XCC command must be defined" $ ok = 0 $ ok3: if "''XAS'" .nes. "" then goto ok4 $ write sys$error "The XAS command must be defined" $ ok = 0 $ ok4: if ok then goto ok5 $ write sys$error "Fatal error, build cannot proceed" $ goto finis $ ok5: $! $ on error then exit $ copy/log [-.command]*.h c: ! Include files $ copy/log [-.command]cmacs.mac c: ! User macro library $ @[-.comp]vmakcc ! Compiler $ @[-.comp]vmakas ! Assembler $ @[-.otsio]vmaklb ! Run-time library $ @vgtdoc ! And the documentation $ purge c: ! Cleanup after ourselves $! $ set default [-.tools] ! Locate us into tools $ @btools.leo ! Build the tool com files $ @vntool ! Compile the tools - native $! ! OR $!! @vxtool ! Compile the tools - compatability $ @toldoc ! And the documentation $ purge bin: $! $ set default [-.useful] ! Now, do the useful library $ @bmkcu.leo ! Build the useful com files $ @vnmkcu ! Compile the library VAXCU - native $ @vxmkcu ! Compile the library CU - compatability $ @vuldoc ! And the documentation $ purge c: ! Cleanup $! $ set default [-.libc] ! Now, do the libc library $ @blibc.leo ! Build the libc com files $ @vnlibc ! Compile the library VAXLIBC - native $ @vxlibc ! Compile the library LIBC - compatability $ @libdoc ! And the documentation $ purge c: ! Cleanup $! $ set default [-.vaxlib] ! Now, do the vaxlib library $ @vaxlib ! Build the vaxlib com files $ purge c: ! Cleanup $! $! $ set default [-.pml] ! Now, do the pml library $ @bpml.leo ! Build the pml com files $ @vnpml ! Compile the library VNPML - native $ @vxpml ! Compile the library PML - compatability $ runoff/output=pml.doc pml.rno ! And the documentation $ purge c: ! Cleanup $! $ set default [-.misc] ! Now, do the misc library $ @bmisc.leo ! Build the misc com files $!! Note: The programs in .MISC are from various sources and may not be $!! complete or correct. We'll ignore errors while we try to build $!! them so that those that can be built will - you'll have to examine $!! the log file to know which are which. $ @vxmisc ! Compile the misc - compatability $! OR $!! @vnmisc ! Compile the misc files - native $!! Note: The programs in .MISC are from various sources and some will require $!! modification for native compilation. Also, all of the necessary $!! library interface routines may not exist in VAXLIB. $ purge c: ! Cleanup $! $ set default [-.lex] ! Now, locate us into lex $ @blex.leo ! Build the lex com files $ @vxlexl ! Compile lex library - compatability $ @vxlex ! And compile lex itself - compatability $! OR $!! @vnlexl ! Compile lex library - native $!! @vnlex ! And compile lex itself - native $!! Note: The programs in .LEX have not been tested with the VAX compiler and $!! may require modification for native compilation. $!! Also, all of the necessary library interface routines may not $!! exist in VAXLIB. $ purge c: ! Cleanup $ purge bin: ! Cleanup $ set default [-.command] ! Home again $! $! Everything is built! $! $ finis: