.key prg
if not exists <prg>.c
  echo "File not found"
  skip end
endif
echo "Compiling"
copy <prg>.c ram:
cd :Include
:c/lc1 -b0 ram:<prg>
cd :Sources
:c/lc2 ram:<prg>
if not exists ram:comal.lib
  copy :Lib/comal.lib to ram:
endif
if not exists ram:amiga.lib
  copy :Lib/amiga.lib to ram:
endif
:c/blink FROM p.o+ram:<prg>.o TO ram:<prg>.pck LIBRARY ram:comal.lib+ram:amiga.lib+:Lib/LC.lib+IFF.lib
copy ram:<prg>.pck to :Packages
delete ram:#?
lab end
