]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
applied patch 428783 (fix B32 makefiles)
[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
f2071dda
VZ
82# This one overrides the others, to be consistent with the settings in setup.h
83MINIMAL_WXWINDOWS_SETUP=0
84
85PERIPH_LIBS=
86PERIPH_TARGET=
87PERIPH_CLEAN_TARGET=
88
3ca6a5f0
BP
89# Set to 0 if not using GLCanvas (only affects DLL build)
90USE_GLCANVAS=1
91
f2071dda
VZ
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
9e3cb9ee
JS
102JPEGDIR = $(WXDIR)\src\jpeg
103TIFFDIR = $(WXDIR)\src\tiff
f2071dda
VZ
104
105{..\generic}.cpp{..\generic\$D}.obj:
106 cl @<<
107$(CPPFLAGS) /Fo$@ /c /Tp $<
108<<
109
110{..\common}.cpp{..\common\$D}.obj:
111 cl @<<
112$(CPPFLAGS) /Fo$@ /c /Tp $<
113<<
114
9b73db3c
VZ
115{..\common}.c{..\common\$D}.obj:
116 cl @<<
cc9efb9b 117$(CPPFLAGS2) /Fo$@ /c /Tc $<
9b73db3c
VZ
118<<
119
f2071dda
VZ
120{..\msw}.cpp{..\msw\$D}.obj:
121 cl @<<
122$(CPPFLAGS) /Fo$@ /c /Tp $<
123<<
124
e6a5dc94
RD
125{..\msw}.c{..\msw\$D}.obj:
126 cl @<<
127$(CPPFLAGS2) /Fo$@ /c /Tc $<
128<<
129
f2071dda
VZ
130{..\msw\ole}.cpp{..\msw\ole\$D}.obj:
131 cl @<<
132$(CPPFLAGS) /Fo$@ /c /Tp $<
133<<
134
135{..\html}.cpp{..\html\$D}.obj:
136 cl @<<
137$(CPPFLAGS) /Fo$@ /c /Tp $<
138<<
139
140GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
141
142# These are generic things that don't need to be compiled on MSW,
143# but sometimes it's useful to do so for testing purposes.
144NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
145
146COMMONOBJS = \
147 ..\common\$D\y_tab.obj \
148 #$ ExpandList("WXCOMMONOBJS");
149
150MSWOBJS = #$ ExpandList("WXMSWOBJS");
151
2131a664
VS
152HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
153
f2071dda
VZ
154
155# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
156# Add $(HTMLOBJS) if wanting wxHTML classes
e6a5dc94 157OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
f2071dda
VZ
158
159# Normal, static library
ab85e6cd 160all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff $(LIBTARGET)
f2071dda 161
99a030f5
GT
162setuph:
163 cd $(WXDIR)\include\wx\msw
164 if not exist setup.h copy setup0.h setup.h
165 cd $(WXDIR)\src\msw
f2071dda 166
9e3cb9ee 167dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D $(JPEGDIR)\$D $(TIFFDIR)\$D
f2071dda 168
f2071dda
VZ
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
9e3cb9ee
JS
187$(JPEGDIR)\$D:
188 mkdir $(JPEGDIR)\$D
189
190$(TIFFDIR)\$D:
191 mkdir $(TIFFDIR)\$D
192
f2071dda
VZ
193# wxWindows library as DLL
194dll:
195 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
196
197cleandll:
198 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
199
200# wxWindows + app as DLL. Only affects main.cpp.
201dllapp:
202 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
203
204# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
205dllnp:
206 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
207
208# Use this to make dummy.obj and generate a PCH.
209# You might use the dll target, then the pch target, in order to
210# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
211#
212# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
213# are associated with wx.lib. When using a DLL version of wxWindows, however,
214# the DLL is compiled without a PCH, so you only need it for compiling the app.
215# In fact headers are compiled differently depending on whether a DLL is being made
216# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
217# in each case) so you couldn't use the same PCH.
218pch:
219 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
220
221pch1: dirs $(DUMMYOBJ)
222 echo $(DUMMYOBJ)
223
224!if "$(WXMAKINGDLL)" != "1"
225
226### Static library
227
228$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
229 -erase $(LIBTARGET)
230 $(implib) @<<
231-out:$@
232-machine:$(CPU)
7fee680b 233$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
f2071dda
VZ
234<<
235
236!else
237
238### Update the import library
239
240$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
241 $(implib) @<<
242 -machine:$(CPU)
243 -def:wx.def
244 $(DUMMYOBJ) $(OBJECTS)
245 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
246<<
247
bd53731e
RD
248!if "$(USE_GLCANVAS)" == "1"
249GL_LIBS=opengl32.lib glu32.lib
20a2bdc9 250# GL_LIBS_DELAY=/delayload:opengl32.dll
bd53731e
RD
251!endif
252
f2071dda 253# Update the dynamic link library
a9221a95 254$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
255 $(link) @<<
256 $(LINKFLAGS)
257 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
ab85e6cd 258 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(GL_LIBS) $(WXDIR)\lib\png$(LIBEXT).lib $(WXDIR)\lib\zlib$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib
f6bcfd97
BP
259 delayimp.lib
260 /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll
261 /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll
9e85f5ec 262 /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY)
f2071dda
VZ
263<<
264
265!endif
266
9e85f5ec 267# /delayload:winmm.dll # Removed because it can cause a crash for some people
f2071dda
VZ
268
269########################################################
270# Windows-specific objects
271
272$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
273 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
274
275$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
276 cl @<<
277$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
278<<
279
bf4d9b2b 280# Compile certain files with no optimization (some files cause a
7fee680b
JS
281# compiler crash for buggy versions of VC++, e.g. 4.0).
282# Don't forget to put FINAL=1 on the command line.
bf4d9b2b
JS
283noopt:
284 cl @<<
285$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
286<<
287 cl @<<
288$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
289<<
290 cl @<<
291$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
669f7a11
JS
292<<
293 cl @<<
294$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
bf4d9b2b
JS
295<<
296 cl @<<
297$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
298<<
299 cl @<<
300$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
301<<
302 cl @<<
303$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
304<<
305 cl @<<
306$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
669f7a11
JS
307<<
308 cl @<<
309$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
bf4d9b2b
JS
310<<
311 cl @<<
312$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
313<<
314 cl @<<
315$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
316<<
317 cl @<<
318$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
319<<
320 cl @<<
321$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
322<<
323 cl @<<
324$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
325<<
326 cl @<<
327$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
328<<
329 cl @<<
330$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
331<<
332 cl @<<
333$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
334<<
335 cl @<<
336$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
337<<
338 cl @<<
339$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
340<<
341 cl @<<
342$(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
343<<
344
f2071dda
VZ
345..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
346 cl @<<
347$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
348<<
349
350..\common\y_tab.c: ..\common\dosyacc.c
351 copy "..\common"\dosyacc.c "..\common"\y_tab.c
352
353..\common\lex_yy.c: ..\common\doslex.c
354 copy "..\common"\doslex.c "..\common"\lex_yy.c
355
356$(OBJECTS): $(WXDIR)/include/wx/setup.h
357
358..\common\$D\unzip.obj: ..\common\unzip.c
359 cl @<<
360$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
361<<
362
363# Peripheral components
364
365png:
366 cd $(WXDIR)\src\png
3156ba6e 367 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
368 cd $(WXDIR)\src\msw
369
370clean_png:
371 cd $(WXDIR)\src\png
372 nmake -f makefile.vc clean
373 cd $(WXDIR)\src\msw
374
375zlib:
376 cd $(WXDIR)\src\zlib
3156ba6e 377 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
378 cd $(WXDIR)\src\msw
379
380clean_zlib:
381 cd $(WXDIR)\src\zlib
382 nmake -f makefile.vc clean
383 cd $(WXDIR)\src\msw
384
385jpeg:
386 cd $(WXDIR)\src\jpeg
3156ba6e 387 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
388 cd $(WXDIR)\src\msw
389
390clean_jpeg:
391 cd $(WXDIR)\src\jpeg
392 nmake -f makefile.vc clean
393 cd $(WXDIR)\src\msw
394
5ea6dbbf
RD
395tiff:
396 cd $(WXDIR)\src\tiff
397 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
398 cd $(WXDIR)\src\msw
399
400clean_tiff:
401 cd $(WXDIR)\src\tiff
402 nmake -f makefile.vc clean
403 cd $(WXDIR)\src\msw
404
f2071dda
VZ
405rcparser:
406 cd $(WXDIR)\utils\rcparser\src
407 nmake -f makefile.vc FINAL=$(FINAL)
408 cd $(WXDIR)\src\msw
409
ab85e6cd 410cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff
ccf0b1d7
RD
411 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
412 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
413 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
414 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
415 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
50a5c3f3
RD
416
417
418clean: $(PERIPH_CLEAN_TARGET)
419 -erase $(LIBTARGET)
420 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
f2071dda
VZ
421 -erase *.pdb
422 -erase *.sbr
423 -erase $(WXLIBNAME).pch
424 -erase $(GENDIR)\$D\*.obj
425 -erase $(GENDIR)\$D\*.pdb
426 -erase $(GENDIR)\$D\*.sbr
427 -erase $(COMMDIR)\$D\*.obj
428 -erase $(COMMDIR)\$D\*.pdb
429 -erase $(COMMDIR)\$D\*.sbr
7fee680b 430 -erase $(COMMDIR)\y_tab.c
f2071dda
VZ
431 -erase $(COMMDIR)\lex_yy.c
432 -erase $(MSWDIR)\$D\*.obj
433 -erase $(MSWDIR)\$D\*.sbr
434 -erase $(MSWDIR)\$D\*.pdb
9e3cb9ee 435 -erase $(MSWDIR)\$D\*.pch
f2071dda
VZ
436 -erase $(OLEDIR)\$D\*.obj
437 -erase $(OLEDIR)\$D\*.sbr
438 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
439 -erase $(HTMLDIR)\$D\*.obj
440 -erase $(HTMLDIR)\$D\*.sbr
441 -erase $(HTMLDIR)\$D\*.pdb
9e3cb9ee
JS
442 -erase $(JPEGDIR)\$D\*.obj
443 -erase $(JPEGDIR)\$D\*.sbr
444 -erase $(JPEGDIR)\$D\*.idb
445 -erase $(JPEGDIR)\$D\*.pdb
446 -erase $(TIFFDIR)\$D\*.obj
447 -erase $(TIFFDIR)\$D\*.sbr
448 -erase $(TIFFDIR)\$D\*.pdb
449 -erase $(TIFFDIR)\$D\*.idb
f2071dda 450 -rmdir $(D)
9e3cb9ee
JS
451 -rmdir $(GENDIR)\$(D)
452 -rmdir $(COMMDIR)\$(D)
453 -rmdir $(MSWDIR)\$(D)
454 -rmdir $(OLEDIR)\$(D)
455 -rmdir $(HTMLDIR)\$(D)
456 -rmdir $(JPEGDIR)\$(D)
457 -rmdir $(TIFFDIR)\$(D)
f2071dda 458
f2071dda 459# Making documents
ab85e6cd 460docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
f2071dda 461alldocs: docs
1a3aa77f 462hlp: wxhlp
f2071dda 463wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
464refhlp: $(DOCDIR)/winhelp/techref.hlp
465rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 466pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 467refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 468html: wxhtml
f6bcfd97 469htb: $(DOCDIR)\htb\wx.htb
f2071dda 470wxhtml: $(DOCDIR)\html\wx\wx.htm
f6bcfd97 471htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
f2071dda
VZ
472ps: wxps referencps
473wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
474referencps: $(WXDIR)\docs\ps\referenc.ps
475
1a3aa77f 476allhlp: wxhlp
f2071dda
VZ
477 cd $(WXDIR)\utils\dialoged\src
478 nmake -f makefile.vc hlp
ab85e6cd
JS
479 cd $(WXDIR)\utils\tex2rtf\src
480 nmake -f makefile.vc hlp
f2071dda
VZ
481 cd $(THISDIR)
482
1a3aa77f 483allhtml: wxhtml
f2071dda
VZ
484 cd $(WXDIR)\utils\dialoged\src
485 nmake -f makefile.vc html
ab85e6cd
JS
486 cd $(WXDIR)\utils\tex2rtf\src
487 nmake -f makefile.vc html
488 cd $(THISDIR)
489
490allhtmlhelp: htmlhelp
491 cd $(WXDIR)\utils\dialoged\src
492 nmake -f makefile.vc htmlhelp
493 cd $(WXDIR)\utils\tex2rtf\src
494 nmake -f makefile.vc htmlhelp
495 cd $(THISDIR)
496
497allhtb: htb
498 cd $(WXDIR)\utils\dialoged\src
499 nmake -f makefile.vc htb
500 cd $(WXDIR)\utils\tex2rtf\src
501 nmake -f makefile.vc htb
f2071dda
VZ
502 cd $(THISDIR)
503
1a3aa77f 504allps: wxps referencps
f2071dda
VZ
505 cd $(WXDIR)\utils\dialoged\src
506 nmake -f makefile.vc ps
ab85e6cd
JS
507 cd $(WXDIR)\utils\tex2rtf\src
508 nmake -f makefile.vc ps
f2071dda
VZ
509 cd $(THISDIR)
510
1a3aa77f 511allpdfrtf: pdfrtf
f2071dda
VZ
512 cd $(WXDIR)\utils\dialoged\src
513 nmake -f makefile.vc pdfrtf
ab85e6cd
JS
514 cd $(WXDIR)\utils\tex2rtf\src
515 nmake -f makefile.vc pdfrtf
f2071dda
VZ
516 cd $(THISDIR)
517
f2071dda
VZ
518$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
519 cd $(DOCDIR)/latex/wx
520 -erase wx.ph
521 hc wx
f485492a
JS
522 -erase $(DOCDIR)\winhelp\wx.hlp
523 -erase $(DOCDIR)\winhelp\wx.cnt
f2071dda
VZ
524 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
525 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
526 cd $(THISDIR)
527
f2071dda
VZ
528$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
529 cd $(DOCDIR)/latex/techref
530 -erase techref.ph
531 hc techref
532 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
533 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
534 cd $(THISDIR)
535
536$(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
537 cd $(DOCDIR)\latex\wx
538 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
539 cd $(THISDIR)
540
f2071dda
VZ
541$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
542 cd $(DOCDIR)\latex\techref
543 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
544 cd $(THISDIR)
545
546$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
547 cd $(DOCDIR)\latex\wx
79bc2382
PA
548 -copy *.wmf $(DOCDIR)\pdf
549 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
550 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
551 cd $(THISDIR)
552
f2071dda
VZ
553$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
554 cd $(DOCDIR)\latex\techref
79bc2382
PA
555 -copy *.wmf $(DOCDIR)\pdf
556 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
557 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
558 cd $(THISDIR)
559
560$(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
561 cd $(DOCDIR)\latex\wx
562 -mkdir $(DOCDIR)\html\wx
f6bcfd97 563 copy *.gif $(DOCDIR)\html\wx
f2071dda
VZ
564 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
565 -erase $(DOCDIR)\html\wx\*.con
566 -erase $(DOCDIR)\html\wx\*.ref
567 -erase $(DOCDIR)\latex\wx\*.con
568 -erase $(DOCDIR)\latex\wx\*.ref
569 cd $(THISDIR)
570
f6bcfd97 571$(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
f2071dda
VZ
572 cd $(DOCDIR)\html\wx
573 -hhc wx.hhp
f6bcfd97 574 -mkdir ..\..\htmlhelp
f485492a 575 -erase $(DOCDIR)\htmlhelp\wx.chm
f6bcfd97 576 move wx.chm ..\..\htmlhelp
f2071dda
VZ
577 cd $(THISDIR)
578
f2071dda
VZ
579$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
580 cd $(WXDIR)\docs\latex\wx
581 -latex manual
582 -latex manual
583 -makeindx manual
584 -bibtex manual
585 -latex manual
586 -latex manual
587 cd $(THISDIR)
588
f2071dda
VZ
589$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
590 cd $(WXDIR)\docs\latex\wx
591 -dvips32 -o wx.ps manual
592 move wx.ps $(WXDIR)\docs\ps\wx.ps
593 cd $(THISDIR)
594
f2071dda
VZ
595$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
596 cd $(WXDIR)\docs\latex\wx
597 -latex referenc
598 -latex referenc
599 -makeindx referenc
600 -bibtex referenc
601 -latex referenc
602 -latex referenc
603 cd $(THISDIR)
604
605$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
606 cd $(WXDIR)\docs\latex\wx
607 -dvips32 -o referenc.ps referenc
608 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
609 cd $(THISDIR)
610
7fee680b
JS
611# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
612# files, renamed to htb.
613# This can then be used with e.g. helpview.
614# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
f6bcfd97 615$(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
7fee680b 616 cd $(WXDIR)\docs\html\wx
f1d93f0b
JS
617 -erase wx.zip wx.htb
618 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
619 -mkdir $(DOCDIR)\htb
620 move wx.zip $(DOCDIR)\htb\wx.htb
7fee680b
JS
621 cd $(THISDIR)
622
f2071dda
VZ
623# In order to force document reprocessing
624touchmanual:
625 -touch $(WXDIR)\docs\latex\wx\manual.tex
626
627updatedocs: touchmanual alldocs
628
f6bcfd97 629cleandocs:
f1d93f0b
JS
630 -erase $(DOCDIR)\winhelp\wx.hlp
631 -erase $(DOCDIR)\winhelp\wx.cnt
632 -erase $(DOCDIR)\html\wx\*.htm
633 -erase $(DOCDIR)\pdf\wx.rtf
634 -erase $(DOCDIR)\latex\wx\wx.rtf
635 -erase $(DOCDIR)\latex\wx\WX.PH
636 -erase $(DOCDIR)\htmlhelp\wx.chm
637 -erase $(DOCDIR)\htb\wx.htb
f6bcfd97 638
f2071dda
VZ
639# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
640# Office StartUp folder, and PDFMaker should be installed.
641updatepdf: # touchmanual pdfrtf
642 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
643
9be9b974
RD
644
645MFTYPE=vc
646makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
647 cd $(WXWIN)\distrib\msw\tmake
648 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
649 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
650