Source code of Windows XP (NT5)
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.

44 lines
1019 B

  1. @echo off
  2. IF "%VCTOOLS%" == "" goto Usage1
  3. if exist nmktobat.exe goto built_exe
  4. echo =-=-=-=-= Building NMKtoBAT.EXE =-=-=-=-=
  5. echo This program is used in the MSVC CRTL build process
  6. cl /W4 /WX /Za nmktobat.c
  7. if errorlevel 1 goto errlev
  8. :built_exe
  9. IF "%1" == "" goto buildx86
  10. goto Usage2
  11. :buildx86
  12. if "%PROCESSOR_ARCHITECTURE%"=="" set PROCESSOR_ARCHITECTURE=x86
  13. :dobuild
  14. echo =-=-=-=-= Doing CRTL Source build (Objects) =-=-=-=-=
  15. nmake -nologo -i -n BLD_OBJ=1 %1 %2 %3 %4 %5 > do_build.out
  16. nmktobat < do_build.out > do_build.bat
  17. call do_build.bat
  18. if errorlevel 1 goto errlev
  19. echo =-=-=-=-= Doing CRTL Source build (Libraries) =-=-=-=-=
  20. nmake -nologo BLD_LIB=1 %1 %2 %3 %4 %5
  21. if errorlevel 1 goto errlev
  22. goto finish
  23. :errlev
  24. echo.
  25. echo ***
  26. echo *** BUILD ABORTED -- ErrorLevel is non-zero!
  27. echo ***
  28. goto finish
  29. :Usage1
  30. echo The environment variable VCTOOLS must be set to point
  31. echo to the root of your VC++ installation.
  32. goto finish
  33. :Usage2
  34. echo "bldwin9x" builds the runtimes for Intel platforms.
  35. :finish