dos_compilers/Zortech C++ v206/SOURCE/CLIB/ROMC.BAT

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-07-02 16:30:38 +02:00
rem _ romc.bat Thu Sep 8 1988 Modified by: Walter Bright */
rem Copyright (C) 1985-1989 by Walter Bright
rem All rights reserved
rem Compile and replace a C module in all four rom libraries.
rem Use: ROMC modulename [sourcefilename]
if "" == "%2" goto module
ztc -c -o+space -o%1.obj %2 -DA%1
if errorlevel 1 goto err
lib roms -+%1;
if errorlevel 1 goto err
ztc -c -o+space -mm -o%1.obj %2 -DA%1
if errorlevel 1 goto err
lib romm -+%1;
if errorlevel 1 goto err
ztc -c -o+space -mc -o%1.obj %2 -DA%1
if errorlevel 1 goto err
lib romc -+%1;
if errorlevel 1 goto err
ztc -c -o+space -ml -o%1.obj %2 -DA%1
if errorlevel 1 goto err
lib roml -+%1;
if errorlevel 1 goto err
goto success
:module
ztc -c -o+space %1
if errorlevel 1 goto err
lib roms -+%1;
if errorlevel 1 goto err
ztc -c -o+space %1 -mm
if errorlevel 1 goto err
lib romm -+%1;
if errorlevel 1 goto err
ztc -c -o+space %1 -mc
if errorlevel 1 goto err
lib romc -+%1;
if errorlevel 1 goto err
ztc -c -o+space %1 -ml
if errorlevel 1 goto err
lib roml -+%1;
if errorlevel 1 goto err
:success
rem SUCCESS
:err