Upstream release 4.02a
[rice.git] / examples / makeprog.bat
blobf79b2d2a808528ec6c94b636ef33e0851120ff7a
1 @echo off
3 rem File:   MakeProg.bat
4 rem Author: Rene' Jager
5 rem Date:   June 11, 1993
6 rem Info:   Batch-file for building a makefile for one of the RICE examples.
7 rem         The Borland and Microsoft directory are set to \borlandc and
8 rem         \c700; do a global search-and-replace to adjust... Also the
9 rem         memory models (for bcc and msc) are  set to large (l and L);
10 rem         replace if other memory model wanted...
12 if X%2X==XgameX     goto compiler
13 if X%2X==XminimalX  goto compiler
14 if X%2X==XsimpleX   goto compiler
15 if X%2X==XsimpleecX goto compiler
16 if X%2X==XsimpleppX goto compiler
17 if X%2X==Xsimple3xX goto compiler
18 goto show
20 :compiler
21 if X%1X==XbccX goto bcc
22 if X%1X==XgccX goto gcc
23 if X%1X==XmscX goto msc
24 goto show
26 :bcc
27 if X%2X==XgameX     call mkprgbcc %2 c   l \borlandc
28 if X%2X==XminimalX  call mkprgbcc %2 c   l \borlandc
29 if X%2X==XsimpleX   call mkprgbcc %2 c   l \borlandc
30 if X%2X==XsimpleecX call mkprgbcc %2 c   l \borlandc
31 if X%2X==XsimpleppX call mkprgbcc %2 cpp l \borlandc
32 if X%2X==Xsimple3xX call mkprgbcc %2 c   l \borlandc -I..\upgrade -DRICE_UPGRADE
33 goto make
35 :gcc
36 if X%2X==XgameX     call mkprggcc %2 c
37 if X%2X==XminimalX  call mkprggcc %2 c
38 if X%2X==XsimpleX   call mkprggcc %2 c
39 if X%2X==XsimpleecX call mkprggcc %2 c
40 if X%2X==XsimpleppX call mkprggcc %2 cxx
41 if X%2X==Xsimple3xX call mkprggcc %2 c   -I ../upgrade -DRICE_UPGRADE
42 goto make
44 :msc
45 if X%2X==XgameX     call mkprgmsc %2 c   L \c700
46 if X%2X==XminimalX  call mkprgmsc %2 c   L \c700
47 if X%2X==XsimpleX   call mkprgmsc %2 c   L \c700
48 if X%2X==XsimpleecX call mkprgmsc %2 c   L \c700
49 if X%2X==XsimpleppX call mkprgmsc %2 cpp L \c700
50 if X%2X==Xsimple3xX call mkprgmsc %2 c   L \c700 /I..\upgrade /DRICE_UPGRADE
51 goto make
53 :make
54 if X%1%3X==XbccX make
55 if X%1%3X==XgccX make
56 if X%1%3X==XmscX nmake
57 if X%3X==XX goto end
59 goto end
61 :show
62 echo Use: MakeProg compiler program [make]
63 echo compiler = bcc, gcc or msc
64 echo program  = game, minimal, simple, simpleec, simplepp or simple3x
65 echo make     = your make utility
67 :end