a7d9cde83f090d29b56b1f07de9d23bd0fd7b538
[people/sha0/winvblock.git] / makeutils.bat
1 @echo off\r
2 \r
3 mkdir bin 2>nul\r
4 call config.bat\r
5 set lib=%ddkdir%\lib\r
6 \r
7 cd src\r
8 \r
9 pushd .\r
10 call %ddkdir%\bin\setenv.bat %ddkdir% w2k\r
11 popd\r
12 \r
13 pushd .\r
14 cd util\r
15 rc winvblock.rc\r
16 cl /I%CRT_INC_PATH% /I..\include /DWIN32_LEAN_AND_MEAN winvblk.c winvblock.res /Fe..\..\bin\winvblk.exe /link /LIBPATH:%DDK_LIB_DEST%\i386 /LIBPATH:%Lib%\crt\i386 bufferoverflowU.lib\r
17 del winvblk.obj\r
18 popd\r
19 \r
20 pushd .\r
21 cd loader\r
22 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\r
23 del loader.obj\r
24 popd\r
25 \r
26 pushd .\r
27 call %ddkdir%\bin\setenv.bat %ddkdir% wnet amd64\r
28 popd\r
29 \r
30 pushd .\r
31 cd loader\r
32 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
33 del loader.obj\r
34 popd\r
35 \r
36 cd ..