]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
more minimal stuff
[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
163test: $(MSWDIR)\$D\wave.obj
164test2: ..\common\Debug\config.obj
165
166$D:
167 mkdir $D
168
169$(COMMDIR)\$D:
170 mkdir $(COMMDIR)\$D
171
172$(MSWDIR)\$D:
173 mkdir $(MSWDIR)\$D
174
175$(GENDIR)\$D:
176 mkdir $(GENDIR)\$D
177
178$(OLEDIR)\$D:
179 mkdir $(OLEDIR)\$D
180
181$(HTMLDIR)\$D:
182 mkdir $(HTMLDIR)\$D
183
184# wxWindows library as DLL
185dll:
186 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
187
188cleandll:
189 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
190
191# wxWindows + app as DLL. Only affects main.cpp.
192dllapp:
193 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
194
195# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
196dllnp:
197 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
198
199# Use this to make dummy.obj and generate a PCH.
200# You might use the dll target, then the pch target, in order to
201# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
202#
203# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
204# are associated with wx.lib. When using a DLL version of wxWindows, however,
205# the DLL is compiled without a PCH, so you only need it for compiling the app.
206# In fact headers are compiled differently depending on whether a DLL is being made
207# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
208# in each case) so you couldn't use the same PCH.
209pch:
210 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
211
212pch1: dirs $(DUMMYOBJ)
213 echo $(DUMMYOBJ)
214
215!if "$(WXMAKINGDLL)" != "1"
216
217### Static library
218
219$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
220 -erase $(LIBTARGET)
221 $(implib) @<<
222-out:$@
223-machine:$(CPU)
224$(OBJECTS) $(PERIPH_LIBS)
225<<
226
227!else
228
229### Update the import library
230
231$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
232 $(implib) @<<
233 -machine:$(CPU)
234 -def:wx.def
235 $(DUMMYOBJ) $(OBJECTS)
236 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
237<<
238
239# Update the dynamic link library
a9221a95 240$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
241 $(link) @<<
242 $(LINKFLAGS)
243 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
5ea6dbbf 244 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\xpm.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\tiff.lib
f2071dda
VZ
245<<
246
247!endif
248
249
250########################################################
251# Windows-specific objects
252
253$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
254 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
255
256$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
257 cl @<<
258$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
259<<
260
bf4d9b2b
JS
261# Compile certain files with no optimization (some files cause a
262# compiler crash for buggy versions of VC++, e.g. 4.0)
263noopt:
264 cl @<<
265$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
266<<
267 cl @<<
268$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
269<<
270 cl @<<
271$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
272<<
273 cl @<<
274$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
275<<
276 cl @<<
277$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
278<<
279 cl @<<
280$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
281<<
282 cl @<<
283$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
284<<
285 cl @<<
286$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
287<<
288 cl @<<
289$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
290<<
291 cl @<<
292$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
293<<
294 cl @<<
295$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
296<<
297 cl @<<
298$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
299<<
300 cl @<<
301$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
302<<
303 cl @<<
304$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
305<<
306 cl @<<
307$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
308<<
309 cl @<<
310$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
311<<
312 cl @<<
313$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
314<<
315 cl @<<
316$(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
317<<
318
f2071dda
VZ
319# If taking wxWindows from CVS, setup.h doesn't exist yet.
320# Actually the 'if not exist setup.h' test doesn't work
321# (copies the file anyway)
322# we'll have to comment this rule out.
323
324# $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
325# cd "$(WXDIR)"\include\wx\msw
326# if not exist setup.h copy setup0.h setup.h
327# cd "$(WXDIR)"\src\msw
328
329..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
330 cl @<<
331$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
332<<
333
334..\common\y_tab.c: ..\common\dosyacc.c
335 copy "..\common"\dosyacc.c "..\common"\y_tab.c
336
337..\common\lex_yy.c: ..\common\doslex.c
338 copy "..\common"\doslex.c "..\common"\lex_yy.c
339
340$(OBJECTS): $(WXDIR)/include/wx/setup.h
341
342..\common\$D\unzip.obj: ..\common\unzip.c
343 cl @<<
344$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
345<<
346
347# Peripheral components
348
349png:
350 cd $(WXDIR)\src\png
3156ba6e 351 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
352 cd $(WXDIR)\src\msw
353
354clean_png:
355 cd $(WXDIR)\src\png
356 nmake -f makefile.vc clean
357 cd $(WXDIR)\src\msw
358
359zlib:
360 cd $(WXDIR)\src\zlib
3156ba6e 361 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
362 cd $(WXDIR)\src\msw
363
364clean_zlib:
365 cd $(WXDIR)\src\zlib
366 nmake -f makefile.vc clean
367 cd $(WXDIR)\src\msw
368
369jpeg:
370 cd $(WXDIR)\src\jpeg
3156ba6e 371 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
372 cd $(WXDIR)\src\msw
373
374clean_jpeg:
375 cd $(WXDIR)\src\jpeg
376 nmake -f makefile.vc clean
377 cd $(WXDIR)\src\msw
378
5ea6dbbf
RD
379tiff:
380 cd $(WXDIR)\src\tiff
381 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
382 cd $(WXDIR)\src\msw
383
384clean_tiff:
385 cd $(WXDIR)\src\tiff
386 nmake -f makefile.vc clean
387 cd $(WXDIR)\src\msw
388
f2071dda
VZ
389xpm:
390 cd $(WXDIR)\src\xpm
3156ba6e 391 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
392 cd $(WXDIR)\src\msw
393
394clean_xpm:
395 cd $(WXDIR)\src\xpm
396 nmake -f makefile.vc clean
397 cd $(WXDIR)\src\msw
398
399rcparser:
400 cd $(WXDIR)\utils\rcparser\src
401 nmake -f makefile.vc FINAL=$(FINAL)
402 cd $(WXDIR)\src\msw
403
5ea6dbbf 404clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
f2071dda
VZ
405 -erase $(LIBTARGET)
406 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
ccf0b1d7
RD
407 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
408 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
409 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
410 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
411 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
f2071dda
VZ
412 -erase *.pdb
413 -erase *.sbr
414 -erase $(WXLIBNAME).pch
415 -erase $(GENDIR)\$D\*.obj
416 -erase $(GENDIR)\$D\*.pdb
417 -erase $(GENDIR)\$D\*.sbr
418 -erase $(COMMDIR)\$D\*.obj
419 -erase $(COMMDIR)\$D\*.pdb
420 -erase $(COMMDIR)\$D\*.sbr
421 -erase $(COMMDIR)\\y_tab.c
422 -erase $(COMMDIR)\lex_yy.c
423 -erase $(MSWDIR)\$D\*.obj
424 -erase $(MSWDIR)\$D\*.sbr
425 -erase $(MSWDIR)\$D\*.pdb
426 -erase $(OLEDIR)\$D\*.obj
427 -erase $(OLEDIR)\$D\*.sbr
428 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
429 -erase $(HTMLDIR)\$D\*.obj
430 -erase $(HTMLDIR)\$D\*.sbr
431 -erase $(HTMLDIR)\$D\*.pdb
f2071dda
VZ
432 -rmdir $(D)
433 -rmdir ole\$(D)
434 -rmdir ..\generic\$(D)
435 -rmdir ..\common\$(D)
d66d9d5b 436 -rmdir ..\html\$(D)
f2071dda
VZ
437
438cleanall: clean
439
440# Making documents
441docs: allhlp allhtml allpdfrtf
442alldocs: docs
1a3aa77f 443hlp: wxhlp
f2071dda 444wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
445refhlp: $(DOCDIR)/winhelp/techref.hlp
446rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 447pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 448refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 449html: wxhtml
f2071dda
VZ
450wxhtml: $(DOCDIR)\html\wx\wx.htm
451htmlhelp: $(DOCDIR)\html\wx\wx.chm
f2071dda
VZ
452ps: wxps referencps
453wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
454referencps: $(WXDIR)\docs\ps\referenc.ps
455
1a3aa77f 456allhlp: wxhlp
f2071dda
VZ
457 cd $(WXDIR)\utils\dialoged\src
458 nmake -f makefile.vc hlp
459 cd $(THISDIR)
460
461# cd $(WXDIR)\utils\wxhelp\src
462# nmake -f makefile.vc hlp
463# cd $(WXDIR)\utils\tex2rtf\src
464# nmake -f makefile.vc hlp
465# cd $(WXDIR)\utils\wxgraph\src
466# nmake -f makefile.vc hlp
467# cd $(WXDIR)\utils\wxchart\src
468# nmake -f makefile.vc hlp
469# cd $(WXDIR)\utils\wxtree\src
470# nmake -f makefile.vc hlp
471# cd $(WXDIR)\utils\wxbuild\src
472# nmake -f makefile.vc hlp
473# cd $(WXDIR)\utils\wxgrid\src
474# nmake -f makefile.vc hlp
475
1a3aa77f 476allhtml: wxhtml
f2071dda
VZ
477 cd $(WXDIR)\utils\dialoged\src
478 nmake -f makefile.vc html
479 cd $(THISDIR)
480
481# nmake -f makefile.vc html
482# cd $(WXDIR)\utils\dialoged\src
483# nmake -f makefile.vc html
484# cd $(WXDIR)\utils\hytext\src
485# nmake -f makefile.vc html
486# cd $(WXDIR)\utils\wxhelp\src
487# nmake -f makefile.vc html
488# cd $(WXDIR)\utils\tex2rtf\src
489# nmake -f makefile.vc html
490# cd $(WXDIR)\utils\wxgraph\src
491# nmake -f makefile.vc html
492# cd $(WXDIR)\utils\wxchart\src
493# nmake -f makefile.vc html
494# cd $(WXDIR)\utils\wxtree\src
495# nmake -f makefile.vc html
496
1a3aa77f 497allps: wxps referencps
f2071dda
VZ
498 cd $(WXDIR)\utils\dialoged\src
499 nmake -f makefile.vc ps
500 cd $(THISDIR)
501
1a3aa77f 502allpdfrtf: pdfrtf
f2071dda
VZ
503 cd $(WXDIR)\utils\dialoged\src
504 nmake -f makefile.vc pdfrtf
505 cd $(THISDIR)
506
507# cd $(WXDIR)\utils\wxhelp\src
508# nmake -f makefile.vc ps
509# cd $(WXDIR)\utils\tex2rtf\src
510# nmake -f makefile.vc ps
511# cd $(WXDIR)\utils\wxgraph\src
512# nmake -f makefile.vc ps
513# cd $(WXDIR)\utils\wxchart\src
514# nmake -f makefile.vc ps
515# cd $(WXDIR)\utils\wxtree\src
516# nmake -f makefile.vc ps
517# cd $(THISDIR)
518
519$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
520 cd $(DOCDIR)/latex/wx
521 -erase wx.ph
522 hc wx
523 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
524 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
525 cd $(THISDIR)
526
f2071dda
VZ
527$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
528 cd $(DOCDIR)/latex/techref
529 -erase techref.ph
530 hc techref
531 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
532 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
533 cd $(THISDIR)
534
535$(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
536 cd $(DOCDIR)\latex\wx
537 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
538 cd $(THISDIR)
539
f2071dda
VZ
540$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
541 cd $(DOCDIR)\latex\techref
542 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
543 cd $(THISDIR)
544
545$(DOCDIR)/pdf/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
79bc2382
PA
547 -copy *.wmf $(DOCDIR)\pdf
548 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
549 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
550 cd $(THISDIR)
551
f2071dda
VZ
552$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
553 cd $(DOCDIR)\latex\techref
79bc2382
PA
554 -copy *.wmf $(DOCDIR)\pdf
555 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
556 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
557 cd $(THISDIR)
558
559$(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
560 cd $(DOCDIR)\latex\wx
561 -mkdir $(DOCDIR)\html\wx
562 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
563 -erase $(DOCDIR)\html\wx\*.con
564 -erase $(DOCDIR)\html\wx\*.ref
565 -erase $(DOCDIR)\latex\wx\*.con
566 -erase $(DOCDIR)\latex\wx\*.ref
567 cd $(THISDIR)
568
569$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
570 cd $(DOCDIR)\html\wx
571 -hhc wx.hhp
572 cd $(THISDIR)
573
f2071dda
VZ
574$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
575 cd $(WXDIR)\docs\latex\wx
576 -latex manual
577 -latex manual
578 -makeindx manual
579 -bibtex manual
580 -latex manual
581 -latex manual
582 cd $(THISDIR)
583
f2071dda
VZ
584$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
585 cd $(WXDIR)\docs\latex\wx
586 -dvips32 -o wx.ps manual
587 move wx.ps $(WXDIR)\docs\ps\wx.ps
588 cd $(THISDIR)
589
f2071dda
VZ
590$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
591 cd $(WXDIR)\docs\latex\wx
592 -latex referenc
593 -latex referenc
594 -makeindx referenc
595 -bibtex referenc
596 -latex referenc
597 -latex referenc
598 cd $(THISDIR)
599
600$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
601 cd $(WXDIR)\docs\latex\wx
602 -dvips32 -o referenc.ps referenc
603 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
604 cd $(THISDIR)
605
606# In order to force document reprocessing
607touchmanual:
608 -touch $(WXDIR)\docs\latex\wx\manual.tex
609
610updatedocs: touchmanual alldocs
611
612# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
613# Office StartUp folder, and PDFMaker should be installed.
614updatepdf: # touchmanual pdfrtf
615 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
616
9be9b974
RD
617
618MFTYPE=vc
619makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
620 cd $(WXWIN)\distrib\msw\tmake
621 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
622 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
623