@echo off
gcc -O3 -std=c11 tsunami_gui_win32.c tsunami_core.c -lm -lgdi32 -lcomdlg32 -o tsunami_gui.exe
if %errorlevel% neq 0 (
  echo Build failed. Make sure MinGW-w64 GCC is installed and gcc is in PATH.
  pause
  exit /b %errorlevel%
)
echo Built tsunami_gui.exe
echo JESIM relay: run python jesim_ws_relay.py, then connect Scratch/TurboWarp to ws://127.0.0.1:8765
pause
