diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..7bfe7815 --- /dev/null +++ b/build.bat @@ -0,0 +1,16 @@ +@echo off + +rem download this: +rem https://nuwen.net/mingw.html + +echo compiling (windows)... + +windres res.rc -O coff -o res.res +gcc src/*.c src/api/*.c src/lib/lua52/*.c src/lib/stb/*.c^ + -O3 -s -std=gnu11 -fno-strict-aliasing -Isrc -DLUA_USE_POPEN^ + -Iwinlib/SDL2-2.0.10/x86_64-w64-mingw32/include^ + -lmingw32 -lm -lSDL2main -lSDL2 -Lwinlib/SDL2-2.0.10/x86_64-w64-mingw32/lib^ + -mwindows res.res^ + -o lite.exe + +echo done