summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
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