Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

  1. echo off
  2. if "%1"=="" goto debug
  3. if "%1"=="all" goto debug
  4. if "%1"=="debug" goto debug
  5. if "%1"=="retail" goto retail
  6. if "%1"=="rom" goto rom
  7. echo Usage:
  8. echo mk - Make debug version
  9. echo mk debug - Make debug version
  10. echo mk retail - Make retail version
  11. echo mk rom [debug \ retail] - Make ROM version
  12. echo mk all - Make ALL versions!
  13. goto end
  14. rem ##
  15. rem ## Make debug version
  16. rem ##
  17. :debug
  18. nmake OPTIONS="-DDEBUG=1"
  19. if "%1"=="all" goto retail
  20. goto end
  21. rem ##
  22. rem ## Make retail version
  23. rem ##
  24. :retail
  25. nmake SRC=".." DEST="retail" OPTIONS=""
  26. if "%1"=="all" goto rom
  27. goto end
  28. rem ##
  29. rem ## Make debug ROM Windows version
  30. rem ##
  31. :rom
  32. if "%2"=="retail" goto rrom
  33. nmake SRC=".." DEST="rom" OPTIONS="-DDEBUG=1 -DROM=1" VCPI="" LINKCMD="dosx.exe/far/ma,dosx.map,,$(SRC)\dosx.def;"
  34. if "%1"=="all" goto rrom
  35. goto end
  36. rem ##
  37. rem ## Make retail ROM Windows version
  38. rem ##
  39. :rrom
  40. nmake SRC=".." DEST="rrom" OPTIONS="-DROM=1" VCPI="" LINKCMD="dosx.exe/far/ma,dosx.map,,$(SRC)\dosx.def;"
  41. goto end
  42. :end