do_fips.bat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. rem @echo off
  2. SET ASM=%1
  3. SET EXARG=
  4. SET MFILE=ntdll.mak
  5. if NOT X%OSVERSION% == X goto wince
  6. if NOT X%PROCESSOR_ARCHITECTURE% == X goto defined
  7. echo Processor Architecture Undefined: defaulting to X86
  8. goto X86
  9. :defined
  10. if %PROCESSOR_ARCHITECTURE% == x86 goto X86
  11. if %PROCESSOR_ARCHITECTURE% == IA64 goto IA64
  12. if %PROCESSOR_ARCHITECTURE% == AMD64 goto AMD64
  13. echo Processor Architecture Unrecognized: defaulting to X86
  14. :X86
  15. echo Auto Configuring for X86
  16. SET TARGET=VC-WIN32
  17. if x%ASM% == xno-asm goto compile
  18. SET ASM=nasm
  19. goto compile
  20. :IA64
  21. echo Auto Configuring for IA64
  22. SET TARGET=VC-WIN64I
  23. goto compile
  24. :AMD64
  25. echo Auto Configuring for AMD64
  26. SET TARGET=VC-WIN64A
  27. if x%ASM% == xno-asm goto compile
  28. SET ASM=nasm
  29. goto compile
  30. :wince
  31. echo Auto Configuring for WinCE
  32. SET TARGET=VC-CE
  33. SET MFILE=cedll.mak
  34. :compile
  35. if x%ASM% == xno-asm SET EXARG=no-asm
  36. perl Configure %TARGET% %EXARG% fipscheck
  37. pause
  38. echo on
  39. perl util\mkfiles.pl >MINFO
  40. @if ERRORLEVEL 1 goto error
  41. perl util\mk1mf.pl dll %ASM% %TARGET% >ms\%MFILE%
  42. @if ERRORLEVEL 1 goto error
  43. nmake -f ms\%MFILE% clean
  44. nmake -f ms\%MFILE%
  45. @if ERRORLEVEL 1 goto error
  46. nmake -f ms\%MFILE% install
  47. @if ERRORLEVEL 1 goto error
  48. @echo.
  49. @echo.
  50. @echo.
  51. @echo ***************************
  52. @echo ****FIPS BUILD SUCCESS*****
  53. @echo ***************************
  54. @goto end
  55. :error
  56. @echo.
  57. @echo.
  58. @echo.
  59. @echo ***************************
  60. @echo ****FIPS BUILD FAILURE*****
  61. @echo ***************************
  62. :end