.Key file,opt1,opt2,opt3
failat 15
copy "<file$t1>.c" ram:
Lattice:c/lc1 <opt1> <opt2> <opt3> -iLattice:include/ -iLattice:include/lattice/ ram:<file$t1>
if not exists "ram:<file$t1>.q"
   echo "Compile failed."
   quit 20
endif
Lattice:c/lc2 ram:<file$t1>
copy "ram:<file$t1>.o" :
delete "ram:<file$t1>.c" "ram:<file$t1>.o"

