summaryrefslogtreecommitdiffstats
path: root/board/MAI/bios_emulator/scitech/bin/build_it.bat
blob: 5a619b4459e28e504c6c893bd9a0a0901cd40d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
@echo off
rem Generic batch file to build a version of the library. This batch file
rem assumes that the correct batch files exist to setup the appropriate
rem compilation environments, and that the DMAKE.EXE program is available
rem somewhere on the path.
rem
rem Builds as release or debug depending on the value of the CHECKED
rem environment variable.

rem Unset all environment variables that change the compile process
set DBG=
set OPT=
set OPT_SIZE=
set BUILD_DLL=
set IMPORT_DLL=
set FPU=
set CHECKS=
set BETA=

if %1==bc31-d16 goto bc31-d16
if %1==bc45-d16 goto bc45-d16
if %1==bc45-d32 goto bc45-d32
if %1==bc45-tnt goto bc45-tnt
if %1==bc45-w16 goto bc45-w16
if %1==bc45-w32 goto bc45-w32
if %1==bc45-c32 goto bc45-c32
if %1==bc45-vxd goto bc45-vxd
if %1==bc45-snp goto bc45-snp
if %1==bc50-d16 goto bc50-d16
if %1==bc50-d32 goto bc50-d32
if %1==bc50-tnt goto bc50-tnt
if %1==bc50-w16 goto bc50-w16
if %1==bc50-w32 goto bc50-w32
if %1==bc50-c32 goto bc50-c32
if %1==bc50-vxd goto bc50-vxd
if %1==bc50-snp goto bc50-snp
if %1==gcc2-d32 goto gcc2-d32
if %1==gcc2-w32 goto gcc2-w32
if %1==gcc2-c32 goto gcc2-c32
if %1==gcc2-linux goto gcc2-linux
if %1==vc40-d16 goto vc40-d16
if %1==vc40-tnt goto vc40-tnt
if %1==vc40-w16 goto vc40-w16
if %1==vc40-w32 goto vc40-w32
if %1==vc40-c32 goto vc40-c32
if %1==vc40-drv9x goto vc40-drv9x
if %1==vc40-drvnt goto vc40-drvnt
if %1==vc40-rtt goto vc40-rtt
if %1==vc40-snp goto vc40-snp
if %1==vc50-d16 goto vc50-d16
if %1==vc50-tnt goto vc50-tnt
if %1==vc50-w16 goto vc50-w16
if %1==vc50-w32 goto vc50-w32
if %1==vc50-c32 goto vc50-c32
if %1==vc50-drv9x goto vc50-drv9x
if %1==vc50-drvnt goto vc50-drvnt
if %1==vc50-rtt goto vc50-rtt
if %1==vc50-snp goto vc50-snp
if %1==vc60-d16 goto vc60-d16
if %1==vc60-tnt goto vc60-tnt
if %1==vc60-w16 goto vc60-w16
if %1==vc60-w32 goto vc60-w32
if %1==vc60-c32 goto vc60-c32
if %1==vc60-drv9x goto vc60-drv9x
if %1==vc60-drvnt goto vc60-drvnt
if %1==vc60-drvw2k goto vc60-drvw2k
if %1==vc60-rtt goto vc60-rtt
if %1==vc60-snp goto vc60-snp
if %1==wc10ad16 goto wc10ad16
if %1==wc10ad32 goto wc10ad32
if %1==wc10atnt goto wc10atnt
if %1==wc10aw16 goto wc10aw16
if %1==wc10aw32 goto wc10aw32
if %1==wc10ac32 goto wc10ac32
if %1==wc10ao32 goto wc10ao32
if %1==wc10ap32 goto wc10ap32
if %1==wc10asnp goto wc10asnp
if %1==wc10-d16 goto wc10-d16
if %1==wc10-d32 goto wc10-d32
if %1==wc10-tnt goto wc10-tnt
if %1==wc10-w16 goto wc10-w16
if %1==wc10-w32 goto wc10-w32
if %1==wc10-c32 goto wc10-c32
if %1==wc10-o32 goto wc10-o32
if %1==wc10-p32 goto wc10-p32
if %1==wc10-snp goto wc10-snp
if %1==wc11-d16 goto wc11-d16
if %1==wc11-d32 goto wc11-d32
if %1==wc11-tnt goto wc11-tnt
if %1==wc11-w16 goto wc11-w16
if %1==wc11-w32 goto wc11-w32
if %1==wc11-c32 goto wc11-c32
if %1==wc11-o32 goto wc11-o32
if %1==wc11-p32 goto wc11-p32
if %1==wc11-snp goto wc11-snp

echo Usage: BUILD 'compiler_name' [DMAKE commands]
echo.
echo Where 'compiler_name' is of the form comp-os, where
echo 'comp' defines the compiler and 'os' defines the OS environment.
echo For instance 'bc50-w32' is for Borland C++ 5.0 for Win32.
echo The value of 'comp' can be any of the following:
echo.
echo    bc45 - Borland C++ 4.5x
echo    bc50 - Borland C++ 5.x
echo    vc40 - Visual C++ 4.x
echo    vc50 - Visual C++ 5.x
echo    vc60 - Visual C++ 6.x
echo    wc10 - Watcom C++ 10.6
echo    wc11 - Watcom C++ 11.0
echo    gcc2 - GNU C/C++ 2.9x
echo.
echo The value of 'os' can be one of the following:
echo.
echo    d16   - 16-bit DOS
echo    d32   - 32-bit DOS
echo    w16   - 16-bit Windows GUI mode
echo    c32   - 32-bit Windows console mode
echo    w32   - 32-bit Windows GUI mode
echo    o16   - 16-bit OS/2 console mode
echo    o32   - 32-bit OS/2 console mode
echo    p32   - 32-bit OS/2 Presentation Manager
echo    snp   - 32-bit SciTech Snap application
echo    linux - 32-bit Linux application
goto end

