@ECHO OFF REM This script is run by Free Oberon on Windows. Current directory of the REM script will be where FreeOberon.exe is located. This REM particular script is for graphical programs. CD bin >nul 2>&1 @DEL /s %~n1.exe >nul 2>&1 SET CURDIR=%~dp0 SET PATH=%CURDIR%voc\bin;%CURDIR%mingw32\bin;%PATH% ECHO ON gcc -fPIC -g -I "%CURDIR%voc/C/include" -o %~n1.exe %~n1.o "%CURDIR%voc/lib/Graph.o" "%CURDIR%voc/lib/SDL2.o" -L"%CURDIR%voc/lib" -lvoc-OC -w -Wl,-subsystem,windows -lmingw32 -lSDL2main -lSDL2 -lSDL2_image SET MYEXITCODE=%ERRORLEVEL% EXIT /b %MYEXITCODE%