Coding style cleanup
[platform/kernel/u-boot.git] / board / MAI / bios_emulator / scitech / bin / build_it.bat
1 @echo off
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.
6 rem
7 rem Builds as release or debug depending on the value of the CHECKED
8 rem environment variable.
9
10 rem Unset all environment variables that change the compile process
11 set DBG=
12 set OPT=
13 set OPT_SIZE=
14 set BUILD_DLL=
15 set IMPORT_DLL=
16 set FPU=
17 set CHECKS=
18 set BETA=
19
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
96
97 echo Usage: BUILD 'compiler_name' [DMAKE commands]
98 echo.
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:
103 echo.
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
112 echo.
113 echo The value of 'os' can be one of the following:
114 echo.
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
125 goto end
126
127 rem -------------------------------------------------------------------------
128 rem Setup for the specified compiler
129
130 :bc31-d16
131 call bc31-d16.bat
132 goto compileit
133
134 :bc45-d16
135 call bc45-d16.bat
136 goto compileit
137
138 :bc45-d32
139 call bc45-d32.bat
140 goto compileit
141
142 :bc45-tnt
143 call bc45-tnt.bat
144 goto compileit
145
146 :bc45-w16
147 call bc45-w16.bat
148 goto compileit
149
150 :bc45-w32
151 call bc45-w32.bat
152 goto compileit
153
154 :bc45-c32
155 call bc45-c32.bat
156 goto compileit
157
158 :bc45-vxd
159 call bc45-vxd.bat
160 goto compileit
161
162 :bc50-d16
163 call bc50-d16.bat
164 goto compileit
165
166 :bc50-d32
167 call bc50-d32.bat
168 goto compileit
169
170 :bc50-tnt
171 call bc50-tnt.bat
172 goto compileit
173
174 :bc50-w16
175 call bc50-w16.bat
176 goto compileit
177
178 :bc50-w32
179 call bc50-w32.bat
180 goto compileit
181
182 :bc50-c32
183 call bc50-c32.bat
184 goto compileit
185
186 :bc50-vxd
187 call bc50-vxd.bat
188 goto compileit
189
190 :gcc2-d32
191 call gcc2-d32.bat
192 goto compileit
193
194 :gcc2-w32
195 call gcc2-w32.bat
196 goto compileit
197
198 :gcc2-c32
199 call gcc2-c32.bat
200 goto compileit
201
202 :gcc2-linux
203 call gcc2-linux.bat
204 goto compileit
205
206 :sc70-d16
207 call sc70-d16.bat
208 goto compileit
209
210 :sc70-w16
211 call sc70-w16.bat
212 goto compileit
213
214 :sc70-tnt
215 call sc70-tnt.bat
216 goto compileit
217
218 :sc70-w32
219 call sc70-w32.bat
220 goto compileit
221
222 :sc70-c32
223 call sc70-c32.bat
224 goto compileit
225
226 :vc40-d16
227 call vc40-d16.bat
228 goto compileit
229
230 :vc40-tnt
231 call vc40-tnt.bat
232 goto compileit
233
234 :vc40-w16
235 call vc40-w16.bat
236 goto compileit
237
238 :vc40-w32
239 call vc40-w32.bat
240 goto compileit
241
242 :vc40-c32
243 call vc40-c32.bat
244 goto compileit
245
246 :vc40-drv9x
247 call vc40-drv9x.bat
248 goto compileit
249
250 :vc40-drvnt
251 call vc40-drvnt.bat
252 goto compileit
253
254 :vc40-rtt
255 call vc40-rtt.bat
256 goto compileit
257
258 :vc50-d16
259 call vc50-d16.bat
260 goto compileit
261
262 :vc50-tnt
263 call vc50-tnt.bat
264 goto compileit
265
266 :vc50-w16
267 call vc50-w16.bat
268 goto compileit
269
270 :vc50-w32
271 call vc50-w32.bat
272 goto compileit
273
274 :vc50-c32
275 call vc50-c32.bat
276 goto compileit
277
278 :vc50-drv9x
279 call vc50-drv9x.bat
280 goto compileit
281
282 :vc50-drvnt
283 call vc50-drvnt.bat
284 goto compileit
285
286 :vc50-rtt
287 call vc50-rtt.bat
288 goto compileit
289
290 :vc60-d16
291 call vc60-d16.bat
292 goto compileit
293
294 :vc60-tnt
295 call vc60-tnt.bat
296 goto compileit
297
298 :vc60-w16
299 call vc60-w16.bat
300 goto compileit
301
302 :vc60-w32
303 call vc60-w32.bat
304 goto compileit
305
306 :vc60-c32
307 call vc60-c32.bat
308 goto compileit
309
310 :vc60-drv9x
311 call vc60-drv9x.bat
312 goto compileit
313
314 :vc60-drvnt
315 call vc60-drvnt.bat
316 goto compileit
317
318 :vc60-drvw2k
319 call vc60-drvw2k.bat
320 goto compileit
321
322 :vc60-rtt
323 call vc60-rtt.bat
324 goto compileit
325
326 :wc10ad16
327 call wc10ad16.bat
328 goto compileit
329
330 :wc10ad32
331 call wc10ad32.bat
332 goto compileit
333
334 :wc10atnt
335 call wc10atnt.bat
336 goto compileit
337
338 :wc10aw16
339 call wc10aw16.bat
340 goto compileit
341
342 :wc10aw32
343 call wc10aw32.bat
344 goto compileit
345
346 :wc10ac32
347 call wc10ac32.bat
348 goto compileit
349
350 :wc10ao32
351 call wc10ao32.bat
352 goto compileit
353
354 :wc10ap32
355 call wc10ap32.bat
356 goto compileit
357
358 :wc10-d16
359 call wc10-d16.bat
360 goto compileit
361
362 :wc10-d32
363 call wc10-d32.bat
364 goto compileit
365
366 :wc10-tnt
367 call wc10-tnt.bat
368 goto compileit
369
370 :wc10-w16
371 call wc10-w16.bat
372 goto compileit
373
374 :wc10-w32
375 call wc10-w32.bat
376 goto compileit
377
378 :wc10-c32
379 call wc10-c32.bat
380 goto compileit
381
382 :wc10-o32
383 call wc10-o32.bat
384 goto compileit
385
386 :wc10-p32
387 call wc10-p32.bat
388 goto compileit
389
390 :wc11-d16
391 call wc11-d16.bat
392 goto compileit
393
394 :wc11-d32
395 call wc11-d32.bat
396 goto compileit
397
398 :wc11-tnt
399 call wc11-tnt.bat
400 goto compileit
401
402 :wc11-w16
403 call wc11-w16.bat
404 goto compileit
405
406 :wc11-w32
407 call wc11-w32.bat
408 goto compileit
409
410 :wc11-c32
411 call wc11-c32.bat
412 goto compileit
413
414 :wc11-o32
415 call wc11-o32.bat
416 goto compileit
417
418 :wc11-p32
419 call wc11-p32.bat
420 goto compileit
421
422 :compileit
423 k_rm -f *.lib *.a
424 dmake %2 %3 %4 %5 %6 %7 %8 %9
425 if errorlevel 1 goto errorend
426 goto end
427
428 :errorend
429 echo *************************************************
430 echo * An error occurred while building the library. *
431 echo *************************************************
432 :end