@echo off
REM Build Horse with MinGW-w64. Adjust the path if your install differs.
set BIN=C:\msys64\mingw64\bin
"%BIN%\windres.exe" horse.rc -O coff -o horse_res.o
if not %errorlevel%==0 (echo Resource build FAILED & goto :eof)
"%BIN%\g++.exe" -O2 -mwindows -static -static-libgcc -static-libstdc++ horse.cpp horse_res.o -o horse.exe -lwinmm -lgdi32 -lshell32
if %errorlevel%==0 (echo Built horse.exe) else (echo Build FAILED)
