M.BAT 846 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @REM Hexen make batch
  2. @echo off
  3. if "%1"=="/?" goto usage
  4. if "%1"=="f" goto final
  5. if "%1"=="F" goto final
  6. if "%1"=="d" goto debug
  7. if "%1"=="D" goto debug
  8. goto normal
  9. :usage
  10. echo.
  11. echo Hexen make batch
  12. echo Usage: M [/?] [build-type]
  13. echo.
  14. echo build-type f = Final build (no RANGECHECK)
  15. echo build-type d = Debug build (include debugging info)
  16. echo.
  17. goto end
  18. :final
  19. echo.
  20. echo.
  21. echo *** Building Hexen FINAL executable
  22. echo.
  23. echo.
  24. shift
  25. wmake hex.exe EXTERNOPT=/dNORANGECHECKING %1 %2 %3 %4 %5 %6 %7 %8 %9
  26. goto end
  27. :debug
  28. echo.
  29. echo.
  30. echo *** Building Hexen DEBUG executable
  31. echo.
  32. echo.
  33. shift
  34. wmake hex.exe EXTERNOPT=/d2 %1 %2 %3 %4 %5 %6 %7 %8 %9
  35. goto end
  36. :normal
  37. echo.
  38. echo.
  39. echo *** Building Hexen DEVELOPMENT executable
  40. echo.
  41. echo.
  42. wmake hex.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
  43. goto end
  44. :end