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.

22 lines
503 B

  1. @echo off
  2. setlocal
  3. set _nokrnl=0
  4. if "%1" == "user" set _nokrnl=1
  5. if "%1" == "user" cd user
  6. if "%1" == "user" shift
  7. set _bldflags=-z
  8. if NOT "%1" == "" set _bldflags=%1 %2 %3 %4 %5
  9. build -z -M 4 %_bldflags%
  10. if ERRORLEVEL 1 goto done
  11. cd %SDXROOT%\base\ntdll
  12. build -z %_bldflags%
  13. if ERRORLEVEL 1 goto done
  14. if "%_nokrnl%" == "1" goto done
  15. cd %SDXROOT%\base\ntos\init
  16. build -z -M 2
  17. if ERRORLEVEL 1 goto done
  18. cd %SDXROOT%\base\boot
  19. build -z -M 4
  20. :done
  21. cd %SDXROOT%\base\ntos\rtl
  22. endlocal