[build] Build httpdisk.exe with makeutils.bat
[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 httpdisk_util\r
22 build\r
23 copy /y obj%obj%\%arch%\httpdisk.exe ..\..\bin\r
24 popd\r
25 \r
26 pushd .\r
27 cd loader\r
28 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
29 del loader.obj\r
30 popd\r
31 \r
32 pushd .\r
33 call %ddkdir%\bin\setenv.bat %ddkdir% wnet amd64\r
34 popd\r
35 \r
36 pushd .\r
37 cd loader\r
38 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
39 del loader.obj\r
40 popd\r
41 \r
42 cd ..