-echo off\r
-REM \r
-REM There is one parameter allowed. It can be:\r
-REM CLEAN: to erase all intermediate and target files\r
-REM DEBUG: builds ONLY the debug versions\r
-REM RELEASE: builds ONLY the release versions\r
-\r
-set BUILD_FAILURE=\r
-\r
-\r
-REM Setup paths for the c compiler and it's tools.\r
-REM (many of the tools within each target's makefile\r
-REM are referenced via a relative path too)\r
-\r
-REM only set up the paths if they haven't already been setup. \r
-if "%PATHS_SET%"== "Yes" GOTO SKIP_PATHS\r
-\r
-REM Need to set a path to a directory that is relative to this batch file.\r
-REM use pathenv to output a simple batch file that resolves the relative\r
-REM path name into a full path name. Run that batch file to set the\r
-REM environment variable (the variable to be set is in the pathenv param list)\r
-\r
-bin\pathenv temp.bat MSDevDir msdev\r
-call temp.bat\r
-erase temp.bat\r
-rem if errorlevel 1 goto BUILD_FAILURE\r
-\r
-if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MASMDir%\BIN;%MSDevDir%\BIN\%VcOsDir%;%PATH%\r
-if "%OS%" == "" set PATH="%MSDevDir%\BIN";%MASMDir%\BIN;"%MSDevDir%\BIN\%VcOsDir%";"%PATH%"\r
-set INCLUDE=%DXDir%\sdk\inc;%MSDevDir%\INCLUDE;%MSDevDir%\MFC\INCLUDE;%INCLUDE%\r
-set LIB=%DXDir%\sdk\lib;%MSDevDir%\LIB;%MSDevDir%\MFC\LIB;%LIB%\r
-set MSDevDir=\r
-set DXDir=\r
-set MASMDir=\r
-Set PATHS_SET=Yes\r
-echo %INCLUDE%\r
-REM goto VERY_END\r
-:SKIP_PATHS\r
-\r
-REM Paths are setup. \r
-\r
-\r
-REM Clean up previous build logs.\r
-if exist buildlog\build.log goto BUILDLOG_EXISTS\r
-mkdir buildlog\r
-:BUILDLOG_EXISTS\r
-echo building: > buildlog\build.log\r
-for %%1 in (buildlog\*.*) do del %%1\r
-echo building: > buildlog\build.log\r
-\r
-echo Building Debug Version: >> buildlog\build.log\r
-nmake -f gbsplib.mak CFG="GBSPLib - Win32 Debug" >> buildlog\build.log\r
-echo Building Release Version: >> buildlog\build.log\r
-nmake -f gbsplib.mak CFG="GBSPLib - Win32 Release" >> buildlog\build.log\r
-\r