From: Dr. Stephen Henson Date: Thu, 21 Apr 2011 21:06:12 +0000 (+0000) Subject: Initial do_fips.bat build script for WIN32 fipscanister. X-Git-Tag: OpenSSL-fips-2_0-rc1~515 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=79170bc97a0a927ef24b192b51bf316f8660f8e3 Initial do_fips.bat build script for WIN32 fipscanister. --- diff --git a/ms/do_fips.bat b/ms/do_fips.bat new file mode 100644 index 0000000000..b1611c4710 --- /dev/null +++ b/ms/do_fips.bat @@ -0,0 +1,87 @@ +@echo off + +SET ASM=%1 + +if NOT X%PROCESSOR_ARCHITECTURE% == X goto defined + +echo Processor Architecture Undefined: defaulting to X86 + +goto X86 + +:defined + +if %PROCESSOR_ARCHITECTURE% == x86 goto X86 + +if %PROCESSOR_ARCHITECTURE% == IA64 goto IA64 + +if %PROCESSOR_ARCHITECTURE% == AMD64 goto AMD64 + +echo Processor Architecture Unrecognized: defaulting to X86 + +:X86 +echo Auto Configuring for X86 + +SET TARGET=VC-WIN32 + +goto compile + +:IA64 + +echo Auto Configuring for IA64 +SET TARGET=VC-WIN64I +perl ms\uplink.pl win64i > ms\uptable.asm +if ERRORLEVEL 1 goto error +ias -o ms\uptable.obj ms\uptable.asm +if ERRORLEVEL 1 goto error + +goto compile + +:AMD64 + +echo Auto Configuring for AMD64 +SET TARGET=VC-WIN64A +perl ms\uplink.pl win64a > ms\uptable.asm +if ERRORLEVEL 1 goto error +ml64 -c -Foms\uptable.obj ms\uptable.asm +if ERRORLEVEL 1 goto error + +:compile + +perl Configure %TARGET% fipscanisteronly +pause + +echo on + +perl util\mkfiles.pl >MINFO +@if ERRORLEVEL 1 goto error +perl util\mk1mf.pl dll %ASM% %TARGET% >ms\ntdll.mak +@if ERRORLEVEL 1 goto error + +perl util\mkdef.pl 32 libeay > ms\libeay32.def +@if ERRORLEVEL 1 goto error +perl util\mkdef.pl 32 ssleay > ms\ssleay32.def +@if ERRORLEVEL 1 goto error + +nmake -f ms\ntdll.mak clean +nmake -f ms\ntdll.mak +@if ERRORLEVEL 1 goto error + +@echo. +@echo. +@echo. +@echo *************************** +@echo ****FIPS BUILD SUCCESS***** +@echo *************************** + +@goto end + +:error + +@echo. +@echo. +@echo. +@echo *************************** +@echo ****FIPS BUILD FAILURE***** +@echo *************************** + +:end