1 rem File: mkprgbcc.bat
\r
2 rem Author: Rene' Jager
\r
3 rem Update: June 11, 1993
\r
4 rem Info: utility for making Borland C MAKE-file
\r
5 rem or making one of the RICE examples:
\r
6 rem %1 : program name
\r
7 rem %2 : source file extension
\r
8 rem %3 : memory model
\r
9 rem %4 : compiler directory
\r
10 rem %5-%9 : extra compiler options
\r
12 echo %1.exe: %1.obj > makefile
\r
13 echo tlink /s @response >> makefile
\r
15 echo %4\lib\c0%3.obj+ > response
\r
16 echo %1.obj >> response
\r
19 echo ..\lib\rice%3.lib+ >> response
\r
20 echo %4\lib\emu.lib+ >> response
\r
21 echo %4\lib\math%3.lib+ >> response
\r
22 echo %4\lib\c%3.lib+ >> response
\r
23 echo %4\lib\graphics.lib >> response
\r
27 echo %1.obj: %1.%2 >> makefile
\r
28 if X%1X==Xsimple3xX echo copy simple3x.lnk rice.lnk >> makefile
\r
29 if X%1X==Xsimple3xX echo copy simple3x.cod rice.cod >> makefile
\r
30 echo bcc -c -m%3 -I%4\include -I..\include %5 %6 %7 %8 %9 %1.%2 >> makefile
\r
31 if X%1X==Xsimple3xX echo del rice.lnk >> makefile
\r
32 if X%1X==Xsimple3xX echo del rice.cod >> makefile
\r