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