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

C-DEVEL:c/lc1 <opt1> <opt2> <opt3> -iIFF_Workbench: -iC-DEVEL:include/ -iC-DEVEL:include/lattice/ <file$t1>
if not exists "<file$t1>.q"
   echo "Compile failed."
   quit 20
   endif
C-DEVEL:c/lc2 <file$t1>

echo "NOT LINKED!"
LAB END

