@echo off
echo Seal Screen Saver Compilator
echo ----------------------------
echo http://www.sealsystem.org
echo.
echo NEED DJGPP !
echo.
set FF=sss\%1.c
if not exist %FF% goto err
echo Compiling sss\%1.c
echo.
gcc -g -Iinclude/ -c sss\%1.c -o obj\sss\%1.o
echo Linking to bin\%1.sss
dlxgen.exe %2bin\%1.sss obj\sss\%1.o
if exist %1.dat dlxinsd bin\%1.sss %1.dat
echo ...
del obj\sss\%1.o
echo.
echo Finished
goto fin

:err
echo ERROR
echo.
echo Using       : APP [file name without ".C"]
echo Sample      : APP myapp
echo.
:fin
set FF=