diff options
Diffstat (limited to 'code/build.bat')
-rwxr-xr-x | code/build.bat | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/code/build.bat b/code/build.bat new file mode 100755 index 0000000..2f9ac95 --- /dev/null +++ b/code/build.bat @@ -0,0 +1,19 @@ +@echo off + +call cache.bat + +set CommonCompilerFlags=-MTd -Gm- -nologo -GR- -EHa- -Oi -WX -W4 -wd4459 -wd4456 -wd4201 -wd4100 -wd4189 -wd4505 -wd4996 -wd4389 -DHANDMADE_SLOW=1 -DHANDMADE_INTERNAL=1 -FC -Z7 +set CommonLinkerFlags=-opt:ref -incremental:no user32.lib Gdi32.lib winmm.lib + +IF NOT EXIST ..\build mkdir ..\build +pushd ..\build + +REM 32-Bit +REM cl %CommonCompilerFlags% ..\code\win32_handmade.cpp /link -subsystem:windows,5.1 %CommonLinkerFlags% + +REM 64-Bit +cl %CommonCompilerFlags% ..\code\handmade.cpp -Fmhandmade.map -LD /link /DLL /EXPORT:GameGetSoundSamples /EXPORT:GameUpdateAndRender + +cl %CommonCompilerFlags% ..\code\win32_handmade.cpp -Fmwin32_handmade.map /link %CommonLinkerFlags% + +popd
\ No newline at end of file |