rem  Compile only version
rem
rem  Batch file for building with Cosmic (c:\cosmic, assumed
rem      to be in your PATH).  Compile and link.
rem  It is parameterized to be invoked with a root filename, e.g.
rem      cc16 rootname  // assumes file extension .c
rem  And assumes a linker command file is available in the current
rem     directory with the same root name (e.g., rootname.lnk in this case).
rem  The end result will be the CPU16 loadfile rootname.abs
rem
rem  Option description:
rem  -v  verbose mode of compiler driver
rem  -dxdebug  generate debugging information
rem  -dmods    small model
rem
rem Need to specify where include files are found (any manner of -i/-j
rem   options (as documented) do not work).  Keep them local since subst
rem   does not work on a network drive.
subst i: c:\cosmic\hdrsh16
rem 
c -dCOSMIC=1 -v -dxdebug -dmods +o %1.c
