095f90275662bf8e84438d66b7c12bc4e8ded5a2
[people/sha0/winvblock.git] / makeutils.bat
1 @echo off\r
2 mkdir bin 2>nul\r
3 call config.bat\r
4 cd src\r
5 pushd .\r
6 call %ddkdir%\bin\setenv.bat %ddkdir% w2k\r
7 popd
8 pushd .
9 cd util\r
10 cl /I%CRT_INC_PATH% /I..\include /DWIN32_LEAN_AND_MEAN mount.c /Fe..\..\bin\winvblk.exe /link /LIBPATH:%DDK_LIB_DEST%\i386 /LIBPATH:%Lib%\crt\i386 bufferoverflowU.lib\r
11 del mount.obj
12 popd
13 pushd .
14 cd loader\r
15 cl /I%CRT_INC_PATH% /I..\include /DWIN32_LEAN_AND_MEAN loader.c /Fe..\..\bin\loader32.exe /link /LIBPATH:%DDK_LIB_DEST%\i386 /LIBPATH:%Lib%\crt\i386 setupapi.lib bufferoverflowU.lib
16 del loader.obj\r
17 popd\r
18 pushd .\r
19 call %ddkdir%\bin\setenv.bat %ddkdir% wnet amd64\r
20 popd\r
21 pushd .
22 cd loader
23 cl /I%CRT_INC_PATH% /I..\include /DWIN32_LEAN_AND_MEAN loader.c /Fe..\..\bin\loader64.exe /link /LIBPATH:%DDK_LIB_DEST%\%_BUILDARCH% /LIBPATH:%Lib%\crt\%_BUILDARCH% setupapi.lib bufferoverflowU.lib\r
24 del loader.obj
25 popd\r
26 cd ..\r