1 rem File: mkprgmsc.bat
\r
2 rem Author: Rene' Jager
\r
3 rem Update: June 11, 1993
\r
4 rem Info: utility for making Microsoft 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 link /STACK:10000 @response >> makefile
\r
15 echo %1.obj > response
\r
18 echo ..\lib\rice%3.lib+ >> response
\r
19 echo %4\lib\%4libce.lib+ >> response
\r
20 echo %4\lib\graphics.lib+ >> response
\r
21 echo %4\lib\oldnames.lib; >> response
\r
25 echo %1.obj: %1.%2 >> makefile
\r
26 if X%1X==Xsimple3xX echo copy simple3x.lnk rice.lnk >> makefile
\r
27 if X%1X==Xsimple3xX echo copy simple3x.cod rice.cod >> makefile
\r
28 echo cl /c /A%3 /I%4\include /I..\include %5 %6 %7 %8 %9 %1.%2 >> makefile
\r
29 if X%1X==Xsimple3xX echo del rice.lnk >> makefile
\r
30 if X%1X==Xsimple3xX echo del rice.cod >> makefile
\r