]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
added a simple makefile to regenerate all other makefiles with tmake
[wxWidgets.git] / distrib / msw / tmake / vc.t
CommitLineData
f2071dda
VZ
1#!#############################################################################
2#! File: vc.t
3#! Purpose: tmake template file from which makefile.vc is generated by running
4#! tmake -t vc wxwin.pro -o makefile.vc
5#! Author: Vadim Zeitlin
6#! Created: 14.07.99
7#! Version: $Id$
8#!#############################################################################
f2071dda
VZ
9#${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 my $tag = "";
17 if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
18 $tag = "WXNONESSENTIALOBJS";
19 }
20 else {
21 $tag = "WXGENERICOBJS";
22 }
23
24 $file =~ s/cp?p?$/obj/;
25 $project{$tag} .= "..\\generic\\\$D\\" . $file . " "
26 }
27
28 foreach $file (sort keys %wxCommon) {
29 next if $wxCommon{$file} =~ /\b16\b/;
30
31 $file =~ s/cp?p?$/obj/;
32 $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " "
33 }
34
35 foreach $file (sort keys %wxMSW) {
36 next if $wxMSW{$file} =~ /\b16\b/;
37
6a008b33
VZ
38 #! OLE files live in a subdir
39 $project{"WXMSWOBJS"} .= '..\msw\\';
40 $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/;
f2071dda 41 $file =~ s/cp?p?$/obj/;
6a008b33 42 $project{"WXMSWOBJS"} .= '$D\\' . $file . " ";
f2071dda
VZ
43 }
44#$}
f2071dda
VZ
45# This file was automatically generated by tmake at #$ Now()
46# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T!
47
48# File: makefile.vc
49# Author: Julian Smart
50# Created: 1997
51# Updated:
52# Copyright: (c) 1997, Julian Smart
53#
54# "%W% %G%"
55#
56# Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
57# Arguments:
58#
59# FINAL=1 argument to nmake to build version with no debugging info.
60# dll builds a library (wxdll.lib) suitable for creating DLLs
61#
62!include <..\makevc.env>
63
64THISDIR=$(WXWIN)\src\msw
65
66!if "$(WXMAKINGDLL)" == "1"
67LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
68DUMMYOBJ=$D\dummydll.obj
69!else
70LIBTARGET=$(WXLIB)
71DUMMYOBJ=$D\dummy.obj
72!endif
73
74# Please set these according to the settings in setup.h, so we can include
75# the appropriate libraries in wx.lib
76
77# This one overrides the others, to be consistent with the settings in setup.h
78MINIMAL_WXWINDOWS_SETUP=0
79
80PERIPH_LIBS=
81PERIPH_TARGET=
82PERIPH_CLEAN_TARGET=
83
84# These are absolute paths, so that the compiler
85# generates correct __FILE__ symbols for debugging.
86# Otherwise you don't be able to double-click on a memory
87# error to load that file.
88GENDIR=$(WXDIR)\src\generic
89COMMDIR=$(WXDIR)\src\common
90OLEDIR=ole
91MSWDIR=$(WXDIR)\src\msw
92DOCDIR = $(WXDIR)\docs
93HTMLDIR = $(WXDIR)\src\html
94
95{..\generic}.cpp{..\generic\$D}.obj:
96 cl @<<
97$(CPPFLAGS) /Fo$@ /c /Tp $<
98<<
99
100{..\common}.cpp{..\common\$D}.obj:
101 cl @<<
102$(CPPFLAGS) /Fo$@ /c /Tp $<
103<<
104
9b73db3c
VZ
105{..\common}.c{..\common\$D}.obj:
106 cl @<<
cc9efb9b 107$(CPPFLAGS2) /Fo$@ /c /Tc $<
9b73db3c
VZ
108<<
109
f2071dda
VZ
110{..\msw}.cpp{..\msw\$D}.obj:
111 cl @<<
112$(CPPFLAGS) /Fo$@ /c /Tp $<
113<<
114
115{..\msw\ole}.cpp{..\msw\ole\$D}.obj:
116 cl @<<
117$(CPPFLAGS) /Fo$@ /c /Tp $<
118<<
119
120{..\html}.cpp{..\html\$D}.obj:
121 cl @<<
122$(CPPFLAGS) /Fo$@ /c /Tp $<
123<<
124
125GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
126
127# These are generic things that don't need to be compiled on MSW,
128# but sometimes it's useful to do so for testing purposes.
129NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
130
131COMMONOBJS = \
132 ..\common\$D\y_tab.obj \
133 #$ ExpandList("WXCOMMONOBJS");
134
135MSWOBJS = #$ ExpandList("WXMSWOBJS");
136
137HTMLOBJS = \
138 ..\html\$D\htmlcell.obj \
139 ..\html\$D\htmlfilter.obj \
140 ..\html\$D\htmlhelp.obj \
141 ..\html\$D\htmlhelp_io.obj \
142 ..\html\$D\htmlparser.obj \
143 ..\html\$D\htmltag.obj \
144 ..\html\$D\htmlwin.obj \
145 ..\html\$D\htmlwinparser.obj \
146 ..\html\$D\mod_fonts.obj \
147 ..\html\$D\mod_hline.obj \
148 ..\html\$D\mod_image.obj \
149 ..\html\$D\mod_layout.obj \
150 ..\html\$D\mod_links.obj \
151 ..\html\$D\mod_list.obj \
152 ..\html\$D\mod_pre.obj \
153 ..\html\$D\mod_tables.obj \
154 ..\html\$D\search.obj
155
156# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
157# Add $(HTMLOBJS) if wanting wxHTML classes
9be9b974 158OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
f2071dda
VZ
159
160# Normal, static library
161all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg $(LIBTARGET)
162
163dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
164
165
166test: $(MSWDIR)\$D\wave.obj
167test2: ..\common\Debug\config.obj
168
169$D:
170 mkdir $D
171
172$(COMMDIR)\$D:
173 mkdir $(COMMDIR)\$D
174
175$(MSWDIR)\$D:
176 mkdir $(MSWDIR)\$D
177
178$(GENDIR)\$D:
179 mkdir $(GENDIR)\$D
180
181$(OLEDIR)\$D:
182 mkdir $(OLEDIR)\$D
183
184$(HTMLDIR)\$D:
185 mkdir $(HTMLDIR)\$D
186
187# wxWindows library as DLL
188dll:
189 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
190
191cleandll:
192 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
193
194# wxWindows + app as DLL. Only affects main.cpp.
195dllapp:
196 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
197
198# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
199dllnp:
200 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
201
202# Use this to make dummy.obj and generate a PCH.
203# You might use the dll target, then the pch target, in order to
204# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
205#
206# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
207# are associated with wx.lib. When using a DLL version of wxWindows, however,
208# the DLL is compiled without a PCH, so you only need it for compiling the app.
209# In fact headers are compiled differently depending on whether a DLL is being made
210# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
211# in each case) so you couldn't use the same PCH.
212pch:
213 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
214
215pch1: dirs $(DUMMYOBJ)
216 echo $(DUMMYOBJ)
217
218!if "$(WXMAKINGDLL)" != "1"
219
220### Static library
221
222$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
223 -erase $(LIBTARGET)
224 $(implib) @<<
225-out:$@
226-machine:$(CPU)
227$(OBJECTS) $(PERIPH_LIBS)
228<<
229
230!else
231
232### Update the import library
233
234$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
235 $(implib) @<<
236 -machine:$(CPU)
237 -def:wx.def
238 $(DUMMYOBJ) $(OBJECTS)
239 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
240<<
241
242# Update the dynamic link library
243$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib
244 $(link) @<<
245 $(LINKFLAGS)
246 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
247 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\xpm.lib $(WXDIR)\lib\jpeg.lib
248<<
249
250!endif
251
252
253########################################################
254# Windows-specific objects
255
256$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
257 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
258
259$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
260 cl @<<
261$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
262<<
263
264# If taking wxWindows from CVS, setup.h doesn't exist yet.
265# Actually the 'if not exist setup.h' test doesn't work
266# (copies the file anyway)
267# we'll have to comment this rule out.
268
269# $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
270# cd "$(WXDIR)"\include\wx\msw
271# if not exist setup.h copy setup0.h setup.h
272# cd "$(WXDIR)"\src\msw
273
274..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
275 cl @<<
276$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
277<<
278
279..\common\y_tab.c: ..\common\dosyacc.c
280 copy "..\common"\dosyacc.c "..\common"\y_tab.c
281
282..\common\lex_yy.c: ..\common\doslex.c
283 copy "..\common"\doslex.c "..\common"\lex_yy.c
284
285$(OBJECTS): $(WXDIR)/include/wx/setup.h
286
287..\common\$D\unzip.obj: ..\common\unzip.c
288 cl @<<
289$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
290<<
291
292# Peripheral components
293
294png:
295 cd $(WXDIR)\src\png
296 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
297 cd $(WXDIR)\src\msw
298
299clean_png:
300 cd $(WXDIR)\src\png
301 nmake -f makefile.vc clean
302 cd $(WXDIR)\src\msw
303
304zlib:
305 cd $(WXDIR)\src\zlib
306 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
307 cd $(WXDIR)\src\msw
308
309clean_zlib:
310 cd $(WXDIR)\src\zlib
311 nmake -f makefile.vc clean
312 cd $(WXDIR)\src\msw
313
314jpeg:
315 cd $(WXDIR)\src\jpeg
316 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) all
317 cd $(WXDIR)\src\msw
318
319clean_jpeg:
320 cd $(WXDIR)\src\jpeg
321 nmake -f makefile.vc clean
322 cd $(WXDIR)\src\msw
323
324xpm:
325 cd $(WXDIR)\src\xpm
326 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
327 cd $(WXDIR)\src\msw
328
329clean_xpm:
330 cd $(WXDIR)\src\xpm
331 nmake -f makefile.vc clean
332 cd $(WXDIR)\src\msw
333
334rcparser:
335 cd $(WXDIR)\utils\rcparser\src
336 nmake -f makefile.vc FINAL=$(FINAL)
337 cd $(WXDIR)\src\msw
338
339clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm
340 -erase $(LIBTARGET)
341 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
ccf0b1d7
RD
342 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
343 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
344 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
345 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
346 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
f2071dda
VZ
347 -erase *.pdb
348 -erase *.sbr
349 -erase $(WXLIBNAME).pch
350 -erase $(GENDIR)\$D\*.obj
351 -erase $(GENDIR)\$D\*.pdb
352 -erase $(GENDIR)\$D\*.sbr
353 -erase $(COMMDIR)\$D\*.obj
354 -erase $(COMMDIR)\$D\*.pdb
355 -erase $(COMMDIR)\$D\*.sbr
356 -erase $(COMMDIR)\\y_tab.c
357 -erase $(COMMDIR)\lex_yy.c
358 -erase $(MSWDIR)\$D\*.obj
359 -erase $(MSWDIR)\$D\*.sbr
360 -erase $(MSWDIR)\$D\*.pdb
361 -erase $(OLEDIR)\$D\*.obj
362 -erase $(OLEDIR)\$D\*.sbr
363 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
364 -erase $(HTMLDIR)\$D\*.obj
365 -erase $(HTMLDIR)\$D\*.sbr
366 -erase $(HTMLDIR)\$D\*.pdb
f2071dda
VZ
367 -rmdir $(D)
368 -rmdir ole\$(D)
369 -rmdir ..\generic\$(D)
370 -rmdir ..\common\$(D)
d66d9d5b 371 -rmdir ..\html\$(D)
f2071dda
VZ
372
373cleanall: clean
374
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 nmake -f makefile.vc hlp
405 cd $(THISDIR)
406
407# cd $(WXDIR)\utils\wxhelp\src
408# nmake -f makefile.vc hlp
409# cd $(WXDIR)\utils\tex2rtf\src
410# nmake -f makefile.vc hlp
411# cd $(WXDIR)\utils\wxgraph\src
412# nmake -f makefile.vc hlp
413# cd $(WXDIR)\utils\wxchart\src
414# nmake -f makefile.vc hlp
415# cd $(WXDIR)\utils\wxtree\src
416# nmake -f makefile.vc hlp
417# cd $(WXDIR)\utils\wxbuild\src
418# nmake -f makefile.vc hlp
419# cd $(WXDIR)\utils\wxgrid\src
420# nmake -f makefile.vc hlp
421
422allhtml: wxhtml portinghtml prophtml
423 cd $(WXDIR)\utils\dialoged\src
424 nmake -f makefile.vc html
425 cd $(THISDIR)
426
427# nmake -f makefile.vc html
428# cd $(WXDIR)\utils\dialoged\src
429# nmake -f makefile.vc html
430# cd $(WXDIR)\utils\hytext\src
431# nmake -f makefile.vc html
432# cd $(WXDIR)\utils\wxhelp\src
433# nmake -f makefile.vc html
434# cd $(WXDIR)\utils\tex2rtf\src
435# nmake -f makefile.vc html
436# cd $(WXDIR)\utils\wxgraph\src
437# nmake -f makefile.vc html
438# cd $(WXDIR)\utils\wxchart\src
439# nmake -f makefile.vc html
440# cd $(WXDIR)\utils\wxtree\src
441# nmake -f makefile.vc html
442
443allps: wxps referencps portingps propps
444 cd $(WXDIR)\utils\dialoged\src
445 nmake -f makefile.vc ps
446 cd $(THISDIR)
447
448allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
449 cd $(WXDIR)\utils\dialoged\src
450 nmake -f makefile.vc pdfrtf
451 cd $(THISDIR)
452
453# cd $(WXDIR)\utils\wxhelp\src
454# nmake -f makefile.vc ps
455# cd $(WXDIR)\utils\tex2rtf\src
456# nmake -f makefile.vc ps
457# cd $(WXDIR)\utils\wxgraph\src
458# nmake -f makefile.vc ps
459# cd $(WXDIR)\utils\wxchart\src
460# nmake -f makefile.vc ps
461# cd $(WXDIR)\utils\wxtree\src
462# nmake -f makefile.vc 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 *.bmp *.wmf $(DOCDIR)\pdf
520 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
521 cd $(THISDIR)
522
523$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
524 cd $(DOCDIR)\latex\porting
525 -copy *.bmp *.wmf $(DOCDIR)\pdf
526 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
527 cd $(THISDIR)
528
529$(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
530 cd $(DOCDIR)\latex\proplist
531 -copy *.bmp *.wmf $(DOCDIR)\pdf
532 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
533 cd $(THISDIR)
534
535$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
536 cd $(DOCDIR)\latex\techref
537 -copy *.bmp *.wmf $(DOCDIR)\pdf
538 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
539 cd $(THISDIR)
540
541$(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
542 cd $(DOCDIR)\latex\wx
543 -mkdir $(DOCDIR)\html\wx
544 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
545 -erase $(DOCDIR)\html\wx\*.con
546 -erase $(DOCDIR)\html\wx\*.ref
547 -erase $(DOCDIR)\latex\wx\*.con
548 -erase $(DOCDIR)\latex\wx\*.ref
549 cd $(THISDIR)
550
551$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
552 cd $(DOCDIR)\html\wx
553 -hhc wx.hhp
554 cd $(THISDIR)
555
556
557$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
558 cd $(DOCDIR)\latex\porting
559 -mkdir $(DOCDIR)\html\porting
560 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
561 -erase $(DOCDIR)\html\porting\*.con
562 -erase $(DOCDIR)\html\porting\*.ref
563 -erase $(DOCDIR)\latex\porting\*.con
564 -erase $(DOCDIR)\latex\porting\*.ref
565 cd $(THISDIR)
566
567$(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
568 cd $(DOCDIR)\latex\proplist
569 -mkdir $(DOCDIR)\html\proplist
570 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
571 -erase $(DOCDIR)\html\proplist\*.con
572 -erase $(DOCDIR)\html\proplist\*.ref
573 -erase $(DOCDIR)\latex\proplist\*.con
574 -erase $(DOCDIR)\latex\proplist\*.ref
575 cd $(THISDIR)
576
577$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
578 cd $(WXDIR)\docs\latex\wx
579 -latex manual
580 -latex manual
581 -makeindx manual
582 -bibtex manual
583 -latex manual
584 -latex manual
585 cd $(THISDIR)
586
587$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
588 cd $(WXDIR)\docs\latex\porting
589 -latex porting
590 -latex porting
591 -makeindx porting
592 -bibtex porting
593 -latex porting
594 -latex porting
595 cd $(THISDIR)
596
597$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
598 cd $(WXDIR)\docs\latex\wx
599 -dvips32 -o wx.ps manual
600 move wx.ps $(WXDIR)\docs\ps\wx.ps
601 cd $(THISDIR)
602
603$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
604 cd $(WXDIR)\docs\latex\porting
605 -dvips32 -o porting.ps porting
606 move porting.ps $(WXDIR)\docs\ps\porting.ps
607 cd $(THISDIR)
608
609$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
610 cd $(WXDIR)\docs\latex\wx
611 -latex referenc
612 -latex referenc
613 -makeindx referenc
614 -bibtex referenc
615 -latex referenc
616 -latex referenc
617 cd $(THISDIR)
618
619$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
620 cd $(WXDIR)\docs\latex\wx
621 -dvips32 -o referenc.ps referenc
622 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
623 cd $(THISDIR)
624
625# In order to force document reprocessing
626touchmanual:
627 -touch $(WXDIR)\docs\latex\wx\manual.tex
628
629updatedocs: touchmanual alldocs
630
631# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
632# Office StartUp folder, and PDFMaker should be installed.
633updatepdf: # touchmanual pdfrtf
634 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
635
9be9b974
RD
636
637MFTYPE=vc
638makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
639 cd $(WXWIN)\distrib\msw\tmake
640 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
641 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
642