kolibrios-fun/programs/develop/fp/examples/_build.bat

21 lines
342 B
Batchfile
Raw Normal View History

@echo off
set NAME=%1
set NAMEEXE=%NAME%.exe
set NAMEKOS=%NAME%
set BUILD=-FUbuild
set UNTS=-Fu..\units
fpc %NAME%.pp -n -Twin32 -Se5 -XXs -Sg -O3pPENTIUM3 -CfSSE -WB0 %BUILD% %UNTS%
if errorlevel 1 goto error
..\exe2kos\exe2kos.exe %NAMEEXE% %NAMEKOS%.kex
del %NAMEEXE%
goto end
:error
echo An error occured while building %NAME%
:end