]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
wxLocale now uses wxEncodingConverter (must be explicitly enabled)
[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 43 }
2131a664
VS
44
45 foreach $file (sort keys %wxHTML) {
46 next if $wxHTML{$file} =~ /\b16\b/;
47
48 $file =~ s/cp?p?$/obj/;
49 $project{"WXHTMLOBJS"} .= "..\\html\\\$D\\" . $file . " "
50 }
51
f2071dda 52#$}
f2071dda
VZ
53# This file was automatically generated by tmake at #$ Now()
54# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T!
55
56# File: makefile.vc
57# Author: Julian Smart
58# Created: 1997
59# Updated:
60# Copyright: (c) 1997, Julian Smart
61#
62# "%W% %G%"
63#
64# Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
65# Arguments:
66#
67# FINAL=1 argument to nmake to build version with no debugging info.
68# dll builds a library (wxdll.lib) suitable for creating DLLs
69#
70!include <..\makevc.env>
71
72THISDIR=$(WXWIN)\src\msw
73
74!if "$(WXMAKINGDLL)" == "1"
75LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
76DUMMYOBJ=$D\dummydll.obj
77!else
78LIBTARGET=$(WXLIB)
79DUMMYOBJ=$D\dummy.obj
80!endif
81
82# Please set these according to the settings in setup.h, so we can include
83# the appropriate libraries in wx.lib
84
85# This one overrides the others, to be consistent with the settings in setup.h
86MINIMAL_WXWINDOWS_SETUP=0
87
88PERIPH_LIBS=
89PERIPH_TARGET=
90PERIPH_CLEAN_TARGET=
91
92# These are absolute paths, so that the compiler
93# generates correct __FILE__ symbols for debugging.
94# Otherwise you don't be able to double-click on a memory
95# error to load that file.
96GENDIR=$(WXDIR)\src\generic
97COMMDIR=$(WXDIR)\src\common
98OLEDIR=ole
99MSWDIR=$(WXDIR)\src\msw
100DOCDIR = $(WXDIR)\docs
101HTMLDIR = $(WXDIR)\src\html
102
103{..\generic}.cpp{..\generic\$D}.obj:
104 cl @<<
105$(CPPFLAGS) /Fo$@ /c /Tp $<
106<<
107
108{..\common}.cpp{..\common\$D}.obj:
109 cl @<<
110$(CPPFLAGS) /Fo$@ /c /Tp $<
111<<
112
9b73db3c
VZ
113{..\common}.c{..\common\$D}.obj:
114 cl @<<
cc9efb9b 115$(CPPFLAGS2) /Fo$@ /c /Tc $<
9b73db3c
VZ
116<<
117
f2071dda
VZ
118{..\msw}.cpp{..\msw\$D}.obj:
119 cl @<<
120$(CPPFLAGS) /Fo$@ /c /Tp $<
121<<
122
e6a5dc94
RD
123{..\msw}.c{..\msw\$D}.obj:
124 cl @<<
125$(CPPFLAGS2) /Fo$@ /c /Tc $<
126<<
127
f2071dda
VZ
128{..\msw\ole}.cpp{..\msw\ole\$D}.obj:
129 cl @<<
130$(CPPFLAGS) /Fo$@ /c /Tp $<
131<<
132
133{..\html}.cpp{..\html\$D}.obj:
134 cl @<<
135$(CPPFLAGS) /Fo$@ /c /Tp $<
136<<
137
138GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
139
140# These are generic things that don't need to be compiled on MSW,
141# but sometimes it's useful to do so for testing purposes.
142NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
143
144COMMONOBJS = \
145 ..\common\$D\y_tab.obj \
146 #$ ExpandList("WXCOMMONOBJS");
147
148MSWOBJS = #$ ExpandList("WXMSWOBJS");
149
2131a664
VS
150HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
151
f2071dda
VZ
152
153# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
154# Add $(HTMLOBJS) if wanting wxHTML classes
e6a5dc94 155OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
f2071dda
VZ
156
157# Normal, static library
5ea6dbbf 158all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
f2071dda
VZ
159
160dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
161
162
163test: $(MSWDIR)\$D\wave.obj
164test2: ..\common\Debug\config.obj
165
166$D:
167 mkdir $D
168
169$(COMMDIR)\$D:
170 mkdir $(COMMDIR)\$D
171
172$(MSWDIR)\$D:
173 mkdir $(MSWDIR)\$D
174
175$(GENDIR)\$D:
176 mkdir $(GENDIR)\$D
177
178$(OLEDIR)\$D:
179 mkdir $(OLEDIR)\$D
180
181$(HTMLDIR)\$D:
182 mkdir $(HTMLDIR)\$D
183
184# wxWindows library as DLL
185dll:
186 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
187
188cleandll:
189 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
190
191# wxWindows + app as DLL. Only affects main.cpp.
192dllapp:
193 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
194
195# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
196dllnp:
197 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
198
199# Use this to make dummy.obj and generate a PCH.
200# You might use the dll target, then the pch target, in order to
201# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
202#
203# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
204# are associated with wx.lib. When using a DLL version of wxWindows, however,
205# the DLL is compiled without a PCH, so you only need it for compiling the app.
206# In fact headers are compiled differently depending on whether a DLL is being made
207# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
208# in each case) so you couldn't use the same PCH.
209pch:
210 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
211
212pch1: dirs $(DUMMYOBJ)
213 echo $(DUMMYOBJ)
214
215!if "$(WXMAKINGDLL)" != "1"
216
217### Static library
218
219$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
220 -erase $(LIBTARGET)
221 $(implib) @<<
222-out:$@
223-machine:$(CPU)
224$(OBJECTS) $(PERIPH_LIBS)
225<<
226
227!else
228
229### Update the import library
230
231$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
232 $(implib) @<<
233 -machine:$(CPU)
234 -def:wx.def
235 $(DUMMYOBJ) $(OBJECTS)
236 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
237<<
238
239# Update the dynamic link library
a9221a95 240$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
241 $(link) @<<
242 $(LINKFLAGS)
243 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
5ea6dbbf 244 $(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 $(WXDIR)\lib\tiff.lib
f2071dda
VZ
245<<
246
247!endif
248
249
250########################################################
251# Windows-specific objects
252
253$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
254 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
255
256$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
257 cl @<<
258$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
259<<
260
261# If taking wxWindows from CVS, setup.h doesn't exist yet.
262# Actually the 'if not exist setup.h' test doesn't work
263# (copies the file anyway)
264# we'll have to comment this rule out.
265
266# $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
267# cd "$(WXDIR)"\include\wx\msw
268# if not exist setup.h copy setup0.h setup.h
269# cd "$(WXDIR)"\src\msw
270
271..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
272 cl @<<
273$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
274<<
275
276..\common\y_tab.c: ..\common\dosyacc.c
277 copy "..\common"\dosyacc.c "..\common"\y_tab.c
278
279..\common\lex_yy.c: ..\common\doslex.c
280 copy "..\common"\doslex.c "..\common"\lex_yy.c
281
282$(OBJECTS): $(WXDIR)/include/wx/setup.h
283
284..\common\$D\unzip.obj: ..\common\unzip.c
285 cl @<<
286$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
287<<
288
289# Peripheral components
290
291png:
292 cd $(WXDIR)\src\png
3156ba6e 293 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
294 cd $(WXDIR)\src\msw
295
296clean_png:
297 cd $(WXDIR)\src\png
298 nmake -f makefile.vc clean
299 cd $(WXDIR)\src\msw
300
301zlib:
302 cd $(WXDIR)\src\zlib
3156ba6e 303 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
304 cd $(WXDIR)\src\msw
305
306clean_zlib:
307 cd $(WXDIR)\src\zlib
308 nmake -f makefile.vc clean
309 cd $(WXDIR)\src\msw
310
311jpeg:
312 cd $(WXDIR)\src\jpeg
3156ba6e 313 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
314 cd $(WXDIR)\src\msw
315
316clean_jpeg:
317 cd $(WXDIR)\src\jpeg
318 nmake -f makefile.vc clean
319 cd $(WXDIR)\src\msw
320
5ea6dbbf
RD
321tiff:
322 cd $(WXDIR)\src\tiff
323 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
324 cd $(WXDIR)\src\msw
325
326clean_tiff:
327 cd $(WXDIR)\src\tiff
328 nmake -f makefile.vc clean
329 cd $(WXDIR)\src\msw
330
f2071dda
VZ
331xpm:
332 cd $(WXDIR)\src\xpm
3156ba6e 333 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
334 cd $(WXDIR)\src\msw
335
336clean_xpm:
337 cd $(WXDIR)\src\xpm
338 nmake -f makefile.vc clean
339 cd $(WXDIR)\src\msw
340
341rcparser:
342 cd $(WXDIR)\utils\rcparser\src
343 nmake -f makefile.vc FINAL=$(FINAL)
344 cd $(WXDIR)\src\msw
345
5ea6dbbf 346clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
f2071dda
VZ
347 -erase $(LIBTARGET)
348 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
ccf0b1d7
RD
349 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
350 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
351 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
352 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
353 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
f2071dda
VZ
354 -erase *.pdb
355 -erase *.sbr
356 -erase $(WXLIBNAME).pch
357 -erase $(GENDIR)\$D\*.obj
358 -erase $(GENDIR)\$D\*.pdb
359 -erase $(GENDIR)\$D\*.sbr
360 -erase $(COMMDIR)\$D\*.obj
361 -erase $(COMMDIR)\$D\*.pdb
362 -erase $(COMMDIR)\$D\*.sbr
363 -erase $(COMMDIR)\\y_tab.c
364 -erase $(COMMDIR)\lex_yy.c
365 -erase $(MSWDIR)\$D\*.obj
366 -erase $(MSWDIR)\$D\*.sbr
367 -erase $(MSWDIR)\$D\*.pdb
368 -erase $(OLEDIR)\$D\*.obj
369 -erase $(OLEDIR)\$D\*.sbr
370 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
371 -erase $(HTMLDIR)\$D\*.obj
372 -erase $(HTMLDIR)\$D\*.sbr
373 -erase $(HTMLDIR)\$D\*.pdb
f2071dda
VZ
374 -rmdir $(D)
375 -rmdir ole\$(D)
376 -rmdir ..\generic\$(D)
377 -rmdir ..\common\$(D)
d66d9d5b 378 -rmdir ..\html\$(D)
f2071dda
VZ
379
380cleanall: clean
381
382# Making documents
383docs: allhlp allhtml allpdfrtf
384alldocs: docs
1a3aa77f 385hlp: wxhlp
f2071dda 386wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
387refhlp: $(DOCDIR)/winhelp/techref.hlp
388rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 389pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 390refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 391html: wxhtml
f2071dda
VZ
392wxhtml: $(DOCDIR)\html\wx\wx.htm
393htmlhelp: $(DOCDIR)\html\wx\wx.chm
f2071dda
VZ
394ps: wxps referencps
395wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
396referencps: $(WXDIR)\docs\ps\referenc.ps
397
1a3aa77f 398allhlp: wxhlp
f2071dda
VZ
399 cd $(WXDIR)\utils\dialoged\src
400 nmake -f makefile.vc hlp
401 cd $(THISDIR)
402
403# cd $(WXDIR)\utils\wxhelp\src
404# nmake -f makefile.vc hlp
405# cd $(WXDIR)\utils\tex2rtf\src
406# nmake -f makefile.vc hlp
407# cd $(WXDIR)\utils\wxgraph\src
408# nmake -f makefile.vc hlp
409# cd $(WXDIR)\utils\wxchart\src
410# nmake -f makefile.vc hlp
411# cd $(WXDIR)\utils\wxtree\src
412# nmake -f makefile.vc hlp
413# cd $(WXDIR)\utils\wxbuild\src
414# nmake -f makefile.vc hlp
415# cd $(WXDIR)\utils\wxgrid\src
416# nmake -f makefile.vc hlp
417
1a3aa77f 418allhtml: wxhtml
f2071dda
VZ
419 cd $(WXDIR)\utils\dialoged\src
420 nmake -f makefile.vc html
421 cd $(THISDIR)
422
423# nmake -f makefile.vc html
424# cd $(WXDIR)\utils\dialoged\src
425# nmake -f makefile.vc html
426# cd $(WXDIR)\utils\hytext\src
427# nmake -f makefile.vc html
428# cd $(WXDIR)\utils\wxhelp\src
429# nmake -f makefile.vc html
430# cd $(WXDIR)\utils\tex2rtf\src
431# nmake -f makefile.vc html
432# cd $(WXDIR)\utils\wxgraph\src
433# nmake -f makefile.vc html
434# cd $(WXDIR)\utils\wxchart\src
435# nmake -f makefile.vc html
436# cd $(WXDIR)\utils\wxtree\src
437# nmake -f makefile.vc html
438
1a3aa77f 439allps: wxps referencps
f2071dda
VZ
440 cd $(WXDIR)\utils\dialoged\src
441 nmake -f makefile.vc ps
442 cd $(THISDIR)
443
1a3aa77f 444allpdfrtf: pdfrtf
f2071dda
VZ
445 cd $(WXDIR)\utils\dialoged\src
446 nmake -f makefile.vc pdfrtf
447 cd $(THISDIR)
448
449# cd $(WXDIR)\utils\wxhelp\src
450# nmake -f makefile.vc ps
451# cd $(WXDIR)\utils\tex2rtf\src
452# nmake -f makefile.vc ps
453# cd $(WXDIR)\utils\wxgraph\src
454# nmake -f makefile.vc ps
455# cd $(WXDIR)\utils\wxchart\src
456# nmake -f makefile.vc ps
457# cd $(WXDIR)\utils\wxtree\src
458# nmake -f makefile.vc ps
459# cd $(THISDIR)
460
461$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
462 cd $(DOCDIR)/latex/wx
463 -erase wx.ph
464 hc wx
465 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
466 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
467 cd $(THISDIR)
468
f2071dda
VZ
469$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
470 cd $(DOCDIR)/latex/techref
471 -erase techref.ph
472 hc techref
473 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
474 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
475 cd $(THISDIR)
476
477$(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
478 cd $(DOCDIR)\latex\wx
479 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
480 cd $(THISDIR)
481
f2071dda
VZ
482$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
483 cd $(DOCDIR)\latex\techref
484 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
485 cd $(THISDIR)
486
487$(DOCDIR)/pdf/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
79bc2382
PA
489 -copy *.wmf $(DOCDIR)\pdf
490 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
491 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
492 cd $(THISDIR)
493
f2071dda
VZ
494$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
495 cd $(DOCDIR)\latex\techref
79bc2382
PA
496 -copy *.wmf $(DOCDIR)\pdf
497 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
498 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
499 cd $(THISDIR)
500
501$(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
502 cd $(DOCDIR)\latex\wx
503 -mkdir $(DOCDIR)\html\wx
504 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
505 -erase $(DOCDIR)\html\wx\*.con
506 -erase $(DOCDIR)\html\wx\*.ref
507 -erase $(DOCDIR)\latex\wx\*.con
508 -erase $(DOCDIR)\latex\wx\*.ref
509 cd $(THISDIR)
510
511$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
512 cd $(DOCDIR)\html\wx
513 -hhc wx.hhp
514 cd $(THISDIR)
515
f2071dda
VZ
516$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
517 cd $(WXDIR)\docs\latex\wx
518 -latex manual
519 -latex manual
520 -makeindx manual
521 -bibtex manual
522 -latex manual
523 -latex manual
524 cd $(THISDIR)
525
f2071dda
VZ
526$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
527 cd $(WXDIR)\docs\latex\wx
528 -dvips32 -o wx.ps manual
529 move wx.ps $(WXDIR)\docs\ps\wx.ps
530 cd $(THISDIR)
531
f2071dda
VZ
532$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
533 cd $(WXDIR)\docs\latex\wx
534 -latex referenc
535 -latex referenc
536 -makeindx referenc
537 -bibtex referenc
538 -latex referenc
539 -latex referenc
540 cd $(THISDIR)
541
542$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
543 cd $(WXDIR)\docs\latex\wx
544 -dvips32 -o referenc.ps referenc
545 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
546 cd $(THISDIR)
547
548# In order to force document reprocessing
549touchmanual:
550 -touch $(WXDIR)\docs\latex\wx\manual.tex
551
552updatedocs: touchmanual alldocs
553
554# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
555# Office StartUp folder, and PDFMaker should be installed.
556updatepdf: # touchmanual pdfrtf
557 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
558
9be9b974
RD
559
560MFTYPE=vc
561makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
562 cd $(WXWIN)\distrib\msw\tmake
563 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
564 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
565