MAKE.BAT
资源名称:drdossrc.zip [点击查看]
上传用户:xiaogehua
上传日期:2007-01-08
资源大小:1183k
文件大小:4k
源码类别:
操作系统开发
开发平台:
Asm
- @ECHO off
- SET TOOLS=C:TOOLS
- SET MASM=%TOOLS%MASM.EXE
- SET WATCOM=%TOOLS%WATCOMC
- SET WATCOMH=%TOOLS%WATCOMCH
- SET WCG=%WATCOM%BINWCGL.EXE
- SET WCC=%WATCOM%BINWCC.EXE
- SET LINK510=%TOOLS%LINK.EXE
- SET BCC20=%TOOLS%BCC.EXE
- SET BCC20H=%TOOLS%BCC20H
- REM
- REM YOU SHOULD NOT HAVE TO CHANGE ANYTHING BELOW THIS LINE.
- REM
- REM Define local Caldera tools
- SET LOCTOOLS=..LTOOLS
- IF NOT EXIST BIN*.* MD BIN
- REM Check if tools exist
- ECHO Checking for %MASM%
- if not exist %MASM% goto badtool
- ECHO Checking for %WCC%
- if not exist %WCC% goto badtool
- ECHO Checking for %LINK510%
- if not exist %LINK510% goto badtool
- ECHO Checking for %BCC20%
- if not exist %BCC20% goto badtool
- %MASM% message,.binmessage;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% resident,.binresident;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% txhelp,.bintxhelp;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /DDOSPLUS /DWATCOMC /DPASCAL /DFINAL /MX /I. .cstart.asm,.bincstart.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /DDOSPLUS /DWATCOMC /DPASCAL /DFINAL /MX /I. .csup.asm,.bincsup.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /DDOSPLUS /DWATCOMC /DPASCAL /DFINAL /MX /I. .dosif.asm,.bindosif.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /DDOSPLUS /DWATCOMC /DPASCAL /DFINAL /MX /I. .crit.asm,.bincrit.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.bincom.obj .com.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.bincomint.obj .comint.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.binsupport.obj .support.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.binprintf.obj .printf.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.binbatch.obj .batch.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.binglobal.obj .global.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.binconfig.obj .config.c
- IF ERRORLEVEL 1 GOTO FAILED
- %WCC% /s /DFINAL /i=. /ms /os /dWATCOMC /i=%WATCOMH% /fo.bincomcpy.obj .comcpy.c
- IF ERRORLEVEL 1 GOTO FAILED
- ECHO -w -d -f- -K -O -X -Z -c -ms -I%BCC20H% -DMESSAGE -DDOSPLUS -zSCGROUP -zTCODE -zR_MSG > RESP1
- ECHO -I. >> RESP1
- ECHO -o.bincmdlist.obj .cmdlist.c >> RESP1
- %BCC20% @resp1
- IF ERRORLEVEL 1 GOTO FAILED
- ECHO .bincstart.obj .bincom.obj .bincsup.obj +> RESP2
- ECHO .bindosif.obj .bincomint.obj .binsupport.obj+>> RESP2
- ECHO .bincmdlist.obj .binprintf.obj+>> RESP2
- ECHO .binmessage.obj +>> RESP2
- ECHO .binbatch.obj .binglobal.obj .binconfig.obj+>> RESP2
- ECHO .bincomcpy.obj .bincrit.obj +>> RESP2
- ECHO +>> RESP2
- ECHO .binresident.obj>> RESP2
- ECHO .bincommand.exe>> RESP2
- ECHO .command.map>> RESP2
- ECHO %WATCOM%LIBCLIBs>> RESP2
- %LINK510% /MAP @resp2;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /DDOSPLUS /DWATCOMC /DPASCAL /DFINAL /MX /I. .helpstub.asm,.binhelpstub.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- ECHO .binhelpstub.obj+> RESP3
- ECHO .bintxhelp.obj>> RESP3
- ECHO .bintxhelp.exe>> RESP3
- %LINK510% @resp3;
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%exe2bin /S0000 .bintxhelp.exe .bintxhelp.bin
- IF ERRORLEVEL 1 GOTO FAILED
- copy /b .bincommand.exe+.bintxhelp.bin .bincommand.com
- goto exit
- :failed
- ECHO Error in Build!
- goto exit
- :badtool
- ECHO Can't find that tool!
- :exit
- REM **********************
- REM CLEAN UP THE AREA
- REM **********************
- SET TOOLS=
- SET MASM=
- SET WCC=
- SET LINK510=
- SET BCC20=
- SET WATCOMH=
- SET BCC20H=
- SET LOCTOOLS=