rem -------------------------------------------------------------------------
rem Setup for the specified compiler

:bc31-d16
call bc31-d16.bat
goto compileit

:bc45-d16
call bc45-d16.bat
goto compileit

:bc45-d32
call bc45-d32.bat
goto compileit

:bc45-tnt
call bc45-tnt.bat
goto compileit

:bc45-w16
call bc45-w16.bat
goto compileit

:bc45-w32
call bc45-w32.bat
goto compileit

:bc45-c32
call bc45-c32.bat
goto compileit

:bc45-vxd
call bc45-vxd.bat
goto compileit

:bc50-d16
call bc50-d16.bat
goto compileit

:bc50-d32
call bc50-d32.bat
goto compileit

:bc50-tnt
call bc50-tnt.bat
goto compileit

:bc50-w16
call bc50-w16.bat
goto compileit

:bc50-w32
call bc50-w32.bat
goto compileit

:bc50-c32
call bc50-c32.bat
goto compileit

:bc50-vxd
call bc50-vxd.bat
goto compileit

:gcc2-d32
call gcc2-d32.bat
goto compileit

:gcc2-w32
call gcc2-w32.bat
goto compileit

:gcc2-c32
call gcc2-c32.bat
goto compileit

:gcc2-linux
call gcc2-linux.bat
goto compileit

:sc70-d16
call sc70-d16.bat
goto compileit

:sc70-w16
call sc70-w16.bat
goto compileit

:sc70-tnt
call sc70-tnt.bat
goto compileit

:sc70-w32
call sc70-w32.bat
goto compileit

:sc70-c32
call sc70-c32.bat
goto compileit

:vc40-d16
call vc40-d16.bat
goto compileit

:vc40-tnt
call vc40-tnt.bat
goto compileit

:vc40-w16
call vc40-w16.bat
goto compileit

:vc40-w32
call vc40-w32.bat
goto compileit

:vc40-c32
call vc40-c32.bat
goto compileit

:vc40-drv9x
call vc40-drv9x.bat
goto compileit

:vc40-drvnt
call vc40-drvnt.bat
goto compileit

:vc40-rtt
call vc40-rtt.bat
goto compileit

:vc50-d16
call vc50-d16.bat
goto compileit

:vc50-tnt
call vc50-tnt.bat
goto compileit

:vc50-w16
call vc50-w16.bat
goto compileit

:vc50-w32
call vc50-w32.bat
goto compileit

:vc50-c32
call vc50-c32.bat
goto compileit

:vc50-drv9x
call vc50-drv9x.bat
goto compileit

:vc50-drvnt
call vc50-drvnt.bat
goto compileit

:vc50-rtt
call vc50-rtt.bat
goto compileit

:vc60-d16
call vc60-d16.bat
goto compileit

:vc60-tnt
call vc60-tnt.bat
goto compileit

:vc60-w16
call vc60-w16.bat
goto compileit

:vc60-w32
call vc60-w32.bat
goto compileit

:vc60-c32
call vc60-c32.bat
goto compileit

:vc60-drv9x
call vc60-drv9x.bat
goto compileit

:vc60-drvnt
call vc60-drvnt.bat
goto compileit

:vc60-drvw2k
call vc60-drvw2k.bat
goto compileit

:vc60-rtt
call vc60-rtt.bat
goto compileit

:wc10ad16
call wc10ad16.bat
goto compileit

:wc10ad32
call wc10ad32.bat
goto compileit

:wc10atnt
call wc10atnt.bat
goto compileit

:wc10aw16
call wc10aw16.bat
goto compileit

:wc10aw32
call wc10aw32.bat
goto compileit

:wc10ac32
call wc10ac32.bat
goto compileit

:wc10ao32
call wc10ao32.bat
goto compileit

:wc10ap32
call wc10ap32.bat
goto compileit

:wc10-d16
call wc10-d16.bat
goto compileit

:wc10-d32
call wc10-d32.bat
goto compileit

:wc10-tnt
call wc10-tnt.bat
goto compileit

:wc10-w16
call wc10-w16.bat
goto compileit

:wc10-w32
call wc10-w32.bat
goto compileit

:wc10-c32
call wc10-c32.bat
goto compileit

:wc10-o32
call wc10-o32.bat
goto compileit

:wc10-p32
call wc10-p32.bat
goto compileit

:wc11-d16
call wc11-d16.bat
goto compileit

:wc11-d32
call wc11-d32.bat
goto compileit

:wc11-tnt
call wc11-tnt.bat
goto compileit

:wc11-w16
call wc11-w16.bat
goto compileit

:wc11-w32
call wc11-w32.bat
goto compileit

:wc11-c32
call wc11-c32.bat
goto compileit

:wc11-o32
call wc11-o32.bat
goto compileit

:wc11-p32
call wc11-p32.bat
goto compileit

:compileit
k_rm -f *.lib *.a
dmake %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto errorend
goto end

:errorend
echo *************************************************
echo * An error occurred while building the library. *
echo *************************************************
:end
OpenPOWER on IntegriCloud