compile_no_graph.bat 608 B

1234567891011121314151617181920
  1. @ECHO OFF
  2. REM This script is run by Free Oberon on Windows.
  3. REM Current directory of the script will be where
  4. REM FreeOberon.exe is located.
  5. REM This particular script is for console programs.
  6. CD bin >nul 2>&1
  7. @DEL /s %~n1.exe >nul 2>&1
  8. SET CURDIR=%~dp0
  9. SET PATH=%CURDIR%voc\bin;%CURDIR%mingw32\bin;%PATH%
  10. ECHO ON
  11. @CALL voc -OC -cfFm ..\Programs\%1
  12. @SET MYEXITCODE=%ERRORLEVEL%
  13. @ECHO OFF
  14. IF "%MYEXITCODE%"=="0" GOTO OK1
  15. GOTO END1
  16. :OK1
  17. gcc -fPIC -g -I "%CURDIR%voc/C/include" -o %~n1.exe %~n1.o -L"%CURDIR%voc/lib" -lvoc-OC -lmingw32
  18. SET MYEXITCODE=%ERRORLEVEL%
  19. :END1
  20. EXIT /b %MYEXITCODE%