summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-08 13:47:38 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-08 13:47:38 -0500
commitcfe2db8135b5332c71a9b844cb5136c4bfd120e3 (patch)
treec589abc4a4f792d3d4c3758957040dd6a7b08744 /make.bat
parent7efbd44a641b32285499b07dc4f5461fec8dc8d5 (diff)
got windows build to work
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat10
1 files changed, 5 insertions, 5 deletions
diff --git a/make.bat b/make.bat
index a85f7d6..4fdc115 100644
--- a/make.bat
+++ b/make.bat
@@ -5,11 +5,11 @@ if _%VCVARS% == _ (
)
if not exist obj mkdir obj
-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 CFLAGS=/nologo /W3 /D_CRT_SECURE_NO_WARNINGS /I SDL2/include /I box2d SDL2/lib/x64/SDL2main.lib SDL2/lib/x64/SDL2.lib opengl32.lib box2d.lib /MD
if _%1 == _ (
- cl main.c /DDEBUG /DEBUG /Zi %CFLAGS% /Fo:obj/urbs /Fe:physics
- cl sim.c /DDEBUG /DEBUG /LD %CFLAGS% /Fo:obj/sim /Fe:obj/sim
+ cl main.cpp /DDEBUG /DEBUG /Zi %CFLAGS% /Fo:obj/urbs /Fe:physics
+ cl sim.cpp /DDEBUG /DEBUG /LD %CFLAGS% /Fo:obj/sim /Fe:obj/sim
echo > obj\sim.dll_changed
)
-if _%1 == _release cl main.c /O2 %CFLAGS% /Fe:physics
-if _%1 == _profile cl main.c /O2 /DPROFILE %CFLAGS% /Fe:physics
+if _%1 == _release cl main.cpp /O2 %CFLAGS% /Fe:physics
+if _%1 == _profile cl main.cpp /O2 /DPROFILE %CFLAGS% /Fe:physics