2011-04-22 05:06:12 +08:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
SET ASM=%1
|
2011-07-01 22:52:09 +08:00
|
|
|
SET EXARG=
|
2011-04-22 05:06:12 +08:00
|
|
|
|
|
|
|
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
|
2011-05-03 01:11:54 +08:00
|
|
|
if x%ASM% == xno-asm goto compile
|
|
|
|
SET ASM=nasm
|
2011-04-22 05:06:12 +08:00
|
|
|
|
|
|
|
goto compile
|
|
|
|
|
|
|
|
:IA64
|
|
|
|
|
|
|
|
echo Auto Configuring for IA64
|
|
|
|
SET TARGET=VC-WIN64I
|
|
|
|
|
|
|
|
goto compile
|
|
|
|
|
|
|
|
:AMD64
|
|
|
|
|
|
|
|
echo Auto Configuring for AMD64
|
|
|
|
SET TARGET=VC-WIN64A
|
2011-05-03 01:11:54 +08:00
|
|
|
if x%ASM% == xno-asm goto compile
|
2011-05-07 07:47:23 +08:00
|
|
|
SET ASM=nasm
|
2011-05-03 01:11:54 +08:00
|
|
|
|
2011-04-22 05:06:12 +08:00
|
|
|
:compile
|
|
|
|
|
2011-07-01 22:43:34 +08:00
|
|
|
if x%ASM% == xno-asm SET EXARG=no-asm
|
|
|
|
perl Configure %TARGET% %EXARG% fipscheck
|
2011-04-22 05:06:12 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
nmake -f ms\ntdll.mak clean
|
|
|
|
nmake -f ms\ntdll.mak
|
2011-07-02 23:57:35 +08:00
|
|
|
@if ERRORLEVEL 1 goto error
|
2011-06-16 05:04:09 +08:00
|
|
|
nmake -f ms\ntdll.mak install
|
2011-04-22 05:06:12 +08:00
|
|
|
@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
|