Build.Bat的编写
@Echo off
@rem 参数列表:
@rem %1 -> DDK 的安装路径
@rem %2 -> 编译模式
@rem %3 -> 工程所在盘符
@rem %4 -> 源文件、Source 文件、Makefile 文件所在目录
if "%1" == "" Goto InvalidParameter
if not exist %1/bin/Setenv.bat goto SetenvNotFound
Call %1/bin/Setenv.bat %1 %2 %3
cd %4
Build
Goto Exit
@rem -------------------------------------->参数错误时的错误提示信息
:InvalidParameter
Echo Invaild Parameter !!!
Goto Exit
@rem --------------------------------------;
@rem -------------------------------------->Setenv.bat 不存在时的错误提示信息
:SetenvNotFound
Echo File(Setenv.bat) not found !!!
&n