.Key file,opt1,opt2,opt3
;           Compile a C program                       Version 4.00
;           Works with Lattice version 3.03 and above
if not exists mand<file>.c
   echo "File mand<file>.c does not exist.  Try again."
   skip END
   endif
echo "-- compiling...mand<file>.c"

:c/lc1 <opt1> <opt2> <opt3> -i:include/ -i:include/lattice/ mand<file>
if not exists "mand<file>.q"
   echo "Compile failed."
   quit 20
   endif
:c/lc2 mand<file>

echo "-- done compiling 'mand<file>'. --"
LAB END
date >df0:now

