X-Git-Url: https://bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=mk%2FmkT0.cmd;fp=mk%2FmkT0.cmd;h=98955625b9e38beac326f5f88b180b79dffa538b;hp=0000000000000000000000000000000000000000;hb=3f00688b9d9f483a6ca97e659eea104995ea15b7;hpb=2f454aad577ae53798935cc32438a2d3f02ba31f diff --git a/mk/mkT0.cmd b/mk/mkT0.cmd new file mode 100644 index 0000000..9895562 --- /dev/null +++ b/mk/mkT0.cmd @@ -0,0 +1,32 @@ +@echo off + +rem ===================================================================== +rem This script uses the command-line C# compiler csc.exe, which is +rem provided with the .NET framework. We need framework 3.5 or later +rem (some of the code uses features not available in the language version +rem implemented in the compiler provided with framework 2.0.50727). +rem ===================================================================== + +if exist "%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe" ( + set CSC="%SystemRoot%\Microsoft.NET\Framework\v3.5\csc.exe" + goto do_compile +) +if exist "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe" ( + set CSC="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\csc.exe" + goto do_compile +) +if exist "%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe" ( + set CSC="%SystemRoot%\Microsoft.NET\Framework64\v3.5\csc.exe" + goto do_compile +) +if exist "%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" ( + set CSC="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" + goto do_compile +) + +echo C# compiler not found +exit 1 + +:do_compile +%CSC% /nologo /out:T0Comp.exe /main:T0Comp /res:T0\kern.t0,t0-kernel T0\*.cs +if %errorlevel% neq 0 exit /b %errorlevel%