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

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