qse/ase/awk/build.com

26 lines
478 B
Plaintext

$
$! build script for OpenVMS
$
$ names := awk,hash,tab,tree,parse,sa
$ gosub compile
$ gosub archive
$ exit
$
$ compile:
$ num = 0
$ compile_loop:
$ name = f$element(num,",",names)
$ if name .eqs. "," then return
$ gosub compile_file
$ num = num + 1
$ goto compile_loop
$
$ compile_file:
$ write sys$output "Compiling ''name'.c..."
$ cc/define=__STAND_ALONE 'name'
$ return
$
$ archive:
$ write sys$output "Creating library..."
$ lib/create xpawk 'names'