⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.bat

📁 本代码利用nmake来实现编译驱动程序。
💻 BAT
字号:
@echo off
rem -----------------------------------------------------------
rem usage:
rem    build.bat [<checked | free>]
rem -----------------------------------------------------------

if exist *.sys del *.sys
if exist .\objchk\i386\*.pdb del .\objchk\i386\*.pdb
if exist .\objfre\i386\*.pdb del .\objfre\i386\*.pdb
if exist .\objchk\i386\*.sys del .\objchk\i386\*.sys
if exist .\objfre\i386\*.sys del .\objfre\i386\*.sys

:start
set DDKOPT=%1
if "%DDKOPT%" == "" set DDKOPT=free

pushd .
if not exist %DDKROOT%\bin\setenv.bat goto :SetenvNotFound
call %DDKROOT%\bin\setenv.bat %DDKROOT% %DDKOPT%
popd
if exist %DDKROOT%\bin\x86\build.exe goto :start
%DDKROOT%\bin\build.exe


:start
%DDKROOT%\bin\x86\build.exe
if "%DDKOPT%" == "checked" goto :CopyChecked
if "%DDKOPT%" == "chk" goto :CopyChecked
if "%DDKOPT%" == "free" goto :CopyFree
if "%DDKOPT%" == "fre" goto :CopyFree
goto :exit

:CopyChecked
if exist .\objchk\i386\*.sys move .\objchk\i386\*.sys .
goto :exit

:CopyFree
if exist .\objfre\i386\*.sys move .\objfre\i386\*.sys .
goto :exit

:SetenvNotFound
echo Can't found Setenv.bat.
goto :exit

:exit
set DDKOPT=
del *.log
pause

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -