diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-25 09:17:00 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-25 09:17:00 -0500 |
commit | 4e51199f1103d2d9daa563b63d0e8f22c36fbe8a (patch) | |
tree | 707b7cf557f1b9937a58c66f593847bd957e07b3 /make.bat | |
parent | e3aa668ef358739148adb1a4965b629d07467575 (diff) |
got windows build to work
Diffstat (limited to 'make.bat')
-rw-r--r-- | make.bat | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/make.bat b/make.bat new file mode 100644 index 0000000..ca72723 --- /dev/null +++ b/make.bat @@ -0,0 +1,13 @@ +@echo off +if _%VCVARS% == _ ( + set VCVARS=1 + call vcvarsall x64 +) + +SET CFLAGS=/nologo /W3 /D_CRT_SECURE_NO_WARNINGS /I SDL2/include SDL2/lib/x64/SDL2main.lib SDL2/lib/x64/SDL2.lib opengl32.lib +SET SOURCES=main.c text.c +if _%1 == _ ( + cl %SOURCES% /DDEBUG /DEBUG /Zi %CFLAGS% /Fe:ted +) +if _%1 == _release cl %SOURCES% /O2 %CFLAGS% /Fe:ted +if _%1 == _profile cl %SOURCES% /O2 /DPROFILE %CFLAGS% /Fe:ted |