[driver,bus] Move WvBus* subjects into new bus.c
[people/sha0/winvblock.git] / src / winvblock / makedriver.bat
1 @echo off\r
2 \r
3 set lib=libbus disk ramdisk filedisk\r
4 \r
5 set links=\r
6 for /d %%a in (%lib%) do (\r
7   pushd .\r
8   cd %%a\r
9   call makelib.bat\r
10   popd\r
11   )\r
12 \r
13 set c=debug.c driver.c probe.c registry.c winvblock.rc device.c wv_stdlib.c wv_string.c irp.c dummy.c bus.c\r
14 \r
15 set name=WVBlk%bits%\r
16 \r
17 echo !INCLUDE $(NTMAKEENV)\makefile.def > makefile\r
18 \r
19 echo INCLUDES=..\include                > sources\r
20 echo TARGETNAME=%name%                  >> sources\r
21 echo TARGETTYPE=EXPORT_DRIVER           >> sources\r
22 echo TARGETPATH=obj                     >> sources\r
23 echo LINKLIBS=%links%                   >> sources\r
24 echo TARGETLIBS=%links%                 >> sources\r
25 echo SOURCES=%c%                        >> sources\r
26 echo C_DEFINES=-DPROJECT_WV=1           >> sources\r
27 \r
28 echo NAME %name%.sys                    > %name%.def\r
29 \r
30 build\r
31 copy obj%obj%\%arch%\%name%.sys ..\..\bin >nul\r
32 copy obj%obj%\%arch%\%name%.pdb ..\..\bin >nul\r
33 copy obj%obj%\%arch%\%name%.lib ..\..\bin >nul