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