hexen/Hexen Source/M.BAT
2008-09-04 00:00:00 +00:00

50 lines
846 B
Batchfile

@REM Hexen make batch
@echo off
if "%1"=="/?" goto usage
if "%1"=="f" goto final
if "%1"=="F" goto final
if "%1"=="d" goto debug
if "%1"=="D" goto debug
goto normal
:usage
echo.
echo Hexen make batch
echo Usage: M [/?] [build-type]
echo.
echo build-type f = Final build (no RANGECHECK)
echo build-type d = Debug build (include debugging info)
echo.
goto end
:final
echo.
echo.
echo *** Building Hexen FINAL executable
echo.
echo.
shift
wmake hex.exe EXTERNOPT=/dNORANGECHECKING %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:debug
echo.
echo.
echo *** Building Hexen DEBUG executable
echo.
echo.
shift
wmake hex.exe EXTERNOPT=/d2 %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:normal
echo.
echo.
echo *** Building Hexen DEVELOPMENT executable
echo.
echo.
wmake hex.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:end