|
|
1.1 ! root 1: echo off ! 2: REM ! 3: REM Copyright (c) 1986-1987, Microsoft Corporation. All rights reserved. ! 4: REM ! 5: REM batch file used to invoke make file to build startup ! 6: REM Usage: startup (models) ! 7: REM (models) is a blank separated list of memory ! 8: REM model designators as follows: ! 9: REM S: small model ! 10: REM M: medium model ! 11: REM C: compact model ! 12: REM L: large model ! 13: REM Examples: ! 14: REM startup S M ! 15: REM builds small and medium model objects ! 16: REM and links with null c program ! 17: REM ! 18: REM startup S C M L ! 19: REM builds objects for all memory models ! 20: REM and links with null c program ! 21: ! 22: if NOT "%1" == "" goto firstdir ! 23: echo Usage: startup (models) ! 24: echo (models) is a blank separated list of memory ! 25: echo model designators as follows: ! 26: echo S: small model ! 27: echo M: medium model ! 28: echo C: compact model ! 29: echo L: large model ! 30: echo Example: ! 31: echo startup S M ! 32: echo builds small and medium model objects and ! 33: echo links with null c program ! 34: goto end ! 35: ! 36: :firstdir ! 37: copy %LIB%\doscalls.lib ! 38: ! 39: :nextdir ! 40: if "%1" == "" goto finished ! 41: ! 42: if "%1" == "S" goto argok ! 43: if "%1" == "M" goto argok ! 44: if "%1" == "C" goto argok ! 45: if "%1" == "L" goto argok ! 46: echo off ! 47: echo Error: invalid argument to startup.bat ! 48: echo The valid arguments to startup.bat are S M C and L. ! 49: echo The model designators must be upper case. ! 50: goto end ! 51: ! 52: :argok ! 53: echo on ! 54: echo You may see directory creation errors -- ignore these. ! 55: mkdir %1 ! 56: mkdir %1\dos ! 57: mkdir %1\os2 ! 58: cd %1 ! 59: make CINC=%INCLUDE% MODEL=%1 ..\makefile ! 60: echo off ! 61: IF ERRORLEVEL 1 goto failure ! 62: ! 63: cd .. ! 64: ! 65: shift ! 66: goto nextdir ! 67: ! 68: :failure ! 69: ECHO *** startup link failed *** ! 70: ! 71: :finished ! 72: del doscalls.lib ! 73: echo **** Finished ! 74: ! 75: :end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.