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