dos_compilers/Borland Turbo C v2/BUILD-C0.BAT
2024-07-02 06:22:27 -07:00

32 lines
663 B
Batchfile
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo off
if x%1 == xTINY goto ok
if x%1 == xSMALL goto ok
if x%1 == xCOMPACT goto ok
if x%1 == xMEDIUM goto ok
if x%1 == xLARGE goto ok
if x%1 == xHUGE goto ok
echo BUILD-C0 must have argument: TINY, SMALL, COMPACT, MEDIUM, LARGE or HUGE
goto done
:ok
echo on
goto make-%1
:make-TINY
TASM C0,C0T /D__TINY__ /MX;
goto done
:make-SMALL
TASM C0,C0S /D__SMALL__ /MX;
goto done
:make-COMPACT
TASM C0,C0C /D__COMPACT__ /MX;
goto done
:make-MEDIUM
TASM C0,C0M /D__MEDIUM__ /MX;
goto done
:make-LARGE
TASM C0,C0L /D__LARGE__ /MX;
goto done
:make-HUGE
TASM C0,C0H /D__HUGE__ /MX;
echo on
:done