MAKE.BAT
资源名称:drdossrc.zip [点击查看]
上传用户:xiaogehua
上传日期:2007-01-08
资源大小:1183k
文件大小:4k
源码类别:
操作系统开发
开发平台:
Asm
- @ECHO off
- SET TOOLS=C:TOOLS
- SET MASM=%TOOLS%MASM.EXE
- SET LINK=%TOOLS%LINK.EXE
- SET LIBR=%TOOLS%LIB.EXE
- 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 %LINK%
- if not exist %LINK% goto badtool
- ECHO Checking for %LIBR%
- if not exist %LIBR% goto badtool
- REM *************************************
- REM Build .ASM files first, get the obj's
- REM *************************************
- %MASM% /t initmsgs,.BINinitmsgs;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t biosmsgs,.BINbiosmsgs;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t init,.BINinit;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t clock,.BINclock;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t console,.BINconsole;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t disk,.BINdisk;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t serpar,.BINserpar;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t biosgrps,.BINbiosgrps;
- IF ERRORLEVEL 1 GOTO FAILED
- %MASM% /t stacks,.BINstacks;
- IF ERRORLEVEL 1 GOTO FAILED
- REM ******************************************
- REM Build the library so that we can link into
- REM ******************************************
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .confstub.a86 .BINconfstub.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINconfstub.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .bdosstub.a86 .BINbdosstub.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINbdosstub.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LIBR% .BINbiosstub.LIB -+ .BINbdosstub.obj -+ .BINconfstub.obj;
- IF ERRORLEVEL 1 GOTO FAILED
- REM ******************************************
- REM Build the .A86 files next, get the obj's
- REM ******************************************
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .biosinit.a86 .BINbiosinit.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINbiosinit.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .config.a86 .BINconfig.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINconfig.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .bdosldr.a86 .BINbdosldr.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINbdosldr.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .genercfg.a86 .BINgenercfg.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINgenercfg.obj
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%rasm_sh %LOCTOOLS%rasm86.exe . .nlsfunc.a86 .BINnlsfunc.obj $szpz /DDRDOS35=0 /DADDDRV=0
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%fixupp .BINnlsfunc.obj
- IF ERRORLEVEL 1 GOTO FAILED
- REM ***************************************************
- REM Link the OBJ's and LIBR file to create the BIOS.EXE
- REM and then use EXE2BIN to create the IBMBIO.COM file.
- REM ***************************************************
- %LINK% @bios.lnk
- IF ERRORLEVEL 1 GOTO FAILED
- %LOCTOOLS%exe2bin.exe .binbios.exe .binibmbio.com
- IF ERRORLEVEL 1 GOTO FAILED
- del .binbios.exe
- %LOCTOOLS%compbios .binibmbio.com
- IF ERRORLEVEL 1 GOTO FAILED
- goto exit
- :failed
- ECHO Error in Build!
- goto exit
- :badtool
- ECHO Can't find that tool!
- :exit
- REM *********
- REM CLEANUP
- REM *********
- SET TOOLS=
- SET LOCTOOLS=
- SET MASM=
- SET TASM=
- SET LINK=
- SET LIBR=