]>
Commit | Line | Data |
---|---|---|
f2071dda VZ |
1 | #!############################################################################# |
2 | #! File: b32.t | |
3 | #! Purpose: tmake template file from which makefile.b32 is generated by running | |
4 | #! tmake -t b32 wxwin.pro | |
5 | #! Author: Vadim Zeitlin | |
6 | #! Created: 14.07.99 | |
7 | #! Version: $Id$ | |
8 | #!############################################################################# | |
9 | ||
10 | #${ | |
11 | #! include the code which parses filelist.txt file and initializes | |
12 | #! %wxCommon, %wxGeneric and %wxMSW hashes. | |
13 | IncludeTemplate("filelist.t"); | |
14 | ||
15 | #! now transform these hashes into $project tags | |
2b5f62a0 VZ |
16 | foreach $file (sort keys %wxUNIV) { |
17 | next if $wxUNIV{$file} =~ /\T\b/; | |
f2071dda VZ |
18 | |
19 | $file =~ s/cp?p?$/obj/; | |
2b5f62a0 VZ |
20 | $obj = "\$(UNIVDIR)\\" . $file . " "; |
21 | $project{"WXUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " " | |
22 | } | |
23 | ||
24 | foreach $file (sort keys %wxUNIV) { | |
25 | next unless $wxUNIV{$file} =~ /\T\b/; | |
26 | ||
27 | $file =~ s/cp?p?$/obj/; | |
28 | $obj = "\$(UNIVTHEMEDIR)\\" . $file . " "; | |
29 | $project{"WXUNIVTHEMEOBJS"} .= "\$(MSWDIR)\\" . $file . " " | |
f2071dda VZ |
30 | } |
31 | ||
c09f2879 VZ |
32 | foreach $file (sort keys %wxHTML) { |
33 | next if $wxHTML{$file} =~ /\b16\b/; | |
34 | ||
35 | $file =~ s/cp?p?$/obj/; | |
36 | $project{"WXHTMLOBJS"} .= "\$(MSWDIR)\\" . $file . " " | |
37 | } | |
38 | ||
f2071dda | 39 | foreach $file (sort keys %wxCommon) { |
6a253da1 VS |
40 | next if $wxCommon{$file} =~ /\b(16|U)\b/; |
41 | ||
9f3553c8 | 42 | $isCFile = $file =~ /\.c$/; |
f2071dda | 43 | $file =~ s/cp?p?$/obj/; |
9f3553c8 VZ |
44 | $obj = "\$(MSWDIR)\\" . $file . " "; |
45 | $project{"WXCOMMONOBJS"} .= $obj; | |
46 | $project{"WXCOBJS"} .= $obj if $isCFile; | |
f2071dda VZ |
47 | } |
48 | ||
2b5f62a0 | 49 | #! MSW dir for native port |
f2071dda VZ |
50 | foreach $file (sort keys %wxMSW) { |
51 | next if $wxMSW{$file} =~ /\b16\b/; | |
52 | ||
f6bcfd97 BP |
53 | #! if ( $file =~ /^automtn/ ) { |
54 | #! #! comment in old makefile.b32 seems to imply that this file can not | |
55 | #! #! be compiled with Borland (leads to crash in oleauto sample) | |
56 | #! No longer true, at least for BC++ 5.2 | |
57 | #! next; | |
58 | #! } | |
f2071dda | 59 | |
83b1f353 VZ |
60 | $isCFile = $file =~ /\.c$/; |
61 | ||
6e29a95a | 62 | my $isOleObj = $wxMSW{$file} =~ /\bO\b/; |
f2071dda | 63 | $file =~ s/cp?p?$/obj/; |
6e29a95a VZ |
64 | my $obj = "\$(MSWDIR)\\" . $file . " "; |
65 | ||
66 | $project{"WXMSWOBJS"} .= $obj; | |
67 | if ( $isOleObj ) { | |
68 | #! remember that this file is in ole subdir | |
69 | $project{"WXOLEOBJS"} .= $obj; | |
70 | } | |
83b1f353 | 71 | $project{"WXCOBJS"} .= $obj if $isCFile; |
f2071dda | 72 | } |
2b5f62a0 VZ |
73 | |
74 | #! Now do MSW dir for UNIV | |
75 | foreach $file (sort keys %wxMSW) { | |
76 | next unless $wxMSW{$file} =~ /\b(L|B)\b/; | |
77 | ||
78 | #! if ( $file =~ /^automtn/ ) { | |
79 | #! #! comment in old makefile.b32 seems to imply that this file can not | |
80 | #! #! be compiled with Borland (leads to crash in oleauto sample) | |
81 | #! No longer true, at least for BC++ 5.2 | |
82 | #! next; | |
83 | #! } | |
84 | ||
85 | $isCFile = $file =~ /\.c$/; | |
86 | ||
87 | my $isOleObj = $wxMSW{$file} =~ /\bO\b/; | |
88 | $file =~ s/cp?p?$/obj/; | |
89 | my $obj = "\$(MSWDIR)\\" . $file . " "; | |
90 | ||
91 | $project{"WXMSWUNIVOBJS"} .= $obj; | |
92 | if ( $isOleObj ) { | |
93 | #! remember that this file is in ole subdir | |
94 | $project{"WXOLEUNIVOBJS"} .= $obj; | |
95 | } | |
96 | $project{"WXCUNIVOBJS"} .= $obj if $isCFile; | |
97 | } | |
98 | ||
99 | #! Generic Dir for Native Port | |
100 | foreach $file (sort keys %wxGeneric) { | |
101 | my $tag = ""; | |
102 | next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/; | |
103 | ||
104 | $file =~ s/cp?p?$/obj/; | |
105 | $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " " | |
106 | } | |
107 | ||
108 | #! Generic Dir for UNIV Port | |
109 | foreach $file (sort keys %wxGeneric) { | |
110 | my $filereal = $file; | |
111 | if ( $file =~ /^([^.]+)g.cpp$/ ) { | |
112 | $filereal = "$1.cpp"; | |
113 | } | |
114 | $file =~ s/cp?p?$/obj/; | |
115 | $filereal =~ s/cp?p?$/obj/; | |
116 | ||
117 | next if $project{"WXMSWUNIVOBJS"} =~ /\b$filereal\b/ || | |
118 | $project{"WXUNIVOBJS"} =~ /\b$filereal\b/; | |
119 | ||
120 | ||
121 | $project{"WXGENERICUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " " | |
122 | } | |
123 | ||
f2071dda VZ |
124 | #$} |
125 | ||
cc77c86d | 126 | # This file was automatically generated by tmake |
f2071dda VZ |
127 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T! |
128 | ||
129 | # | |
130 | # File: makefile.b32 | |
131 | # Author: Julian Smart | |
132 | # Created: 1998 | |
133 | # Updated: | |
134 | # Copyright: | |
135 | # | |
136 | # "%W% %G%" | |
137 | # | |
138 | # Makefile : Builds wxWindows library wx.lib for MS Windows, | |
139 | # and Borland C++ (32-bit). | |
140 | ||
6b6fc9b0 | 141 | # BCCDIR now defined in ../makeb32.env |
f2071dda VZ |
142 | |
143 | !if "$(WXWIN)" == "" | |
144 | !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx | |
145 | !endif | |
146 | ||
147 | WXDIR = $(WXWIN) | |
c09f2879 | 148 | THISDIR = $(WXDIR)\src\msw |
f2071dda | 149 | |
2b5f62a0 | 150 | |
f2071dda VZ |
151 | # Set all these to 1 if you want to build a dynamic library |
152 | !if "$(DLL)" == "1" | |
153 | WXMAKINGDLL=1 | |
154 | WXBUILDDLL=1 | |
155 | !endif | |
156 | ||
157 | !include $(WXDIR)\src\makeb32.env | |
158 | ||
159 | # Please set these according to the settings in wx_setup.h, so we can include | |
160 | # the appropriate libraries in wx.lib | |
161 | USE_CTL3D=0 | |
f2071dda VZ |
162 | |
163 | PERIPH_LIBS= | |
164 | PERIPH_TARGET= | |
165 | PERIPH_CLEAN_TARGET= | |
166 | ||
167 | !if "$(USE_CTL3D)" == "1" | |
168 | #Use WIN32S/WIN95 32 bit version ctl3d32.dll under win95 (Andre Beltman) | |
169 | PERIPH_LIBS=$(WXDIR)\lib\ctl3d32.lib $(PERIPH_LIBS) | |
170 | PERIPH_TARGET=ctl3d $(PERIPH_TARGET) | |
171 | PERIPH_CLEAN_TARGET=clean_ctl3d $(PERIPH_CLEAN_TARGET) | |
172 | !endif | |
173 | ||
f6bcfd97 | 174 | #PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\tiff.lib $(PERIPH_LIBS) |
f2071dda | 175 | PERIPH_LIBS= |
bed118ca VZ |
176 | PERIPH_TARGET=zlib png jpeg tiff regex $(PERIPH_TARGET) |
177 | PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff clean_regex $(PERIPH_CLEAN_TARGET) | |
f2071dda VZ |
178 | |
179 | !if "$(DLL)" == "0" | |
180 | DUMMY=dummy | |
181 | !else | |
182 | DUMMY=dummydll | |
bed118ca | 183 | LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex |
f2071dda VZ |
184 | !endif |
185 | ||
186 | LIBTARGET=$(WXLIB) | |
187 | ||
188 | GENDIR=..\generic | |
189 | COMMDIR=..\common | |
c09f2879 | 190 | HTMLDIR=..\html |
f2071dda | 191 | OLEDIR=.\ole |
2b5f62a0 VZ |
192 | UNIVDIR=..\univ |
193 | UNIVTHEMEDIR=..\univ\themes | |
f2071dda VZ |
194 | MSWDIR=. |
195 | ||
196 | DOCDIR = $(WXDIR)\docs | |
197 | ||
198 | GENERICOBJS= #$ ExpandList("WXGENERICOBJS"); | |
199 | ||
2b5f62a0 | 200 | MSWOBJS = #$ ExpandList("WXMSWOBJS"); |
f2071dda | 201 | |
2b5f62a0 | 202 | GENERICUNIVOBJS= #$ ExpandList("WXGENERICUNIVOBJS"); |
f2071dda | 203 | |
2b5f62a0 VZ |
204 | MSWUNIVOBJS = #$ ExpandList("WXMSWUNIVOBJS"); |
205 | ||
206 | UNIVOBJS = #$ ExpandList("WXUNIVOBJS"); | |
207 | ||
208 | UNIVTHEMEOBJS = #$ ExpandList("WXUNIVTHEMEOBJS"); | |
f2071dda | 209 | |
c09f2879 VZ |
210 | HTMLOBJS = #$ ExpandList("WXHTMLOBJS"); |
211 | ||
2b5f62a0 VZ |
212 | COMMONOBJS = \ |
213 | $(MSWDIR)\y_tab.obj \ | |
214 | #$ ExpandList("WXCOMMONOBJS"); | |
215 | ||
216 | !if "$(WXUSINGUNIV)" == "1" | |
217 | OBJECTS = $(COMMONOBJS) $(GENERICUNIVOBJS) $(MSWUNIVOBJS) $(HTMLOBJS) $(UNIVOBJS) $(UNIVTHEMEOBJS) | |
218 | !else | |
c09f2879 | 219 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) |
2b5f62a0 | 220 | !endif |
f2071dda | 221 | |
cc77c86d | 222 | default: wx |
f2071dda | 223 | |
9f24e0b5 | 224 | wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET) |
ea450825 | 225 | |
cc77c86d | 226 | all: wx |
9f24e0b5 JS |
227 | |
228 | # Copy the in-CVS setup0.h to setup.h if necessary | |
229 | makesetuph: | |
ea450825 JS |
230 | cd $(WXDIR)\include\wx\msw |
231 | if not exist setup.h copy setup0.h setup.h | |
232 | cd $(WXDIR)\src\msw | |
f2071dda | 233 | |
9f24e0b5 JS |
234 | # Copy include\wx\msw\setup.h to the architecture-specific location |
235 | makearchsetuph: | |
2b5f62a0 | 236 | copy $(SETUPSRCDIR)\setup.h $(ARCHSETUPH) |
9f24e0b5 JS |
237 | cd $(WXDIR)\src\msw |
238 | ||
239 | $(ARCHINCDIR)\wx: | |
4d50d684 JS |
240 | -mkdir $(ARCHINCDIR) |
241 | -mkdir $(ARCHINCDIR)\wx | |
2dcd33c2 | 242 | -erase $(CFG) |
f2071dda VZ |
243 | |
244 | !if "$(DLL)" == "0" | |
245 | ||
246 | $(LIBTARGET): $(DUMMY).obj $(OBJECTS) | |
247 | -erase $(LIBTARGET) | |
cc77c86d | 248 | tlib "$(LIBTARGET)" /P1024 $(LINKDEBUGFLAGS) @&&! |
f2071dda VZ |
249 | +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +) |
250 | ! | |
251 | ||
252 | !else | |
253 | ||
254 | $(LIBTARGET): $(DUMMY).obj $(OBJECTS) | |
cc77c86d CE |
255 | -erase $(LIBTARGET) |
256 | -erase $(WXDLL) | |
257 | $(LINK) $(LINK_FLAGS) $(LINKDEBUGFLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk @&&! | |
f2071dda | 258 | c0d32.obj $(OBJECTS) |
cc77c86d | 259 | $(WXDLL) |
f2071dda VZ |
260 | nul |
261 | $(PERIPH_LIBS) $(LIBS) | |
262 | wxb32 | |
263 | ! | |
cc77c86d | 264 | implib -c $(LIBTARGET) $(WXDLL) |
f2071dda VZ |
265 | !endif |
266 | ||
267 | dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h | |
4c5032cc | 268 | dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res |
f2071dda | 269 | |
cc77c86d CE |
270 | version.res: |
271 | brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc | |
76484b24 | 272 | |
f2071dda VZ |
273 | $(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c |
274 | ||
275 | # cl @<< | |
276 | # $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
277 | # << | |
278 | ||
279 | $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c | |
280 | copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c | |
281 | ||
282 | $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c | |
283 | copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c | |
284 | ||
cc77c86d | 285 | # $(OBJECTS): $(WXDIR)\include\wx\setup.h |
f2071dda | 286 | |
2b5f62a0 VZ |
287 | !if "$(WXUSINGUNIV)" == "1" |
288 | ######################################################## | |
289 | # MSW objects (compile Native or UNIV) - UNIV | |
290 | ||
291 | #${ | |
292 | $_ = $project{"WXMSWUNIVOBJS"}; | |
293 | my @objs = split; | |
294 | foreach (@objs) { | |
295 | $text .= $_ . ": "; | |
296 | if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; } | |
297 | $suffix = $project{"WXCUNIVOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; | |
298 | s/obj$/$suffix/; | |
299 | $text .= $_ . "\n\n"; | |
300 | } | |
301 | #$} | |
302 | ||
303 | ||
304 | !else | |
305 | ######################################################## | |
306 | # MSW objects (compile Native or UNIV) - Native | |
307 | ||
f2071dda VZ |
308 | #${ |
309 | $_ = $project{"WXMSWOBJS"}; | |
310 | my @objs = split; | |
311 | foreach (@objs) { | |
312 | $text .= $_ . ": "; | |
6e29a95a | 313 | if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; } |
83b1f353 VZ |
314 | $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; |
315 | s/obj$/$suffix/; | |
f2071dda VZ |
316 | $text .= $_ . "\n\n"; |
317 | } | |
318 | #$} | |
2b5f62a0 VZ |
319 | !endif |
320 | ||
321 | !if "$(WXUSINGUNIV)" == "1" | |
322 | ######################################################## | |
323 | # UNIV objects | |
324 | #${ | |
325 | $_ = $project{"WXUNIVOBJS"}; | |
326 | my @objs = split; | |
327 | foreach (@objs) { | |
328 | $text .= $_ . ": "; | |
329 | s/MSWDIR/UNIVDIR/; | |
330 | s/obj$/\$(SRCSUFF)/; | |
331 | $text .= $_ . "\n\n"; | |
332 | } | |
333 | #$} | |
334 | ||
335 | ||
336 | ######################################################## | |
337 | # UNIV THEME objects | |
338 | ||
339 | #${ | |
340 | $_ = $project{"WXUNIVTHEMEOBJS"}; | |
341 | my @objs = split; | |
342 | foreach (@objs) { | |
343 | $text .= $_ . ": "; | |
344 | s/MSWDIR/UNIVTHEMEDIR/; | |
345 | s/obj$/\$(SRCSUFF)/; | |
346 | $text .= $_ . "\n\n"; | |
347 | } | |
348 | #$} | |
349 | ||
350 | !endif | |
f2071dda VZ |
351 | |
352 | ######################################################## | |
353 | # Common objects (always compiled) | |
354 | ||
355 | #${ | |
356 | $_ = $project{"WXCOMMONOBJS"}; | |
357 | my @objs = split; | |
358 | foreach (@objs) { | |
359 | $text .= $_ . ": "; | |
9f3553c8 | 360 | $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; |
f2071dda | 361 | s/MSWDIR/COMMDIR/; |
9f3553c8 | 362 | s/obj$/$suffix/; |
f2071dda VZ |
363 | $text .= $_ . "\n\n"; |
364 | } | |
365 | #$} | |
366 | ||
2b5f62a0 VZ |
367 | !if "$(WXUSINGUNIV)" == "1" |
368 | ######################################################## | |
369 | # Generic objects (not always compiled, depending on | |
370 | # whether platforms have native implementations) | |
371 | # Native | |
372 | ||
373 | ||
374 | #${ | |
375 | $_ = $project{"WXGENERICUNIVOBJS"}; | |
376 | my @objs = split; | |
377 | foreach (@objs) { | |
378 | $text .= $_ . ": "; | |
379 | s/MSWDIR/GENDIR/; | |
380 | s/obj$/\$(SRCSUFF)/; | |
381 | $text .= $_ . "\n\n"; | |
382 | } | |
383 | #$} | |
384 | ||
385 | !else | |
f2071dda VZ |
386 | ######################################################## |
387 | # Generic objects (not always compiled, depending on | |
388 | # whether platforms have native implementations) | |
2b5f62a0 | 389 | # Native |
f2071dda VZ |
390 | |
391 | #${ | |
392 | $_ = $project{"WXGENERICOBJS"}; | |
393 | my @objs = split; | |
394 | foreach (@objs) { | |
395 | $text .= $_ . ": "; | |
396 | s/MSWDIR/GENDIR/; | |
397 | s/obj$/\$(SRCSUFF)/; | |
398 | $text .= $_ . "\n\n"; | |
399 | } | |
400 | #$} | |
2b5f62a0 | 401 | !endif |
f2071dda | 402 | |
c09f2879 VZ |
403 | ######################################################## |
404 | # HTML objects (always compiled) | |
405 | ||
406 | #${ | |
407 | $_ = $project{"WXHTMLOBJS"}; | |
408 | my @objs = split; | |
409 | foreach (@objs) { | |
410 | $text .= $_ . ": "; | |
411 | s/MSWDIR/HTMLDIR/; | |
412 | s/obj$/\$(SRCSUFF)/; | |
413 | $text .= $_ . "\n\n"; | |
414 | } | |
415 | #$} | |
416 | ||
f2071dda VZ |
417 | |
418 | all_utils: | |
419 | cd $(WXDIR)\utils | |
affb67e1 | 420 | ${MAKE} -f makefile.b32 |
f2071dda VZ |
421 | cd $(WXDIR)\src\msw |
422 | ||
423 | all_samples: | |
424 | cd $(WXDIR)\samples | |
affb67e1 | 425 | ${MAKE} -f makefile.b32 |
f2071dda VZ |
426 | cd $(WXDIR)\src\msw |
427 | ||
428 | all_execs: | |
429 | cd $(WXDIR)\utils | |
affb67e1 | 430 | ${MAKE} -f makefile.b32 all_execs |
f2071dda VZ |
431 | cd $(WXDIR)\src\msw |
432 | ||
f2071dda VZ |
433 | png: $(CFG) |
434 | cd $(WXDIR)\src\png | |
2b5f62a0 | 435 | ${MAKE} -f makefile.b32 FINAL=$(FINAL) |
f2071dda VZ |
436 | cd $(WXDIR)\src\msw |
437 | ||
438 | clean_png: | |
439 | cd $(WXDIR)\src\png | |
affb67e1 | 440 | ${MAKE} -f makefile.b32 clean |
f2071dda VZ |
441 | cd $(WXDIR)\src\msw |
442 | ||
443 | zlib: $(CFG) | |
444 | cd $(WXDIR)\src\zlib | |
2b5f62a0 | 445 | ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib |
f2071dda VZ |
446 | cd $(WXDIR)\src\msw |
447 | ||
448 | clean_zlib: | |
449 | cd $(WXDIR)\src\zlib | |
affb67e1 | 450 | ${MAKE} -f makefile.b32 clean |
f2071dda VZ |
451 | cd $(WXDIR)\src\msw |
452 | ||
453 | jpeg: $(CFG) | |
454 | cd $(WXDIR)\src\jpeg | |
2b5f62a0 | 455 | ${MAKE} -f makefile.b32 FINAL=$(FINAL) |
f2071dda VZ |
456 | cd $(WXDIR)\src\msw |
457 | ||
458 | clean_jpeg: | |
459 | cd $(WXDIR)\src\jpeg | |
affb67e1 | 460 | ${MAKE} -f makefile.b32 clean |
176513eb VZ |
461 | cd $(WXDIR)\src\msw |
462 | ||
bed118ca VZ |
463 | regex: $(CFG) |
464 | cd $(WXDIR)\src\regex | |
2b5f62a0 | 465 | ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib |
bed118ca VZ |
466 | cd $(WXDIR)\src\msw |
467 | ||
468 | clean_regex: | |
469 | cd $(WXDIR)\src\regex | |
affb67e1 | 470 | ${MAKE} -f makefile.b32 clean |
bed118ca VZ |
471 | cd $(WXDIR)\src\msw |
472 | ||
176513eb VZ |
473 | tiff: $(CFG) |
474 | cd $(WXDIR)\src\tiff | |
2b5f62a0 | 475 | ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib |
176513eb VZ |
476 | cd $(WXDIR)\src\msw |
477 | ||
478 | clean_tiff: | |
479 | cd $(WXDIR)\src\tiff | |
affb67e1 | 480 | ${MAKE} -f makefile.b32 clean |
f2071dda VZ |
481 | cd $(WXDIR)\src\msw |
482 | ||
483 | $(CFG): makefile.b32 | |
cc77c86d | 484 | copy &&! |
f6bcfd97 | 485 | -Hc |
f2071dda VZ |
486 | -H=$(WXDIR)\src\msw\wx32.csm |
487 | -3 | |
488 | -d | |
60fe7303 | 489 | -a1 # byte alignment |
f2071dda VZ |
490 | -R- |
491 | -X | |
492 | -w-par | |
493 | -w-aus | |
494 | -w-hid # virtual function A hides virtual function B | |
f2071dda VZ |
495 | -tWM |
496 | ||
92fe4afe | 497 | -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff |
f2071dda VZ |
498 | -I$(WXDIR)\include\wx\msw\gnuwin32 |
499 | ||
8e97b17b | 500 | -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk |
f2071dda | 501 | -D__WXWIN__ |
2b5f62a0 | 502 | -D$(PORT) |
f2071dda VZ |
503 | -D__WINDOWS__ |
504 | -DWIN32 | |
505 | $(OPT) | |
506 | $(DEBUG_FLAGS) | |
507 | $(WIN95FLAG) | |
508 | ! $(CFG) | |
509 | ||
f2071dda | 510 | clean: $(PERIPH_CLEAN_TARGET) |
f6bcfd97 BP |
511 | -erase $(WXLIBDIR)\wx.tds |
512 | -erase $(WXLIBDIR)\wx.il? | |
f2071dda VZ |
513 | -erase *.obj |
514 | -erase *.pch | |
515 | -erase *.csm | |
c09f2879 | 516 | -erase "wx32.#??" |
f2071dda VZ |
517 | -erase ..\common\y_tab.c |
518 | -erase ..\common\lex_yy.c | |
519 | ||
520 | cleanall: clean | |
521 | ||
522 | ||
c09f2879 VZ |
523 | # Making documents |
524 | docs: allhlp allhtml allpdfrtf | |
525 | alldocs: docs | |
526 | hlp: wxhlp portinghlp | |
527 | wxhlp: $(DOCDIR)/winhelp/wx.hlp | |
528 | prophlp: $(DOCDIR)/winhelp/prop.hlp | |
529 | refhlp: $(DOCDIR)/winhelp/techref.hlp | |
530 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
531 | proprtf: $(DOCDIR)/winhelp/prop.rtf | |
532 | pdfrtf: $(DOCDIR)/pdf/wx.rtf | |
533 | proppdfrtf: $(DOCDIR)/pdf/prop.rtf | |
534 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf | |
cc77c86d CE |
535 | html: wxhtml portinghtml |
536 | wxhtml: $(DOCDIR)\html\wx\wx.htm | |
c09f2879 VZ |
537 | htmlhelp: $(DOCDIR)\html\wx\wx.chm |
538 | prophtml: $(DOCDIR)\html\proplist\prop.htm | |
539 | ps: wxps referencps | |
cc77c86d CE |
540 | wxps: $(WXDIR)\docs\ps\wx.ps |
541 | propps: $(WXDIR)\docs\ps\prop.ps | |
542 | referencps: $(WXDIR)\docs\ps\referenc.ps | |
c09f2879 VZ |
543 | |
544 | portinghtml: $(DOCDIR)\html\porting\port.htm | |
545 | portingrtf: $(DOCDIR)/winhelp/porting.rtf | |
546 | portinghlp: $(DOCDIR)/winhelp/porting.hlp | |
547 | portingpdfrtf: $(DOCDIR)/pdf/porting.rtf | |
cc77c86d | 548 | portingps: $(WXDIR)\docs\ps\porting.ps |
c09f2879 VZ |
549 | |
550 | allhlp: wxhlp portinghlp prophlp | |
551 | cd $(WXDIR)\utils\dialoged\src | |
affb67e1 | 552 | ${MAKE} -f makefile.b32 hlp |
c09f2879 VZ |
553 | cd $(THISDIR) |
554 | ||
555 | # cd $(WXDIR)\utils\wxhelp\src | |
affb67e1 | 556 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 557 | # cd $(WXDIR)\utils\tex2rtf\src |
affb67e1 | 558 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 559 | # cd $(WXDIR)\utils\wxgraph\src |
affb67e1 | 560 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 561 | # cd $(WXDIR)\utils\wxchart\src |
affb67e1 | 562 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 563 | # cd $(WXDIR)\utils\wxtree\src |
affb67e1 | 564 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 565 | # cd $(WXDIR)\utils\wxbuild\src |
affb67e1 | 566 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 | 567 | # cd $(WXDIR)\utils\wxgrid\src |
affb67e1 | 568 | # ${MAKE} -f makefile.b32 hlp |
c09f2879 VZ |
569 | |
570 | allhtml: wxhtml portinghtml prophtml | |
571 | cd $(WXDIR)\utils\dialoged\src | |
affb67e1 | 572 | ${MAKE} -f makefile.b32 html |
c09f2879 VZ |
573 | cd $(THISDIR) |
574 | ||
affb67e1 | 575 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 576 | # cd $(WXDIR)\utils\dialoged\src |
affb67e1 | 577 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 578 | # cd $(WXDIR)\utils\hytext\src |
affb67e1 | 579 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 580 | # cd $(WXDIR)\utils\wxhelp\src |
affb67e1 | 581 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 582 | # cd $(WXDIR)\utils\tex2rtf\src |
affb67e1 | 583 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 584 | # cd $(WXDIR)\utils\wxgraph\src |
affb67e1 | 585 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 586 | # cd $(WXDIR)\utils\wxchart\src |
affb67e1 | 587 | # ${MAKE} -f makefile.b32 html |
c09f2879 | 588 | # cd $(WXDIR)\utils\wxtree\src |
affb67e1 | 589 | # ${MAKE} -f makefile.b32 html |
c09f2879 VZ |
590 | |
591 | allps: wxps referencps portingps propps | |
592 | cd $(WXDIR)\utils\dialoged\src | |
affb67e1 | 593 | ${MAKE} -f makefile.b32 ps |
c09f2879 VZ |
594 | cd $(THISDIR) |
595 | ||
596 | allpdfrtf: pdfrtf portingpdfrtf proppdfrtf | |
597 | cd $(WXDIR)\utils\dialoged\src | |
affb67e1 | 598 | ${MAKE} -f makefile.b32 pdfrtf |
c09f2879 VZ |
599 | cd $(THISDIR) |
600 | ||
601 | # cd $(WXDIR)\utils\wxhelp\src | |
affb67e1 | 602 | # ${MAKE} -f makefile.b32 ps |
c09f2879 | 603 | # cd $(WXDIR)\utils\tex2rtf\src |
affb67e1 | 604 | # ${MAKE} -f makefile.b32 ps |
c09f2879 | 605 | # cd $(WXDIR)\utils\wxgraph\src |
affb67e1 | 606 | # ${MAKE} -f makefile.b32 ps |
c09f2879 | 607 | # cd $(WXDIR)\utils\wxchart\src |
affb67e1 | 608 | # ${MAKE} -f makefile.b32 ps |
c09f2879 | 609 | # cd $(WXDIR)\utils\wxtree\src |
affb67e1 | 610 | # ${MAKE} -f makefile.b32 ps |
c09f2879 VZ |
611 | # cd $(THISDIR) |
612 | ||
613 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj | |
614 | cd $(DOCDIR)/latex/wx | |
615 | -erase wx.ph | |
616 | hc wx | |
617 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp | |
618 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
619 | cd $(THISDIR) | |
620 | ||
621 | $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj | |
622 | cd $(DOCDIR)/latex/porting | |
623 | -erase porting.ph | |
624 | hc porting | |
625 | move porting.hlp $(DOCDIR)\winhelp\porting.hlp | |
626 | move porting.cnt $(DOCDIR)\winhelp\porting.cnt | |
627 | cd $(THISDIR) | |
628 | ||
629 | $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj | |
630 | cd $(DOCDIR)/latex/proplist | |
631 | -erase prop.ph | |
632 | hc prop | |
633 | move prop.hlp $(DOCDIR)\winhelp\prop.hlp | |
634 | move prop.cnt $(DOCDIR)\winhelp\prop.cnt | |
635 | cd $(THISDIR) | |
636 | ||
637 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj | |
638 | cd $(DOCDIR)/latex/techref | |
639 | -erase techref.ph | |
640 | hc techref | |
641 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
642 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
643 | cd $(THISDIR) | |
644 | ||
645 | $(DOCDIR)/latex/wx/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
646 | cd $(DOCDIR)\latex\wx | |
647 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp | |
648 | cd $(THISDIR) | |
649 | ||
650 | $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
651 | cd $(DOCDIR)\latex\porting | |
652 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp | |
653 | cd $(THISDIR) | |
654 | ||
655 | $(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex | |
656 | cd $(DOCDIR)\latex\proplist | |
657 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp | |
658 | cd $(THISDIR) | |
659 | ||
660 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex | |
661 | cd $(DOCDIR)\latex\techref | |
662 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp | |
663 | cd $(THISDIR) | |
664 | ||
665 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
666 | cd $(DOCDIR)\latex\wx | |
667 | -copy *.wmf $(DOCDIR)\pdf | |
668 | -copy *.bmp $(DOCDIR)\pdf | |
669 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf | |
670 | cd $(THISDIR) | |
671 | ||
672 | $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
673 | cd $(DOCDIR)\latex\porting | |
674 | -copy *.wmf $(DOCDIR)\pdf | |
675 | -copy *.bmp $(DOCDIR)\pdf | |
676 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf | |
677 | cd $(THISDIR) | |
678 | ||
679 | $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex | |
680 | cd $(DOCDIR)\latex\proplist | |
681 | -copy *.wmf $(DOCDIR)\pdf | |
682 | -copy *.bmp $(DOCDIR)\pdf | |
683 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf | |
684 | cd $(THISDIR) | |
685 | ||
686 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex | |
687 | cd $(DOCDIR)\latex\techref | |
688 | -copy *.wmf $(DOCDIR)\pdf | |
689 | -copy *.bmp $(DOCDIR)\pdf | |
690 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf | |
691 | cd $(THISDIR) | |
692 | ||
693 | $(DOCDIR)\html\wx\wx.htm: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex | |
694 | cd $(DOCDIR)\latex\wx | |
695 | -mkdir $(DOCDIR)\html\wx | |
696 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html | |
697 | -erase $(DOCDIR)\html\wx\*.con | |
698 | -erase $(DOCDIR)\html\wx\*.ref | |
699 | -erase $(DOCDIR)\latex\wx\*.con | |
700 | -erase $(DOCDIR)\latex\wx\*.ref | |
701 | cd $(THISDIR) | |
702 | ||
703 | $(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp | |
cc77c86d CE |
704 | cd $(DOCDIR)\html\wx |
705 | -hhc wx.hhp | |
706 | cd $(THISDIR) | |
c09f2879 VZ |
707 | |
708 | ||
709 | $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex | |
710 | cd $(DOCDIR)\latex\porting | |
711 | -mkdir $(DOCDIR)\html\porting | |
712 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html | |
713 | -erase $(DOCDIR)\html\porting\*.con | |
714 | -erase $(DOCDIR)\html\porting\*.ref | |
715 | -erase $(DOCDIR)\latex\porting\*.con | |
716 | -erase $(DOCDIR)\latex\porting\*.ref | |
717 | cd $(THISDIR) | |
718 | ||
719 | $(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex | |
720 | cd $(DOCDIR)\latex\proplist | |
721 | -mkdir $(DOCDIR)\html\proplist | |
722 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html | |
723 | -erase $(DOCDIR)\html\proplist\*.con | |
724 | -erase $(DOCDIR)\html\proplist\*.ref | |
725 | -erase $(DOCDIR)\latex\proplist\*.con | |
726 | -erase $(DOCDIR)\latex\proplist\*.ref | |
727 | cd $(THISDIR) | |
728 | ||
cc77c86d CE |
729 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex |
730 | cd $(WXDIR)\docs\latex\wx | |
c09f2879 VZ |
731 | -latex manual |
732 | -latex manual | |
733 | -makeindx manual | |
734 | -bibtex manual | |
735 | -latex manual | |
736 | -latex manual | |
737 | cd $(THISDIR) | |
738 | ||
cc77c86d CE |
739 | $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex |
740 | cd $(WXDIR)\docs\latex\porting | |
c09f2879 VZ |
741 | -latex porting |
742 | -latex porting | |
743 | -makeindx porting | |
744 | -bibtex porting | |
745 | -latex porting | |
746 | -latex porting | |
747 | cd $(THISDIR) | |
748 | ||
cc77c86d CE |
749 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi |
750 | cd $(WXDIR)\docs\latex\wx | |
c09f2879 VZ |
751 | -dvips32 -o wx.ps manual |
752 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
753 | cd $(THISDIR) | |
754 | ||
cc77c86d CE |
755 | $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi |
756 | cd $(WXDIR)\docs\latex\porting | |
c09f2879 VZ |
757 | -dvips32 -o porting.ps porting |
758 | move porting.ps $(WXDIR)\docs\ps\porting.ps | |
759 | cd $(THISDIR) | |
760 | ||
cc77c86d CE |
761 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex |
762 | cd $(WXDIR)\docs\latex\wx | |
c09f2879 VZ |
763 | -latex referenc |
764 | -latex referenc | |
765 | -makeindx referenc | |
766 | -bibtex referenc | |
767 | -latex referenc | |
768 | -latex referenc | |
769 | cd $(THISDIR) | |
770 | ||
cc77c86d CE |
771 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi |
772 | cd $(WXDIR)\docs\latex\wx | |
c09f2879 VZ |
773 | -dvips32 -o referenc.ps referenc |
774 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
775 | cd $(THISDIR) | |
776 | ||
777 | # In order to force document reprocessing | |
778 | touchmanual: | |
779 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
780 | ||
781 | updatedocs: touchmanual alldocs | |
782 | ||
783 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the | |
784 | # Office StartUp folder, and PDFMaker should be installed. | |
785 | updatepdf: # touchmanual pdfrtf | |
786 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" | |
787 | ||
788 | ||
9be9b974 | 789 | MFTYPE=b32 |
1b9315eb JS |
790 | # Can't use this or we'll have to distribute all tmake files with wxWindows |
791 | # makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
792 | ||
793 | self: | |
cc77c86d CE |
794 | cd $(WXWIN)\distrib\msw\tmake |
795 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
796 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw |