]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc.t
Added wxGenericDirCtrl, wxGenericDirDialog and associated icons.
[wxWidgets.git] / distrib / msw / tmake / vc.t
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 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
38 #! OLE files live in a subdir
39 $project{"WXMSWOBJS"} .= '..\msw\\';
40 $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/;
41 $file =~ s/cp?p?$/obj/;
42 $project{"WXMSWOBJS"} .= '$D\\' . $file . " ";
43 }
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
52 #$}
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
72 THISDIR=$(WXWIN)\src\msw
73
74 !if "$(WXMAKINGDLL)" == "1"
75 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
76 DUMMYOBJ=$D\dummydll.obj
77 !else
78 LIBTARGET=$(WXLIB)
79 DUMMYOBJ=$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
86 MINIMAL_WXWINDOWS_SETUP=0
87
88 PERIPH_LIBS=
89 PERIPH_TARGET=
90 PERIPH_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.
96 GENDIR=$(WXDIR)\src\generic
97 COMMDIR=$(WXDIR)\src\common
98 OLEDIR=ole
99 MSWDIR=$(WXDIR)\src\msw
100 DOCDIR = $(WXDIR)\docs
101 HTMLDIR = $(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
113 {..\common}.c{..\common\$D}.obj:
114 cl @<<
115 $(CPPFLAGS2) /Fo$@ /c /Tc $<
116 <<
117
118 {..\msw}.cpp{..\msw\$D}.obj:
119 cl @<<
120 $(CPPFLAGS) /Fo$@ /c /Tp $<
121 <<
122
123 {..\msw}.c{..\msw\$D}.obj:
124 cl @<<
125 $(CPPFLAGS2) /Fo$@ /c /Tc $<
126 <<
127
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
138 GENERICOBJS= #$ 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.
142 NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
143
144 COMMONOBJS = \
145 ..\common\$D\y_tab.obj \
146 #$ ExpandList("WXCOMMONOBJS");
147
148 MSWOBJS = #$ ExpandList("WXMSWOBJS");
149
150 HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
151
152
153 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
154 # Add $(HTMLOBJS) if wanting wxHTML classes
155 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
156
157 # Normal, static library
158 all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
159
160 dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
161
162
163 $D:
164 mkdir $D
165
166 $(COMMDIR)\$D:
167 mkdir $(COMMDIR)\$D
168
169 $(MSWDIR)\$D:
170 mkdir $(MSWDIR)\$D
171
172 $(GENDIR)\$D:
173 mkdir $(GENDIR)\$D
174
175 $(OLEDIR)\$D:
176 mkdir $(OLEDIR)\$D
177
178 $(HTMLDIR)\$D:
179 mkdir $(HTMLDIR)\$D
180
181 # wxWindows library as DLL
182 dll:
183 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
184
185 cleandll:
186 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
187
188 # wxWindows + app as DLL. Only affects main.cpp.
189 dllapp:
190 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
191
192 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
193 dllnp:
194 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
195
196 # Use this to make dummy.obj and generate a PCH.
197 # You might use the dll target, then the pch target, in order to
198 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
199 #
200 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
201 # are associated with wx.lib. When using a DLL version of wxWindows, however,
202 # the DLL is compiled without a PCH, so you only need it for compiling the app.
203 # In fact headers are compiled differently depending on whether a DLL is being made
204 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
205 # in each case) so you couldn't use the same PCH.
206 pch:
207 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
208
209 pch1: dirs $(DUMMYOBJ)
210 echo $(DUMMYOBJ)
211
212 !if "$(WXMAKINGDLL)" != "1"
213
214 ### Static library
215
216 $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
217 -erase $(LIBTARGET)
218 $(implib) @<<
219 -out:$@
220 -machine:$(CPU)
221 $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
222 <<
223
224 !else
225
226 ### Update the import library
227
228 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
229 $(implib) @<<
230 -machine:$(CPU)
231 -def:wx.def
232 $(DUMMYOBJ) $(OBJECTS)
233 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
234 <<
235
236 !if "$(USE_GLCANVAS)" == "1"
237 GL_LIBS=opengl32.lib glu32.lib
238 GL_LIBS_DELAY=/delayload:opengl32.dll
239 !endif
240
241 # Update the dynamic link library
242 $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
243 $(link) @<<
244 $(LINKFLAGS)
245 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
246 $(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\xpm$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib
247 delayimp.lib
248 /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll
249 /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll
250 /delayload:oleaut32.dll /delayload:rpcrt4.dll /delayload:winmm.dll $(GL_LIBS_DELAY)
251 <<
252
253 !endif
254
255
256 ########################################################
257 # Windows-specific objects
258
259 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
260 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
261
262 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
263 cl @<<
264 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
265 <<
266
267 # Compile certain files with no optimization (some files cause a
268 # compiler crash for buggy versions of VC++, e.g. 4.0).
269 # Don't forget to put FINAL=1 on the command line.
270 noopt:
271 cl @<<
272 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
273 <<
274 cl @<<
275 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
276 <<
277 cl @<<
278 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
279 <<
280 cl @<<
281 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
282 <<
283 cl @<<
284 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
285 <<
286 cl @<<
287 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
288 <<
289 cl @<<
290 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
291 <<
292 cl @<<
293 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
294 <<
295 cl @<<
296 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
297 <<
298 cl @<<
299 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
300 <<
301 cl @<<
302 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
303 <<
304 cl @<<
305 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
306 <<
307 cl @<<
308 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
309 <<
310 cl @<<
311 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
312 <<
313 cl @<<
314 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
315 <<
316 cl @<<
317 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
318 <<
319 cl @<<
320 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
321 <<
322 cl @<<
323 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
324 <<
325 cl @<<
326 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
327 <<
328 cl @<<
329 $(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
330 <<
331
332 # If taking wxWindows from CVS, setup.h doesn't exist yet.
333 # Actually the 'if not exist setup.h' test doesn't work
334 # (copies the file anyway)
335 # we'll have to comment this rule out.
336
337 # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
338 # cd "$(WXDIR)"\include\wx\msw
339 # if not exist setup.h copy setup0.h setup.h
340 # cd "$(WXDIR)"\src\msw
341
342 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
343 cl @<<
344 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
345 <<
346
347 ..\common\y_tab.c: ..\common\dosyacc.c
348 copy "..\common"\dosyacc.c "..\common"\y_tab.c
349
350 ..\common\lex_yy.c: ..\common\doslex.c
351 copy "..\common"\doslex.c "..\common"\lex_yy.c
352
353 $(OBJECTS): $(WXDIR)/include/wx/setup.h
354
355 ..\common\$D\unzip.obj: ..\common\unzip.c
356 cl @<<
357 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
358 <<
359
360 # Peripheral components
361
362 png:
363 cd $(WXDIR)\src\png
364 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
365 cd $(WXDIR)\src\msw
366
367 clean_png:
368 cd $(WXDIR)\src\png
369 nmake -f makefile.vc clean
370 cd $(WXDIR)\src\msw
371
372 zlib:
373 cd $(WXDIR)\src\zlib
374 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
375 cd $(WXDIR)\src\msw
376
377 clean_zlib:
378 cd $(WXDIR)\src\zlib
379 nmake -f makefile.vc clean
380 cd $(WXDIR)\src\msw
381
382 jpeg:
383 cd $(WXDIR)\src\jpeg
384 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
385 cd $(WXDIR)\src\msw
386
387 clean_jpeg:
388 cd $(WXDIR)\src\jpeg
389 nmake -f makefile.vc clean
390 cd $(WXDIR)\src\msw
391
392 tiff:
393 cd $(WXDIR)\src\tiff
394 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
395 cd $(WXDIR)\src\msw
396
397 clean_tiff:
398 cd $(WXDIR)\src\tiff
399 nmake -f makefile.vc clean
400 cd $(WXDIR)\src\msw
401
402 xpm:
403 cd $(WXDIR)\src\xpm
404 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
405 cd $(WXDIR)\src\msw
406
407 clean_xpm:
408 cd $(WXDIR)\src\xpm
409 nmake -f makefile.vc clean
410 cd $(WXDIR)\src\msw
411
412 rcparser:
413 cd $(WXDIR)\utils\rcparser\src
414 nmake -f makefile.vc FINAL=$(FINAL)
415 cd $(WXDIR)\src\msw
416
417 cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
418 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
419 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
420 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
421 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
422 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
423
424
425 clean: $(PERIPH_CLEAN_TARGET)
426 -erase $(LIBTARGET)
427 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
428 -erase *.pdb
429 -erase *.sbr
430 -erase $(WXLIBNAME).pch
431 -erase $(GENDIR)\$D\*.obj
432 -erase $(GENDIR)\$D\*.pdb
433 -erase $(GENDIR)\$D\*.sbr
434 -erase $(COMMDIR)\$D\*.obj
435 -erase $(COMMDIR)\$D\*.pdb
436 -erase $(COMMDIR)\$D\*.sbr
437 -erase $(COMMDIR)\y_tab.c
438 -erase $(COMMDIR)\lex_yy.c
439 -erase $(MSWDIR)\$D\*.obj
440 -erase $(MSWDIR)\$D\*.sbr
441 -erase $(MSWDIR)\$D\*.pdb
442 -erase $(OLEDIR)\$D\*.obj
443 -erase $(OLEDIR)\$D\*.sbr
444 -erase $(OLEDIR)\$D\*.pdb
445 -erase $(HTMLDIR)\$D\*.obj
446 -erase $(HTMLDIR)\$D\*.sbr
447 -erase $(HTMLDIR)\$D\*.pdb
448 -rmdir $(D)
449 -rmdir ole\$(D)
450 -rmdir ..\generic\$(D)
451 -rmdir ..\common\$(D)
452 -rmdir ..\html\$(D)
453
454
455 # Making documents
456 docs: allhlp allhtml allpdfrtf htb htmlhelp
457 alldocs: docs
458 hlp: wxhlp
459 wxhlp: $(DOCDIR)/winhelp/wx.hlp
460 refhlp: $(DOCDIR)/winhelp/techref.hlp
461 rtf: $(DOCDIR)/winhelp/wx.rtf
462 pdfrtf: $(DOCDIR)/pdf/wx.rtf
463 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
464 html: wxhtml
465 htb: $(DOCDIR)\htb\wx.htb
466 wxhtml: $(DOCDIR)\html\wx\wx.htm
467 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
468 ps: wxps referencps
469 wxps: $(WXDIR)\docs\ps\wx.ps
470 referencps: $(WXDIR)\docs\ps\referenc.ps
471
472 allhlp: wxhlp
473 cd $(WXDIR)\utils\dialoged\src
474 nmake -f makefile.vc hlp
475 cd $(THISDIR)
476
477 # cd $(WXDIR)\utils\wxhelp\src
478 # nmake -f makefile.vc hlp
479 # cd $(WXDIR)\utils\tex2rtf\src
480 # nmake -f makefile.vc hlp
481 # cd $(WXDIR)\utils\wxgraph\src
482 # nmake -f makefile.vc hlp
483 # cd $(WXDIR)\utils\wxchart\src
484 # nmake -f makefile.vc hlp
485 # cd $(WXDIR)\utils\wxtree\src
486 # nmake -f makefile.vc hlp
487 # cd $(WXDIR)\utils\wxbuild\src
488 # nmake -f makefile.vc hlp
489 # cd $(WXDIR)\utils\wxgrid\src
490 # nmake -f makefile.vc hlp
491
492 allhtml: wxhtml
493 cd $(WXDIR)\utils\dialoged\src
494 nmake -f makefile.vc html
495 cd $(THISDIR)
496
497 # nmake -f makefile.vc html
498 # cd $(WXDIR)\utils\dialoged\src
499 # nmake -f makefile.vc html
500 # cd $(WXDIR)\utils\hytext\src
501 # nmake -f makefile.vc html
502 # cd $(WXDIR)\utils\wxhelp\src
503 # nmake -f makefile.vc html
504 # cd $(WXDIR)\utils\tex2rtf\src
505 # nmake -f makefile.vc html
506 # cd $(WXDIR)\utils\wxgraph\src
507 # nmake -f makefile.vc html
508 # cd $(WXDIR)\utils\wxchart\src
509 # nmake -f makefile.vc html
510 # cd $(WXDIR)\utils\wxtree\src
511 # nmake -f makefile.vc html
512
513 allps: wxps referencps
514 cd $(WXDIR)\utils\dialoged\src
515 nmake -f makefile.vc ps
516 cd $(THISDIR)
517
518 allpdfrtf: pdfrtf
519 cd $(WXDIR)\utils\dialoged\src
520 nmake -f makefile.vc pdfrtf
521 cd $(THISDIR)
522
523 # cd $(WXDIR)\utils\wxhelp\src
524 # nmake -f makefile.vc ps
525 # cd $(WXDIR)\utils\tex2rtf\src
526 # nmake -f makefile.vc ps
527 # cd $(WXDIR)\utils\wxgraph\src
528 # nmake -f makefile.vc ps
529 # cd $(WXDIR)\utils\wxchart\src
530 # nmake -f makefile.vc ps
531 # cd $(WXDIR)\utils\wxtree\src
532 # nmake -f makefile.vc ps
533 # cd $(THISDIR)
534
535 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
536 cd $(DOCDIR)/latex/wx
537 -erase wx.ph
538 hc wx
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 move wx.chm ..\..\htmlhelp
591 cd $(THISDIR)
592
593 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
594 cd $(WXDIR)\docs\latex\wx
595 -latex manual
596 -latex manual
597 -makeindx manual
598 -bibtex manual
599 -latex manual
600 -latex manual
601 cd $(THISDIR)
602
603 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
604 cd $(WXDIR)\docs\latex\wx
605 -dvips32 -o wx.ps manual
606 move wx.ps $(WXDIR)\docs\ps\wx.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 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
626 # files, renamed to htb.
627 # This can then be used with e.g. helpview.
628 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
629 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
630 cd $(WXDIR)\docs\html\wx
631 -erase /Y wx.zip wx.htb
632 zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk
633 -mkdir $(DOCDIR)\htb
634 move wx.zip $(DOCDIR)\htb\wx.htb
635 cd $(THISDIR)
636
637 # In order to force document reprocessing
638 touchmanual:
639 -touch $(WXDIR)\docs\latex\wx\manual.tex
640
641 updatedocs: touchmanual alldocs
642
643 cleandocs:
644 -erase /Y $(DOCDIR)\html\wx\wx.htm
645 -erase /Y $(DOCDIR)\pdf\wx.rtf
646 -erase /Y $(DOCDIR)\latex\wx\wx.rtf
647 -erase /Y $(DOCDIR)\htmlhelp\wx.chm
648 -erase /Y $(DOCDIR)\htb\wx.htb
649
650 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
651 # Office StartUp folder, and PDFMaker should be installed.
652 updatepdf: # touchmanual pdfrtf
653 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
654
655
656 MFTYPE=vc
657 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
658 cd $(WXWIN)\distrib\msw\tmake
659 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
660 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
661