]>
Commit | Line | Data |
---|---|---|
1 | #!/binb/wmake.exe | |
2 | ||
3 | # This file was automatically generated by tmake | |
4 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE WATBASE.T! | |
5 | ||
6 | ############################################################################## | |
7 | # Name: makebase.wat | |
8 | # Purpose: Builds wxBase library for Watcom C++ under Win32 | |
9 | # Author: Vadim Zeitlin | |
10 | # Created: 21.01.03 | |
11 | # RCS-ID: $Id$ | |
12 | # Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org> | |
13 | # Licence: wxWindows licence | |
14 | ############################################################################## | |
15 | ||
16 | wxUSE_GUI=0 | |
17 | ||
18 | !include ..\makewat.env | |
19 | ||
20 | LIBTARGET = $(WXDIR)\lib\wx$(TOOLKIT)$(DEBUGSUFFIX)_w.lib | |
21 | ||
22 | EXTRATARGETS = zlib regex | |
23 | EXTRATARGETSCLEAN = clean_zlib clean_regex | |
24 | COMMDIR=$(WXDIR)\src\common | |
25 | MSWDIR=$(WXDIR)\src\msw | |
26 | OLEDIR=$(MSWDIR)\ole | |
27 | ||
28 | COMMONOBJS = & | |
29 | $(OUTPUTDIR)\appcmn.obj & | |
30 | $(OUTPUTDIR)\clntdata.obj & | |
31 | $(OUTPUTDIR)\cmdline.obj & | |
32 | $(OUTPUTDIR)\config.obj & | |
33 | $(OUTPUTDIR)\datetime.obj & | |
34 | $(OUTPUTDIR)\datstrm.obj & | |
35 | $(OUTPUTDIR)\db.obj & | |
36 | $(OUTPUTDIR)\dbtable.obj & | |
37 | $(OUTPUTDIR)\dircmn.obj & | |
38 | $(OUTPUTDIR)\dynarray.obj & | |
39 | $(OUTPUTDIR)\dynlib.obj & | |
40 | $(OUTPUTDIR)\dynload.obj & | |
41 | $(OUTPUTDIR)\encconv.obj & | |
42 | $(OUTPUTDIR)\event.obj & | |
43 | $(OUTPUTDIR)\extended.obj & | |
44 | $(OUTPUTDIR)\ffile.obj & | |
45 | $(OUTPUTDIR)\file.obj & | |
46 | $(OUTPUTDIR)\fileconf.obj & | |
47 | $(OUTPUTDIR)\filefn.obj & | |
48 | $(OUTPUTDIR)\filename.obj & | |
49 | $(OUTPUTDIR)\filesys.obj & | |
50 | $(OUTPUTDIR)\fontmap.obj & | |
51 | $(OUTPUTDIR)\fs_inet.obj & | |
52 | $(OUTPUTDIR)\fs_mem.obj & | |
53 | $(OUTPUTDIR)\fs_zip.obj & | |
54 | $(OUTPUTDIR)\ftp.obj & | |
55 | $(OUTPUTDIR)\hash.obj & | |
56 | $(OUTPUTDIR)\hashmap.obj & | |
57 | $(OUTPUTDIR)\http.obj & | |
58 | $(OUTPUTDIR)\intl.obj & | |
59 | $(OUTPUTDIR)\ipcbase.obj & | |
60 | $(OUTPUTDIR)\list.obj & | |
61 | $(OUTPUTDIR)\log.obj & | |
62 | $(OUTPUTDIR)\longlong.obj & | |
63 | $(OUTPUTDIR)\memory.obj & | |
64 | $(OUTPUTDIR)\mimecmn.obj & | |
65 | $(OUTPUTDIR)\module.obj & | |
66 | $(OUTPUTDIR)\msgout.obj & | |
67 | $(OUTPUTDIR)\mstream.obj & | |
68 | $(OUTPUTDIR)\object.obj & | |
69 | $(OUTPUTDIR)\process.obj & | |
70 | $(OUTPUTDIR)\protocol.obj & | |
71 | $(OUTPUTDIR)\regex.obj & | |
72 | $(OUTPUTDIR)\sckaddr.obj & | |
73 | $(OUTPUTDIR)\sckfile.obj & | |
74 | $(OUTPUTDIR)\sckipc.obj & | |
75 | $(OUTPUTDIR)\sckstrm.obj & | |
76 | $(OUTPUTDIR)\socket.obj & | |
77 | $(OUTPUTDIR)\strconv.obj & | |
78 | $(OUTPUTDIR)\stream.obj & | |
79 | $(OUTPUTDIR)\string.obj & | |
80 | $(OUTPUTDIR)\sysopt.obj & | |
81 | $(OUTPUTDIR)\textbuf.obj & | |
82 | $(OUTPUTDIR)\textfile.obj & | |
83 | $(OUTPUTDIR)\timercmn.obj & | |
84 | $(OUTPUTDIR)\tokenzr.obj & | |
85 | $(OUTPUTDIR)\txtstrm.obj & | |
86 | $(OUTPUTDIR)\unzip.obj & | |
87 | $(OUTPUTDIR)\url.obj & | |
88 | $(OUTPUTDIR)\utilscmn.obj & | |
89 | $(OUTPUTDIR)\variant.obj & | |
90 | $(OUTPUTDIR)\wfstream.obj & | |
91 | $(OUTPUTDIR)\wxchar.obj & | |
92 | $(OUTPUTDIR)\zipstrm.obj & | |
93 | $(OUTPUTDIR)\zstream.obj & | |
94 | $(OUTPUTDIR)\init.obj | |
95 | ||
96 | MSWOBJS = & | |
97 | $(OUTPUTDIR)\dde.obj & | |
98 | $(OUTPUTDIR)\dir.obj & | |
99 | $(OUTPUTDIR)\gsocket.obj & | |
100 | $(OUTPUTDIR)\gsockmsw.obj & | |
101 | $(OUTPUTDIR)\main.obj & | |
102 | $(OUTPUTDIR)\mimetype.obj & | |
103 | $(OUTPUTDIR)\regconf.obj & | |
104 | $(OUTPUTDIR)\registry.obj & | |
105 | $(OUTPUTDIR)\snglinst.obj & | |
106 | $(OUTPUTDIR)\thread.obj & | |
107 | $(OUTPUTDIR)\utils.obj & | |
108 | $(OUTPUTDIR)\utilsexc.obj & | |
109 | $(OUTPUTDIR)\volume.obj | |
110 | ||
111 | OBJECTS = $(COMMONOBJS) $(MSWOBJS) | |
112 | ||
113 | SETUP_H=$(ARCHINCDIR)\wx\setup.h | |
114 | ||
115 | all: $(SETUP_H) $(OUTPUTDIR) $(OBJECTS) $(LIBTARGET) $(EXTRATARGETS) .SYMBOLIC | |
116 | ||
117 | $(ARCHINCDIR)\wx: | |
118 | mkdir $(ARCHINCDIR) | |
119 | mkdir $(ARCHINCDIR)\wx | |
120 | ||
121 | $(OUTPUTDIR): | |
122 | mkdir $(OUTPUTDIR) | |
123 | ||
124 | $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h $(ARCHINCDIR)\wx | |
125 | copy $(WXDIR)\include\wx\msw\setup.h $@ | |
126 | ||
127 | LBCFILE=$(OUTPUTDIR)\wx$(TOOLKIT).lbc | |
128 | $(LIBTARGET) : $(OBJECTS) | |
129 | %create $(LBCFILE) | |
130 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
131 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
132 | ||
133 | ||
134 | clean: .SYMBOLIC $(EXTRATARGETSCLEAN) | |
135 | -erase $(OUTPUTDIR)\*.obj | |
136 | -erase $(LIBTARGET) | |
137 | -erase $(OUTPUTDIR)\*.pch | |
138 | -erase $(OUTPUTDIR)\*.err | |
139 | -erase $(OUTPUTDIR)\*.lbc | |
140 | ||
141 | cleanall: clean | |
142 | -erase $(LBCFILE) | |
143 | ||
144 | $(OUTPUTDIR)\dde.obj: $(MSWDIR)\dde.cpp | |
145 | *$(CXX) $(CXXFLAGS) $< | |
146 | ||
147 | $(OUTPUTDIR)\dir.obj: $(MSWDIR)\dir.cpp | |
148 | *$(CXX) $(CXXFLAGS) $< | |
149 | ||
150 | $(OUTPUTDIR)\gsocket.obj: $(MSWDIR)\gsocket.c | |
151 | *$(CC) $(CFLAGS) $< | |
152 | ||
153 | $(OUTPUTDIR)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c | |
154 | *$(CC) $(CFLAGS) $< | |
155 | ||
156 | $(OUTPUTDIR)\main.obj: $(MSWDIR)\main.cpp | |
157 | *$(CXX) $(CXXFLAGS) $< | |
158 | ||
159 | $(OUTPUTDIR)\mimetype.obj: $(MSWDIR)\mimetype.cpp | |
160 | *$(CXX) $(CXXFLAGS) $< | |
161 | ||
162 | $(OUTPUTDIR)\regconf.obj: $(MSWDIR)\regconf.cpp | |
163 | *$(CXX) $(CXXFLAGS) $< | |
164 | ||
165 | $(OUTPUTDIR)\registry.obj: $(MSWDIR)\registry.cpp | |
166 | *$(CXX) $(CXXFLAGS) $< | |
167 | ||
168 | $(OUTPUTDIR)\snglinst.obj: $(MSWDIR)\snglinst.cpp | |
169 | *$(CXX) $(CXXFLAGS) $< | |
170 | ||
171 | $(OUTPUTDIR)\thread.obj: $(MSWDIR)\thread.cpp | |
172 | *$(CXX) $(CXXFLAGS) $< | |
173 | ||
174 | $(OUTPUTDIR)\utils.obj: $(MSWDIR)\utils.cpp | |
175 | *$(CXX) $(CXXFLAGS) $< | |
176 | ||
177 | $(OUTPUTDIR)\utilsexc.obj: $(MSWDIR)\utilsexc.cpp | |
178 | *$(CXX) $(CXXFLAGS) $< | |
179 | ||
180 | $(OUTPUTDIR)\volume.obj: $(MSWDIR)\volume.cpp | |
181 | *$(CXX) $(CXXFLAGS) $< | |
182 | ||
183 | ||
184 | ||
185 | ######################################################## | |
186 | # Common objects (always compiled) | |
187 | ||
188 | $(OUTPUTDIR)\appcmn.obj: $(COMMDIR)\appcmn.cpp | |
189 | *$(CXX) $(CXXFLAGS) $< | |
190 | ||
191 | $(OUTPUTDIR)\clntdata.obj: $(COMMDIR)\clntdata.cpp | |
192 | *$(CXX) $(CXXFLAGS) $< | |
193 | ||
194 | $(OUTPUTDIR)\cmdline.obj: $(COMMDIR)\cmdline.cpp | |
195 | *$(CXX) $(CXXFLAGS) $< | |
196 | ||
197 | $(OUTPUTDIR)\config.obj: $(COMMDIR)\config.cpp | |
198 | *$(CXX) $(CXXFLAGS) $< | |
199 | ||
200 | $(OUTPUTDIR)\datetime.obj: $(COMMDIR)\datetime.cpp | |
201 | *$(CXX) $(CXXFLAGS) $< | |
202 | ||
203 | $(OUTPUTDIR)\datstrm.obj: $(COMMDIR)\datstrm.cpp | |
204 | *$(CXX) $(CXXFLAGS) $< | |
205 | ||
206 | $(OUTPUTDIR)\db.obj: $(COMMDIR)\db.cpp | |
207 | *$(CXX) $(CXXFLAGS) $< | |
208 | ||
209 | $(OUTPUTDIR)\dbtable.obj: $(COMMDIR)\dbtable.cpp | |
210 | *$(CXX) $(CXXFLAGS) $< | |
211 | ||
212 | $(OUTPUTDIR)\dircmn.obj: $(COMMDIR)\dircmn.cpp | |
213 | *$(CXX) $(CXXFLAGS) $< | |
214 | ||
215 | $(OUTPUTDIR)\dynarray.obj: $(COMMDIR)\dynarray.cpp | |
216 | *$(CXX) $(CXXFLAGS) $< | |
217 | ||
218 | $(OUTPUTDIR)\dynlib.obj: $(COMMDIR)\dynlib.cpp | |
219 | *$(CXX) $(CXXFLAGS) $< | |
220 | ||
221 | $(OUTPUTDIR)\dynload.obj: $(COMMDIR)\dynload.cpp | |
222 | *$(CXX) $(CXXFLAGS) $< | |
223 | ||
224 | $(OUTPUTDIR)\encconv.obj: $(COMMDIR)\encconv.cpp | |
225 | *$(CXX) $(CXXFLAGS) $< | |
226 | ||
227 | $(OUTPUTDIR)\event.obj: $(COMMDIR)\event.cpp | |
228 | *$(CXX) $(CXXFLAGS) $< | |
229 | ||
230 | $(OUTPUTDIR)\extended.obj: $(COMMDIR)\extended.c | |
231 | *$(CC) $(CFLAGS) $< | |
232 | ||
233 | $(OUTPUTDIR)\ffile.obj: $(COMMDIR)\ffile.cpp | |
234 | *$(CXX) $(CXXFLAGS) $< | |
235 | ||
236 | $(OUTPUTDIR)\file.obj: $(COMMDIR)\file.cpp | |
237 | *$(CXX) $(CXXFLAGS) $< | |
238 | ||
239 | $(OUTPUTDIR)\fileconf.obj: $(COMMDIR)\fileconf.cpp | |
240 | *$(CXX) $(CXXFLAGS) $< | |
241 | ||
242 | $(OUTPUTDIR)\filefn.obj: $(COMMDIR)\filefn.cpp | |
243 | *$(CXX) $(CXXFLAGS) $< | |
244 | ||
245 | $(OUTPUTDIR)\filename.obj: $(COMMDIR)\filename.cpp | |
246 | *$(CXX) $(CXXFLAGS) $< | |
247 | ||
248 | $(OUTPUTDIR)\filesys.obj: $(COMMDIR)\filesys.cpp | |
249 | *$(CXX) $(CXXFLAGS) $< | |
250 | ||
251 | $(OUTPUTDIR)\fontmap.obj: $(COMMDIR)\fontmap.cpp | |
252 | *$(CXX) $(CXXFLAGS) $< | |
253 | ||
254 | $(OUTPUTDIR)\fs_inet.obj: $(COMMDIR)\fs_inet.cpp | |
255 | *$(CXX) $(CXXFLAGS) $< | |
256 | ||
257 | $(OUTPUTDIR)\fs_mem.obj: $(COMMDIR)\fs_mem.cpp | |
258 | *$(CXX) $(CXXFLAGS) $< | |
259 | ||
260 | $(OUTPUTDIR)\fs_zip.obj: $(COMMDIR)\fs_zip.cpp | |
261 | *$(CXX) $(CXXFLAGS) $< | |
262 | ||
263 | $(OUTPUTDIR)\ftp.obj: $(COMMDIR)\ftp.cpp | |
264 | *$(CXX) $(CXXFLAGS) $< | |
265 | ||
266 | $(OUTPUTDIR)\hash.obj: $(COMMDIR)\hash.cpp | |
267 | *$(CXX) $(CXXFLAGS) $< | |
268 | ||
269 | $(OUTPUTDIR)\hashmap.obj: $(COMMDIR)\hashmap.cpp | |
270 | *$(CXX) $(CXXFLAGS) $< | |
271 | ||
272 | $(OUTPUTDIR)\http.obj: $(COMMDIR)\http.cpp | |
273 | *$(CXX) $(CXXFLAGS) $< | |
274 | ||
275 | $(OUTPUTDIR)\intl.obj: $(COMMDIR)\intl.cpp | |
276 | *$(CXX) $(CXXFLAGS) $< | |
277 | ||
278 | $(OUTPUTDIR)\ipcbase.obj: $(COMMDIR)\ipcbase.cpp | |
279 | *$(CXX) $(CXXFLAGS) $< | |
280 | ||
281 | $(OUTPUTDIR)\list.obj: $(COMMDIR)\list.cpp | |
282 | *$(CXX) $(CXXFLAGS) $< | |
283 | ||
284 | $(OUTPUTDIR)\log.obj: $(COMMDIR)\log.cpp | |
285 | *$(CXX) $(CXXFLAGS) $< | |
286 | ||
287 | $(OUTPUTDIR)\longlong.obj: $(COMMDIR)\longlong.cpp | |
288 | *$(CXX) $(CXXFLAGS) $< | |
289 | ||
290 | $(OUTPUTDIR)\memory.obj: $(COMMDIR)\memory.cpp | |
291 | *$(CXX) $(CXXFLAGS) $< | |
292 | ||
293 | $(OUTPUTDIR)\mimecmn.obj: $(COMMDIR)\mimecmn.cpp | |
294 | *$(CXX) $(CXXFLAGS) $< | |
295 | ||
296 | $(OUTPUTDIR)\module.obj: $(COMMDIR)\module.cpp | |
297 | *$(CXX) $(CXXFLAGS) $< | |
298 | ||
299 | $(OUTPUTDIR)\msgout.obj: $(COMMDIR)\msgout.cpp | |
300 | *$(CXX) $(CXXFLAGS) $< | |
301 | ||
302 | $(OUTPUTDIR)\mstream.obj: $(COMMDIR)\mstream.cpp | |
303 | *$(CXX) $(CXXFLAGS) $< | |
304 | ||
305 | $(OUTPUTDIR)\object.obj: $(COMMDIR)\object.cpp | |
306 | *$(CXX) $(CXXFLAGS) $< | |
307 | ||
308 | $(OUTPUTDIR)\process.obj: $(COMMDIR)\process.cpp | |
309 | *$(CXX) $(CXXFLAGS) $< | |
310 | ||
311 | $(OUTPUTDIR)\protocol.obj: $(COMMDIR)\protocol.cpp | |
312 | *$(CXX) $(CXXFLAGS) $< | |
313 | ||
314 | $(OUTPUTDIR)\regex.obj: $(COMMDIR)\regex.cpp | |
315 | *$(CXX) $(CXXFLAGS) $< | |
316 | ||
317 | $(OUTPUTDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.cpp | |
318 | *$(CXX) $(CXXFLAGS) $< | |
319 | ||
320 | $(OUTPUTDIR)\sckfile.obj: $(COMMDIR)\sckfile.cpp | |
321 | *$(CXX) $(CXXFLAGS) $< | |
322 | ||
323 | $(OUTPUTDIR)\sckipc.obj: $(COMMDIR)\sckipc.cpp | |
324 | *$(CXX) $(CXXFLAGS) $< | |
325 | ||
326 | $(OUTPUTDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.cpp | |
327 | *$(CXX) $(CXXFLAGS) $< | |
328 | ||
329 | $(OUTPUTDIR)\socket.obj: $(COMMDIR)\socket.cpp | |
330 | *$(CXX) $(CXXFLAGS) $< | |
331 | ||
332 | $(OUTPUTDIR)\strconv.obj: $(COMMDIR)\strconv.cpp | |
333 | *$(CXX) $(CXXFLAGS) $< | |
334 | ||
335 | $(OUTPUTDIR)\stream.obj: $(COMMDIR)\stream.cpp | |
336 | *$(CXX) $(CXXFLAGS) $< | |
337 | ||
338 | $(OUTPUTDIR)\string.obj: $(COMMDIR)\string.cpp | |
339 | *$(CXX) $(CXXFLAGS) $< | |
340 | ||
341 | $(OUTPUTDIR)\sysopt.obj: $(COMMDIR)\sysopt.cpp | |
342 | *$(CXX) $(CXXFLAGS) $< | |
343 | ||
344 | $(OUTPUTDIR)\textbuf.obj: $(COMMDIR)\textbuf.cpp | |
345 | *$(CXX) $(CXXFLAGS) $< | |
346 | ||
347 | $(OUTPUTDIR)\textfile.obj: $(COMMDIR)\textfile.cpp | |
348 | *$(CXX) $(CXXFLAGS) $< | |
349 | ||
350 | $(OUTPUTDIR)\timercmn.obj: $(COMMDIR)\timercmn.cpp | |
351 | *$(CXX) $(CXXFLAGS) $< | |
352 | ||
353 | $(OUTPUTDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.cpp | |
354 | *$(CXX) $(CXXFLAGS) $< | |
355 | ||
356 | $(OUTPUTDIR)\txtstrm.obj: $(COMMDIR)\txtstrm.cpp | |
357 | *$(CXX) $(CXXFLAGS) $< | |
358 | ||
359 | $(OUTPUTDIR)\unzip.obj: $(COMMDIR)\unzip.c | |
360 | *$(CC) $(CFLAGS) $< | |
361 | ||
362 | $(OUTPUTDIR)\url.obj: $(COMMDIR)\url.cpp | |
363 | *$(CXX) $(CXXFLAGS) $< | |
364 | ||
365 | $(OUTPUTDIR)\utilscmn.obj: $(COMMDIR)\utilscmn.cpp | |
366 | *$(CXX) $(CXXFLAGS) $< | |
367 | ||
368 | $(OUTPUTDIR)\variant.obj: $(COMMDIR)\variant.cpp | |
369 | *$(CXX) $(CXXFLAGS) $< | |
370 | ||
371 | $(OUTPUTDIR)\wfstream.obj: $(COMMDIR)\wfstream.cpp | |
372 | *$(CXX) $(CXXFLAGS) $< | |
373 | ||
374 | $(OUTPUTDIR)\wxchar.obj: $(COMMDIR)\wxchar.cpp | |
375 | *$(CXX) $(CXXFLAGS) $< | |
376 | ||
377 | $(OUTPUTDIR)\zipstrm.obj: $(COMMDIR)\zipstrm.cpp | |
378 | *$(CXX) $(CXXFLAGS) $< | |
379 | ||
380 | $(OUTPUTDIR)\zstream.obj: $(COMMDIR)\zstream.cpp | |
381 | *$(CXX) $(CXXFLAGS) $< | |
382 | ||
383 | $(OUTPUTDIR)\init.obj: $(COMMDIR)\init.cpp | |
384 | *$(CXX) $(CXXFLAGS) $< | |
385 | ||
386 | ||
387 | ||
388 | zlib: .SYMBOLIC | |
389 | cd $(WXDIR)\src\zlib | |
390 | wmake -f makefile.wat all | |
391 | cd $(WXDIR)\src\msw | |
392 | ||
393 | clean_zlib: .SYMBOLIC | |
394 | cd $(WXDIR)\src\zlib | |
395 | wmake -f makefile.wat clean | |
396 | cd $(WXDIR)\src\msw | |
397 | ||
398 | regex: .SYMBOLIC | |
399 | cd $(WXDIR)\src\regex | |
400 | wmake -f makefile.wat all | |
401 | cd $(WXDIR)\src\msw | |
402 | ||
403 | clean_regex: .SYMBOLIC | |
404 | cd $(WXDIR)\src\regex | |
405 | wmake -f makefile.wat clean | |
406 | cd $(WXDIR)\src\msw | |
407 | ||
408 | MFTYPE=watbase | |
409 | self : .SYMBOLIC $(WXDIR)\distrib\msw\tmake\filelist.txt $(WXDIR)\distrib\msw\tmake\$(MFTYPE).t | |
410 | cd $(WXDIR)\distrib\msw\tmake | |
411 | perl -S tmake -t $(MFTYPE) wxwin.pro -o makebase.wat | |
412 | copy makebase.wat $(WXDIR)\src\msw |