diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-08 13:47:38 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-08 13:47:38 -0500 |
commit | cfe2db8135b5332c71a9b844cb5136c4bfd120e3 (patch) | |
tree | c589abc4a4f792d3d4c3758957040dd6a7b08744 /make.bat | |
parent | 7efbd44a641b32285499b07dc4f5461fec8dc8d5 (diff) |
got windows build to work
Diffstat (limited to 'make.bat')
-rw-r--r-- | make.bat | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |