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