summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-25 09:17:00 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-25 09:17:00 -0500
commit4e51199f1103d2d9daa563b63d0e8f22c36fbe8a (patch)
tree707b7cf557f1b9937a58c66f593847bd957e07b3 /make.bat
parente3aa668ef358739148adb1a4965b629d07467575 (diff)
got windows build to work
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat13
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