2
0

link_graph.bat 579 B

123456789101112
  1. @ECHO OFF
  2. REM This script is run by Free Oberon on Windows. Current directory of the
  3. REM script will be where FreeOberon.exe is located. This
  4. REM particular script is for graphical programs.
  5. CD bin >nul 2>&1
  6. @DEL /s %~n1.exe >nul 2>&1
  7. SET CURDIR=%~dp0
  8. SET PATH=%CURDIR%voc\bin;%CURDIR%mingw32\bin;%PATH%
  9. ECHO ON
  10. 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
  11. SET MYEXITCODE=%ERRORLEVEL%
  12. EXIT /b %MYEXITCODE%