home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / masm / masm6 / show / makeshos.bat next >
Encoding:
DOS Batch File  |  1991-01-14  |  1.3 KB  |  33 lines

  1. ECHO OFF
  2. CLS
  3. REM This batch file builds a version of SHOW that can be run from
  4. REM either DOS or OS/2. OS/2 programs normally contain a short DOS
  5. REM program (called a stub) which displays an error message when the
  6. REM program is run from DOS. The stub version of SHOW works by
  7. REM replacing the normal stub program with a copy of the entire DOS
  8. REM version of SHOW. For small programs, this results in a much
  9. REM smaller .EXE file than a bound program.
  10. REM
  11. REM This is a batch file rather than a make file because a stub
  12. REM program should not contain debug information. You normally build
  13. REM it once after the program is debugged. First assemble and link
  14. REM the real mode version of show.
  15. REM
  16. ECHO ml showr.asm showutil.asm pagerr.asm
  17.      ml showr.asm showutil.asm pagerr.asm
  18. IF ERRORLEVEL 1 GOTO Exit
  19. REM
  20. REM Next assemble the protect mode files.
  21. REM
  22. ECHO ml /c showp.asm showutil.asm pagerp.asm
  23.      ml /c showp.asm showutil.asm pagerp.asm
  24. IF ERRORLEVEL 1 GOTO Exit
  25. REM
  26. REM Finally, link the protect mode object files. The definition file
  27. REM SHOW.DEF contains the command to replace the normal stub file
  28. REM with SHOWR.EXE:
  29. REM
  30. ECHO link showp.obj showutil.obj pagerp.obj,show.exe,,,show.def
  31.      link showp.obj showutil.obj pagerp.obj,show.exe,,,show.def
  32. :Exit
  33.