Upstream release 4.02a
[rice.git] / examples / mkprgmsc.bat
blob6675f5f71887b2cfa9a26d9d25f68386ebdee4e7
1 rem File:   mkprgmsc.bat
2 rem Author: Rene' Jager
3 rem Update: June 11, 1993
4 rem Info:   utility for making Microsoft C MAKE-file
5 rem         or making one of the RICE examples:
6 rem            %1    : program name
7 rem            %2    : source file extension
8 rem            %3    : memory model
9 rem            %4    : compiler directory
10 rem            %5-%9 : extra compiler options
12 echo %1.exe: %1.obj > makefile
13 echo    link /STACK:10000 @response >> makefile
15 echo %1.obj > response
16 echo %1 >> response
17 echo. >> reponse
18 echo ..\lib\rice%3.lib+ >> response
19 echo %4\lib\%4libce.lib+ >> response
20 echo %4\lib\graphics.lib+ >> response
21 echo %4\lib\oldnames.lib; >> response
23 echo. >> makefile
25 echo %1.obj: %1.%2 >> makefile
26 if X%1X==Xsimple3xX echo    copy simple3x.lnk rice.lnk >> makefile
27 if X%1X==Xsimple3xX echo    copy simple3x.cod rice.cod >> makefile
28 echo    cl /c /A%3 /I%4\include /I..\include %5 %6 %7 %8 %9 %1.%2 >> makefile
29 if X%1X==Xsimple3xX echo    del rice.lnk >> makefile
30 if X%1X==Xsimple3xX echo    del rice.cod >> makefile