@echo off
echo COMPILING ALL SOURCE FILES
FOR %%c in (./*.s) DO sdasz80 -o %%c.rel %%c
copy crtcv.s.rel ..\crtcv.rel
del crtcv.s.rel
echo COMPILE LIBRARY
FOR %%c in (./*.rel) DO sdcclib cvlib.lib %%c
echo COPY GENERATED FILES
copy cvlib.lib ..
copy coleco.h ..
echo CLEAN UP
del *.rel
del cvlib.lib
pause