2 rem Generic batch file to build a version of the library. This batch file
3 rem assumes that the correct batch files exist to setup the appropriate
4 rem compilation environments, and that the DMAKE.EXE program is available
5 rem somewhere on the path.
7 rem Builds as release or debug depending on the value of the CHECKED
8 rem environment variable.
10 rem Unset all environment variables that change the compile process
20 if %1==bc31-d16 goto bc31-d16
21 if %1==bc45-d16 goto bc45-d16
22 if %1==bc45-d32 goto bc45-d32
23 if %1==bc45-tnt goto bc45-tnt
24 if %1==bc45-w16 goto bc45-w16
25 if %1==bc45-w32 goto bc45-w32
26 if %1==bc45-c32 goto bc45-c32
27 if %1==bc45-vxd goto bc45-vxd
28 if %1==bc45-snp goto bc45-snp
29 if %1==bc50-d16 goto bc50-d16
30 if %1==bc50-d32 goto bc50-d32
31 if %1==bc50-tnt goto bc50-tnt
32 if %1==bc50-w16 goto bc50-w16
33 if %1==bc50-w32 goto bc50-w32
34 if %1==bc50-c32 goto bc50-c32
35 if %1==bc50-vxd goto bc50-vxd
36 if %1==bc50-snp goto bc50-snp
37 if %1==gcc2-d32 goto gcc2-d32
38 if %1==gcc2-w32 goto gcc2-w32
39 if %1==gcc2-c32 goto gcc2-c32
40 if %1==gcc2-linux goto gcc2-linux
41 if %1==vc40-d16 goto vc40-d16
42 if %1==vc40-tnt goto vc40-tnt
43 if %1==vc40-w16 goto vc40-w16
44 if %1==vc40-w32 goto vc40-w32
45 if %1==vc40-c32 goto vc40-c32
46 if %1==vc40-drv9x goto vc40-drv9x
47 if %1==vc40-drvnt goto vc40-drvnt
48 if %1==vc40-rtt goto vc40-rtt
49 if %1==vc40-snp goto vc40-snp
50 if %1==vc50-d16 goto vc50-d16
51 if %1==vc50-tnt goto vc50-tnt
52 if %1==vc50-w16 goto vc50-w16
53 if %1==vc50-w32 goto vc50-w32
54 if %1==vc50-c32 goto vc50-c32
55 if %1==vc50-drv9x goto vc50-drv9x
56 if %1==vc50-drvnt goto vc50-drvnt
57 if %1==vc50-rtt goto vc50-rtt
58 if %1==vc50-snp goto vc50-snp
59 if %1==vc60-d16 goto vc60-d16
60 if %1==vc60-tnt goto vc60-tnt
61 if %1==vc60-w16 goto vc60-w16
62 if %1==vc60-w32 goto vc60-w32
63 if %1==vc60-c32 goto vc60-c32
64 if %1==vc60-drv9x goto vc60-drv9x
65 if %1==vc60-drvnt goto vc60-drvnt
66 if %1==vc60-drvw2k goto vc60-drvw2k
67 if %1==vc60-rtt goto vc60-rtt
68 if %1==vc60-snp goto vc60-snp
69 if %1==wc10ad16 goto wc10ad16
70 if %1==wc10ad32 goto wc10ad32
71 if %1==wc10atnt goto wc10atnt
72 if %1==wc10aw16 goto wc10aw16
73 if %1==wc10aw32 goto wc10aw32
74 if %1==wc10ac32 goto wc10ac32
75 if %1==wc10ao32 goto wc10ao32
76 if %1==wc10ap32 goto wc10ap32
77 if %1==wc10asnp goto wc10asnp
78 if %1==wc10-d16 goto wc10-d16
79 if %1==wc10-d32 goto wc10-d32
80 if %1==wc10-tnt goto wc10-tnt
81 if %1==wc10-w16 goto wc10-w16
82 if %1==wc10-w32 goto wc10-w32
83 if %1==wc10-c32 goto wc10-c32
84 if %1==wc10-o32 goto wc10-o32
85 if %1==wc10-p32 goto wc10-p32
86 if %1==wc10-snp goto wc10-snp
87 if %1==wc11-d16 goto wc11-d16
88 if %1==wc11-d32 goto wc11-d32
89 if %1==wc11-tnt goto wc11-tnt
90 if %1==wc11-w16 goto wc11-w16
91 if %1==wc11-w32 goto wc11-w32
92 if %1==wc11-c32 goto wc11-c32
93 if %1==wc11-o32 goto wc11-o32
94 if %1==wc11-p32 goto wc11-p32
95 if %1==wc11-snp goto wc11-snp
97 echo Usage: BUILD 'compiler_name' [DMAKE commands]
99 echo Where 'compiler_name' is of the form comp-os, where
100 echo 'comp' defines the compiler and 'os' defines the OS environment.
101 echo For instance 'bc50-w32' is for Borland C++ 5.0 for Win32.
102 echo The value of 'comp' can be any of the following:
104 echo bc45 - Borland C++ 4.5x
105 echo bc50 - Borland C++ 5.x
106 echo vc40 - Visual C++ 4.x
107 echo vc50 - Visual C++ 5.x
108 echo vc60 - Visual C++ 6.x
109 echo wc10 - Watcom C++ 10.6
110 echo wc11 - Watcom C++ 11.0
111 echo gcc2 - GNU C/C++ 2.9x
113 echo The value of 'os' can be one of the following:
115 echo d16 - 16-bit DOS
116 echo d32 - 32-bit DOS
117 echo w16 - 16-bit Windows GUI mode
118 echo c32 - 32-bit Windows console mode
119 echo w32 - 32-bit Windows GUI mode
120 echo o16 - 16-bit OS/2 console mode
121 echo o32 - 32-bit OS/2 console mode
122 echo p32 - 32-bit OS/2 Presentation Manager
123 echo snp - 32-bit SciTech Snap application
124 echo linux - 32-bit Linux application
127 rem -------------------------------------------------------------------------
128 rem Setup for the specified compiler
424 dmake %2 %3 %4 %5 %6 %7 %8 %9
425 if errorlevel 1 goto errorend
429 echo *************************************************
430 echo * An error occurred while building the library. *
431 echo *************************************************