[build] Move driver loader into subdir
[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\r
8 cl /I%CRT_INC_PATH% /DWIN32_LEAN_AND_MEAN mount.c /Fe..\bin\winvblk.exe /link /LIBPATH:%DDK_LIB_DEST%\i386 /LIBPATH:%Lib%\crt\i386 bufferoverflowU.lib\r
9 del mount.obj
10 pushd .
11 cd loader\r
12 cl /I%CRT_INC_PATH% /DWIN32_LEAN_AND_MEAN loader.c /Fe..\..\bin\loader32.exe /link /LIBPATH:%DDK_LIB_DEST%\i386 /LIBPATH:%Lib%\crt\i386 setupapi.lib bufferoverflowU.lib
13 del loader.obj\r
14 popd\r
15 pushd .\r
16 call %ddkdir%\bin\setenv.bat %ddkdir% wnet amd64\r
17 popd\r
18 pushd .
19 cd loader
20 cl /I%CRT_INC_PATH% /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
21 del loader.obj
22 popd\r
23 cd ..\r