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