summaryrefslogtreecommitdiff
path: root/dmake/make.bat
blob: a0e3fdea8bcf8354b8cd2718d07fce7a7a03cdd6 (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
echo off
cls
rem  *** This is the make batchfile that is used under MSDOS to make the
rem  *** first version of dmake.  It isn't pretty but it does work, assuming
rem  *** the compilers have been correctly setup.  See the warning below
rem  *** concerning tlink, if you are building any of the Borland compiler
rem  *** versions.
rem

if %0%1 == %0 goto error
if %1 == tcc20swp goto mktccswp

if %1 == bcc30swp goto mkbcc30swp
if %1 == bcc40swp goto mkbcc40swp
if %1 == bcc45swp goto mkbcc45swp
if %1 == bcc50swp goto mkbcc50swp

if %1 == msc51       goto mkms51
if %1 == msc51swp    goto mkms51swp
if %1 == msc60       goto mkms60
if %1 == msc60swp    goto mkms60swp

if %1 == win95-bcc50 goto mkw32b50
if %1 == win95-vpp40 goto mkw32vp40

rem label the possible DOS variations for dmake here.
:error
echo MSDOS:  You must specify 'make target' where target is one of:
echo -------------
echo    tcc20swp     - Turbo C 2.0 compile of swapping dmake..

echo    bcc30swp     - Borland C++ 3.0 compile of swapping dmake.
echo    bcc40swp     - Borland C++ 4.0 compile of swapping dmake.
echo    bcc45swp     - Borland C++ 4.5 compile of swapping dmake.
echo    bcc50swp     - Borland C++ 5.0 compile of swapping dmake.

echo    msc51        - Microsoft C 5.1 compile.
echo    msc51swp     - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
echo    msc60        - Microsoft C 6.0 compile.
echo    msc60swp     - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.

echo    win95-bcc50  - Borland C++ 5.0 32-bit compile of dmake.
echo    win95-vpp40  - Microsoft VC++ 4.0 32-bit compile of dmake.
goto end

rem This is the script that makes dmake using Microsoft C 5.1
:mkms51
msdos\microsft\msc51\mk.bat
goto end

:mkms51swp
msdos\microsft\msc51\mkswp.bat
goto end

rem This is the script that makes dmake using Microsoft C 6.0
:mkms60
msdos\microsft\msc60\mk.bat
goto end

:mkms60swp
msdos\microsft\msc60\mkswp.bat
goto end

:mkw32vp40
win95\microsft\vpp40\mk.bat
goto end

rem This is the script that makes dmake using Turbo C 2.0 or higher.
:mktcc
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\tcc20\obj.rsp
echo        msdos\borland\tcc20\lib.rsp
echo    contain absolute paths to TURBO-C runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Turbo-C before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\tcc20\mk.bat
goto end

:mktccswp
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\tcc20\objswp.rsp
echo        msdos\borland\tcc20\libswp.rsp
echo    contain absolute paths to TURBO-C runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Turbo-C before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\tcc20\mkswp.bat
goto end

rem This is the script that makes dmake using Borland C++ 3.0.
:mkbcc30
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc30\obj.rsp
echo        msdos\borland\bcc30\lib.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc30\mk.bat
goto end

:mkbcc30swp
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc30\objswp.rsp
echo        msdos\borland\bcc30\libswp.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc30\mkswp.bat
goto end

rem This is the script that makes dmake using Borland C++ 4.0.
:mkbcc40
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc40\obj.rsp
echo        msdos\borland\bcc40\lib.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc40\mk.bat
goto end

:mkbcc40swp
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc40\objswp.rsp
echo        msdos\borland\bcc40\libswp.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc40\mkswp.bat
goto end

rem This is the script that makes dmake using Borland C++ 4.5.
:mkbcc45
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc45\obj.rsp
echo        msdos\borland\bcc45\lib.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc45\mk.bat
goto end

:mkbcc45swp
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc45\objswp.rsp
echo        msdos\borland\bcc45\libswp.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc45\mkswp.bat
goto end

rem This is the script that makes dmake using Borland C++ 5.0.
:mkbcc50
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc50\obj.rsp
echo        msdos\borland\bcc50\lib.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc50\mk.bat
goto end

:mkbcc50swp
cls
echo WARNING:
echo    The default response files:
echo        msdos\borland\bcc50\objswp.rsp
echo        msdos\borland\bcc50\libswp.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
msdos\borland\bcc50\mkswp.bat
goto end

rem This is the script that makes 32-bit dmake using Borland C++ 5.0.
:mkw32b50
cls
echo WARNING:
echo    The default response files:
echo        win95\borland\bcc50\obj.rsp
echo        win95\borland\bcc50\lib.rsp
echo    contain absolute paths to Borland C++ runtime startup objects, and to
echo    the standard libraries.  You should check that these files contain
echo    the correct path names for your installation of Borland C++ before
echo    proceeding further.  Also check that the mkdir command at the start
echo    of the response file and the copy command at the end of the response
echo    file will work on your system.
echo --
echo Continue if ok, or abort and edit the response files.
pause
win95\borland\bcc50\mk.bat
goto end

rem All done!
:end