]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
Some VC++ makefile fixes; minor comment mods to setup0.h
[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
f2071dda
VZ
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
182dll:
183 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
184
185cleandll:
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.
189dllapp:
190 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
191
192# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
193dllnp:
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.
206pch:
207 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
208
209pch1: 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)
7fee680b 221$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
f2071dda
VZ
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
bd53731e
RD
236!if "$(USE_GLCANVAS)" == "1"
237GL_LIBS=opengl32.lib glu32.lib
238!endif
239
f2071dda 240# Update the dynamic link library
a9221a95 241$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
242 $(link) @<<
243 $(LINKFLAGS)
244 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
bd53731e 245 $(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
f2071dda
VZ
246<<
247
248!endif
249
250
251########################################################
252# Windows-specific objects
253
254$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
255 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
256
257$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
258 cl @<<
259$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
260<<
261
bf4d9b2b 262# Compile certain files with no optimization (some files cause a
7fee680b
JS
263# compiler crash for buggy versions of VC++, e.g. 4.0).
264# Don't forget to put FINAL=1 on the command line.
bf4d9b2b
JS
265noopt:
266 cl @<<
267$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
268<<
269 cl @<<
270$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
271<<
272 cl @<<
273$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
669f7a11
JS
274<<
275 cl @<<
276$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
bf4d9b2b
JS
277<<
278 cl @<<
279$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
280<<
281 cl @<<
282$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
283<<
284 cl @<<
285$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
286<<
287 cl @<<
288$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
669f7a11
JS
289<<
290 cl @<<
291$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
bf4d9b2b
JS
292<<
293 cl @<<
294$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
295<<
296 cl @<<
297$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
298<<
299 cl @<<
300$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
301<<
302 cl @<<
303$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
304<<
305 cl @<<
306$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
307<<
308 cl @<<
309$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
310<<
311 cl @<<
312$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
313<<
314 cl @<<
315$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
316<<
317 cl @<<
318$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
319<<
320 cl @<<
321$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
322<<
323 cl @<<
324$(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
325<<
326
f2071dda
VZ
327# If taking wxWindows from CVS, setup.h doesn't exist yet.
328# Actually the 'if not exist setup.h' test doesn't work
329# (copies the file anyway)
330# we'll have to comment this rule out.
331
332# $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
333# cd "$(WXDIR)"\include\wx\msw
334# if not exist setup.h copy setup0.h setup.h
335# cd "$(WXDIR)"\src\msw
336
337..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
338 cl @<<
339$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
340<<
341
342..\common\y_tab.c: ..\common\dosyacc.c
343 copy "..\common"\dosyacc.c "..\common"\y_tab.c
344
345..\common\lex_yy.c: ..\common\doslex.c
346 copy "..\common"\doslex.c "..\common"\lex_yy.c
347
348$(OBJECTS): $(WXDIR)/include/wx/setup.h
349
350..\common\$D\unzip.obj: ..\common\unzip.c
351 cl @<<
352$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
353<<
354
355# Peripheral components
356
357png:
358 cd $(WXDIR)\src\png
3156ba6e 359 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
360 cd $(WXDIR)\src\msw
361
362clean_png:
363 cd $(WXDIR)\src\png
364 nmake -f makefile.vc clean
365 cd $(WXDIR)\src\msw
366
367zlib:
368 cd $(WXDIR)\src\zlib
3156ba6e 369 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
370 cd $(WXDIR)\src\msw
371
372clean_zlib:
373 cd $(WXDIR)\src\zlib
374 nmake -f makefile.vc clean
375 cd $(WXDIR)\src\msw
376
377jpeg:
378 cd $(WXDIR)\src\jpeg
3156ba6e 379 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
380 cd $(WXDIR)\src\msw
381
382clean_jpeg:
383 cd $(WXDIR)\src\jpeg
384 nmake -f makefile.vc clean
385 cd $(WXDIR)\src\msw
386
5ea6dbbf
RD
387tiff:
388 cd $(WXDIR)\src\tiff
389 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
390 cd $(WXDIR)\src\msw
391
392clean_tiff:
393 cd $(WXDIR)\src\tiff
394 nmake -f makefile.vc clean
395 cd $(WXDIR)\src\msw
396
f2071dda
VZ
397xpm:
398 cd $(WXDIR)\src\xpm
3156ba6e 399 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
400 cd $(WXDIR)\src\msw
401
402clean_xpm:
403 cd $(WXDIR)\src\xpm
404 nmake -f makefile.vc clean
405 cd $(WXDIR)\src\msw
406
407rcparser:
408 cd $(WXDIR)\utils\rcparser\src
409 nmake -f makefile.vc FINAL=$(FINAL)
410 cd $(WXDIR)\src\msw
411
50a5c3f3 412cleanall: clean_png clean_zlib clean_xpm 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
437 -erase $(OLEDIR)\$D\*.obj
438 -erase $(OLEDIR)\$D\*.sbr
439 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
440 -erase $(HTMLDIR)\$D\*.obj
441 -erase $(HTMLDIR)\$D\*.sbr
442 -erase $(HTMLDIR)\$D\*.pdb
f2071dda
VZ
443 -rmdir $(D)
444 -rmdir ole\$(D)
445 -rmdir ..\generic\$(D)
446 -rmdir ..\common\$(D)
d66d9d5b 447 -rmdir ..\html\$(D)
f2071dda 448
f2071dda
VZ
449
450# Making documents
451docs: allhlp allhtml allpdfrtf
452alldocs: docs
1a3aa77f 453hlp: wxhlp
f2071dda 454wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
455refhlp: $(DOCDIR)/winhelp/techref.hlp
456rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 457pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 458refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 459html: wxhtml
f2071dda
VZ
460wxhtml: $(DOCDIR)\html\wx\wx.htm
461htmlhelp: $(DOCDIR)\html\wx\wx.chm
f2071dda
VZ
462ps: wxps referencps
463wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
464referencps: $(WXDIR)\docs\ps\referenc.ps
465
1a3aa77f 466allhlp: wxhlp
f2071dda
VZ
467 cd $(WXDIR)\utils\dialoged\src
468 nmake -f makefile.vc hlp
469 cd $(THISDIR)
470
471# cd $(WXDIR)\utils\wxhelp\src
472# nmake -f makefile.vc hlp
473# cd $(WXDIR)\utils\tex2rtf\src
474# nmake -f makefile.vc hlp
475# cd $(WXDIR)\utils\wxgraph\src
476# nmake -f makefile.vc hlp
477# cd $(WXDIR)\utils\wxchart\src
478# nmake -f makefile.vc hlp
479# cd $(WXDIR)\utils\wxtree\src
480# nmake -f makefile.vc hlp
481# cd $(WXDIR)\utils\wxbuild\src
482# nmake -f makefile.vc hlp
483# cd $(WXDIR)\utils\wxgrid\src
484# nmake -f makefile.vc hlp
485
1a3aa77f 486allhtml: wxhtml
f2071dda
VZ
487 cd $(WXDIR)\utils\dialoged\src
488 nmake -f makefile.vc html
489 cd $(THISDIR)
490
491# nmake -f makefile.vc html
492# cd $(WXDIR)\utils\dialoged\src
493# nmake -f makefile.vc html
494# cd $(WXDIR)\utils\hytext\src
495# nmake -f makefile.vc html
496# cd $(WXDIR)\utils\wxhelp\src
497# nmake -f makefile.vc html
498# cd $(WXDIR)\utils\tex2rtf\src
499# nmake -f makefile.vc html
500# cd $(WXDIR)\utils\wxgraph\src
501# nmake -f makefile.vc html
502# cd $(WXDIR)\utils\wxchart\src
503# nmake -f makefile.vc html
504# cd $(WXDIR)\utils\wxtree\src
505# nmake -f makefile.vc html
506
1a3aa77f 507allps: wxps referencps
f2071dda
VZ
508 cd $(WXDIR)\utils\dialoged\src
509 nmake -f makefile.vc ps
510 cd $(THISDIR)
511
1a3aa77f 512allpdfrtf: pdfrtf
f2071dda
VZ
513 cd $(WXDIR)\utils\dialoged\src
514 nmake -f makefile.vc pdfrtf
515 cd $(THISDIR)
516
517# cd $(WXDIR)\utils\wxhelp\src
518# nmake -f makefile.vc ps
519# cd $(WXDIR)\utils\tex2rtf\src
520# nmake -f makefile.vc ps
521# cd $(WXDIR)\utils\wxgraph\src
522# nmake -f makefile.vc ps
523# cd $(WXDIR)\utils\wxchart\src
524# nmake -f makefile.vc ps
525# cd $(WXDIR)\utils\wxtree\src
526# nmake -f makefile.vc ps
527# cd $(THISDIR)
528
529$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
530 cd $(DOCDIR)/latex/wx
531 -erase wx.ph
532 hc wx
533 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
534 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
535 cd $(THISDIR)
536
f2071dda
VZ
537$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
538 cd $(DOCDIR)/latex/techref
539 -erase techref.ph
540 hc techref
541 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
542 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
543 cd $(THISDIR)
544
545$(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
546 cd $(DOCDIR)\latex\wx
547 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
548 cd $(THISDIR)
549
f2071dda
VZ
550$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
551 cd $(DOCDIR)\latex\techref
552 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
553 cd $(THISDIR)
554
555$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
556 cd $(DOCDIR)\latex\wx
79bc2382
PA
557 -copy *.wmf $(DOCDIR)\pdf
558 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
559 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
560 cd $(THISDIR)
561
f2071dda
VZ
562$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
563 cd $(DOCDIR)\latex\techref
79bc2382
PA
564 -copy *.wmf $(DOCDIR)\pdf
565 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
566 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
567 cd $(THISDIR)
568
569$(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
570 cd $(DOCDIR)\latex\wx
571 -mkdir $(DOCDIR)\html\wx
572 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
573 -erase $(DOCDIR)\html\wx\*.con
574 -erase $(DOCDIR)\html\wx\*.ref
575 -erase $(DOCDIR)\latex\wx\*.con
576 -erase $(DOCDIR)\latex\wx\*.ref
577 cd $(THISDIR)
578
579$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
580 cd $(DOCDIR)\html\wx
581 -hhc wx.hhp
582 cd $(THISDIR)
583
f2071dda
VZ
584$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
585 cd $(WXDIR)\docs\latex\wx
586 -latex manual
587 -latex manual
588 -makeindx manual
589 -bibtex manual
590 -latex manual
591 -latex manual
592 cd $(THISDIR)
593
f2071dda
VZ
594$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
595 cd $(WXDIR)\docs\latex\wx
596 -dvips32 -o wx.ps manual
597 move wx.ps $(WXDIR)\docs\ps\wx.ps
598 cd $(THISDIR)
599
f2071dda
VZ
600$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
601 cd $(WXDIR)\docs\latex\wx
602 -latex referenc
603 -latex referenc
604 -makeindx referenc
605 -bibtex referenc
606 -latex referenc
607 -latex referenc
608 cd $(THISDIR)
609
610$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
611 cd $(WXDIR)\docs\latex\wx
612 -dvips32 -o referenc.ps referenc
613 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
614 cd $(THISDIR)
615
7fee680b
JS
616# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
617# files, renamed to htb.
618# This can then be used with e.g. helpview.
619# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
620htb:
621 cd $(WXDIR)\docs\html\wx
622 -erase /Y wx.zip wx.htb
623 zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk
624 ren wx.zip wx.htb
625 cd $(THISDIR)
626
f2071dda
VZ
627# In order to force document reprocessing
628touchmanual:
629 -touch $(WXDIR)\docs\latex\wx\manual.tex
630
631updatedocs: touchmanual alldocs
632
633# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
634# Office StartUp folder, and PDFMaker should be installed.
635updatepdf: # touchmanual pdfrtf
636 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
637
9be9b974
RD
638
639MFTYPE=vc
640makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
641 cd $(WXWIN)\distrib\msw\tmake
642 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
643 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
644