blddll.bat

来自「这是一个数字图像处理的matlab仿真程序」· Batch 代码 · 共 44 行

BAT
44
字号
@echo off
echo Build ALL for Dynamic Link Library
if not exist rsrc.rc goto over1
\masm32\bin\rc /v rsrc.rc
\masm32\bin\cvtres /machine:ix86 rsrc.res
:over1

if exist %1.dll del %1.dll
if exist %1.obj del %1.obj

\masm32\bin\ml /c /Fl /Sn /coff %1.asm /Sa
if errorlevel 1 goto errasm

if not exist rsrc.obj goto nores

echo Resources were found

\masm32\bin\Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /LIBPATH:c:\masm32\lib %1.obj rsrc.obj 
if errorlevel 1 goto errlink
goto TheEnd

:nores
echo No resources found
\masm32\bin\Link /DLL /SUBSYSTEM:WINDOWS /DEF:%1.def /LIBPATH:c:\masm32\lib %1.obj 
if errorlevel 1 goto errlink
goto TheEnd

:errlink
echo _
echo >> Link error
goto alldone

:errasm
echo _
echo >> Assembly Error
goto alldone

:TheEnd
echo GOOD BUILD
dir %1

:alldone
pause

⌨️ 快捷键说明

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