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