Metropoli BBS
VIEWER: cctp20.bat MODE: TEXT (ASCII)
:Copyright (C) Mix Software, Inc., 1990.  All Rights Reserved.
:Modity next line to reference your include directories
set include=e:\cct;e:\cwt\active
:echo off
if "%1" == "medium" goto medium
if "%1" == "small" goto small
if "%1" == "large" goto large
if "%1" == "MEDIUM" goto medium
if "%1" == "SMALL" goto small
if "%1" == "LARGE" goto large
if "%1" == "m" goto medium
if "%1" == "s" goto small
if "%1" == "l" goto large
if "%1" == "M" goto medium
if "%1" == "S" goto small
if "%1" == "L" goto large
echo Usage: cctp "model", where model is small, medium or large
goto end

:medium
if exist 1medmm.flg goto compilem
del *.mix >nul
echo "Object files are medium memory model" >1medmm.flg
:compilem
pc cctp.prj -j -mm -o -w+
masm -D__POWERC -DM_I86MM -mx commisr;
mix /_ commisr
masm -D__POWERC -DM_I86MM -mx commipr;
mix commipr
masm -D__POWERC -DM_I86MM -mx \cwt\active\source\bkey;
mix bkey
if exist cctp20m.mix del cctp20m.mix
merge cctp20m @cctp.ctl
if exist cctp20m.lib del cctp20m.lib
copy cctp20m.mix cctp20m.lib
goto end

:large
if exist 1largemm.flg goto compilel
del *.mix
echo "Object files are large memory model" >1largemm.flg
:compilel
pc cctp.prj -j -ml -o -w+
masm -D__POWERC -DM_I86LM -mx commisr;
mix /_ commisr
masm -D__POWERC -DM_I86LM -mx commipr;
mix commipr
masm -D__POWERC -DM_I86LM -mx \cwt\active\source\bkey;
mix /_ bkey
if exist cctp20l.mix del cctp20l.mix
merge cctp20l @cctp.ctl
if exist cctp20l.lib del cctp20l.lib
ren cctp20l.mix cctp20l.lib
goto end

:small
if exist 1smallmm.flg goto compiles
del *.mix
echo "Object files are small memory model" >1smallmm.flg
:compiles
pc cctp.prj -j -ms -o -w+
masm -D__POWERC -DM_I86SM -mx commisr;
mix /_ commisr
masm -D__POWERC -DM_I86SM -mx commipr;
mix commipr
masm -D__POWERC -DM_I86SM -mx \cwt\active\source\bkey;
mix bkey
if exist cctp20s.mix del cctp20s.mix
merge cctp20s @cctp.ctl
if exist cctp20s.lib del cctp20s.lib
ren cctp20s.mix cctp20s.lib
:end
[ RETURN TO DIRECTORY ]