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