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