5 if NOT X
%PROCESSOR_ARCHITECTURE% == X
goto defined
7 echo Processor Architecture Undefined
: defaulting to X86
13 if %PROCESSOR_ARCHITECTURE% == x86
goto X86
15 if %PROCESSOR_ARCHITECTURE% == IA64
goto IA64
17 if %PROCESSOR_ARCHITECTURE% == AMD64
goto AMD64
19 echo Processor Architecture Unrecognized
: defaulting to X86
22 echo Auto Configuring
for X86
26 if x
%ASM% == xno
-asm
goto compile
27 echo Generating x86
for NASM assember
29 SET ASMOPTS
=-DOPENSSL_IA32_SSE2
33 perl bn
-586.pl win32n
%ASMOPTS% > bn_win32.asm
34 if ERRORLEVEL 1 goto error
35 perl co
-586.pl win32n
%ASMOPTS% > co_win32.asm
36 if ERRORLEVEL 1 goto error
37 perl mo
-586.pl win32n
%ASMOPTS% > mt_win32.asm
38 if ERRORLEVEL 1 goto error
43 perl aes
-586.pl win32n
%ASMOPTS% > a_win32.asm
44 if ERRORLEVEL 1 goto error
49 perl des
-586.pl win32n
%ASMOPTS% > d_win32.asm
50 if ERRORLEVEL 1 goto error
56 perl crypt586.pl win32n
%ASMOPTS% > y_win32.asm
57 if ERRORLEVEL 1 goto error
63 perl bf
-586.pl win32n
%ASMOPTS% > b_win32.asm
64 if ERRORLEVEL 1 goto error
69 perl cast
-586.pl win32n
%ASMOPTS% > c_win32.asm
70 if ERRORLEVEL 1 goto error
75 perl rc4
-586.pl win32n
%ASMOPTS% > r4_win32.asm
76 if ERRORLEVEL 1 goto error
81 perl md5
-586.pl win32n
%ASMOPTS% > m5_win32.asm
82 if ERRORLEVEL 1 goto error
87 perl sha1
-586.pl win32n
%ASMOPTS% > s1_win32.asm
88 if ERRORLEVEL 1 goto error
89 perl sha512
-sse2.pl win32n
%ASMOPTS% > sha512
-sse2.asm
90 if ERRORLEVEL 1 goto error
95 perl rmd
-586.pl win32n
%ASMOPTS% > rm_win32.asm
96 if ERRORLEVEL 1 goto error
101 perl rc5
-586.pl win32n
%ASMOPTS% > r5_win32.asm
102 if ERRORLEVEL 1 goto error
107 perl x86cpuid.pl win32n
%ASMOPTS% > cpu_win32.asm
108 if ERRORLEVEL 1 goto error
115 echo Auto Configuring
for IA64
117 perl ms\uplink.pl win64i
> ms\uptable.asm
118 if ERRORLEVEL 1 goto error
119 ias
-o ms\uptable.obj ms\uptable.asm
120 if ERRORLEVEL 1 goto error
126 echo Auto Configuring
for AMD64
128 perl ms\uplink.pl win64a
> ms\uptable.asm
129 if ERRORLEVEL 1 goto error
130 ml64
-c
-Foms\uptable.obj ms\uptable.asm
131 if ERRORLEVEL 1 goto error
133 if x
%ASM% == xno
-asm
goto compile
134 echo Generating x86_64
for ML64 assember
139 perl x86_64
-mont.pl x86_64
-mont.asm
140 if ERRORLEVEL 1 goto error
145 perl aes
-x86_64.pl aes
-x86_64.asm
146 if ERRORLEVEL 1 goto error
151 perl sha1
-x86_64.pl sha1
-x86_64.asm
152 if ERRORLEVEL 1 goto error
153 perl sha512
-x86_64.pl sha256
-x86_64.asm
154 if ERRORLEVEL 1 goto error
155 perl sha512
-x86_64.pl sha512
-x86_64.asm
156 if ERRORLEVEL 1 goto error
161 perl x86_64cpuid.pl cpuid
-x86_64.asm
162 if ERRORLEVEL 1 goto error
167 perl Configure
%TARGET% fipscanisterbuild
172 perl util\mkfiles.pl
>MINFO
173 @
if ERRORLEVEL 1 goto error
174 perl util\mk1mf.pl dll
%ASM% %TARGET% >ms
\ntdll.mak
175 @
if ERRORLEVEL 1 goto error
177 perl util\mkdef.pl
32 libeay
> ms\libeay32.def
178 @
if ERRORLEVEL 1 goto error
179 perl util\mkdef.pl
32 ssleay
> ms\ssleay32.def
180 @
if ERRORLEVEL 1 goto error
182 nmake
-f ms
\ntdll.mak clean
183 nmake
-f ms
\ntdll.mak
184 @
if ERRORLEVEL 1 goto error
189 @
echo ***************************
190 @
echo ****FIPS BUILD SUCCESS
*****
191 @
echo ***************************
200 @
echo ***************************
201 @
echo ****FIPS BUILD FAILURE
*****
202 @
echo ***************************