[util] Tons of cosmetic changes
[people/sha0/winvblock.git] / makeutils.bat
1 @echo off\r
2 \r
3 mkdir bin 2>nul\r
4 call config.bat\r
5 \r
6 cd src\r
7 \r
8 pushd .\r
9 call %ddkdir%\bin\setenv.bat %ddkdir% w2k\r
10 popd\r
11 \r
12 pushd .\r
13 cd util\r
14 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
15 del mount.obj\r
16 popd\r
17 \r
18 pushd .\r
19 cd loader\r
20 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
21 del loader.obj\r
22 popd\r
23 \r
24 pushd .\r
25 call %ddkdir%\bin\setenv.bat %ddkdir% wnet amd64\r
26 popd\r
27 \r
28 pushd .\r
29 cd loader\r
30 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
31 del loader.obj\r
32 popd\r
33 \r
34 cd ..