@echo off

set comfile=v4
set mainfile=vecread
set files=%mainfile%.c forms2.c input2.c convert.c box.c vecin2.c

del *.com 2>nul
del *.bin 2>nul
del *.dsk 2>nul

rem zcc +cpm -subtype=pcw80 -lm -DAMALLOC -create-app %files% -o %comfile%.com

rem using the zsdcc compiler, automatic malloc
rem zcc +cpm -subtype=pcw80 -compiler=sdcc -O2 -lm -DAMALLOC %files% -o %comfile%.com

rem using the zsdcc compiler, no automatic malloc
rem zcc +cpm -subtype=pcw80 -compiler=sdcc -lm %files% -o %comfile%.com

rem creates *.dsk file:
rem zcc +cpm -subtype=pcw80 -compiler=sccz80 -O2 -lm -DAMALLOC -create-app %files% -o %comfile%.com

rem with optimization:
rem zcc +cpm -subtype=pcw80 -compiler=sccz80 -O2 -lm -DAMALLOC %files% -o %comfile%.com

rem without optimization:
rem zcc +cpm -subtype=pcw80 -compiler=sccz80 -lm -DAMALLOC %files% -o %comfile%.com

zcc +cpm -subtype=pcw80 -compiler=sccz80 -lm -DAMALLOC -create-app %files% -o %comfile%.com

copy_to_ramdisk.cmd
