From cfe2db8135b5332c71a9b844cb5136c4bfd120e3 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 8 Dec 2020 13:47:38 -0500 Subject: got windows build to work --- make.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'make.bat') 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 -- cgit v1.2.3