]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/makefile.vc
Fixed wxPalette memory leak when loading BMP files
[wxWidgets.git] / src / msw / makefile.vc
... / ...
CommitLineData
1#
2# File: makefile.nt
3# Author: Julian Smart
4# Created: 1997
5# Updated:
6# Copyright: (c) 1997, Julian Smart
7#
8# "%W% %G%"
9#
10# Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
11# Arguments:
12#
13# FINAL=1 argument to nmake to build version with no debugging info.
14# dll builds a library (wxdll.lib) suitable for creating DLLs
15#
16!include <..\makevc.env>
17
18THISDIR=$(WXWIN)\src\msw
19
20!if "$(WXMAKINGDLL)" == "1"
21LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
22DUMMYOBJ=$D\dummydll.obj
23!else
24LIBTARGET=$(WXLIB)
25DUMMYOBJ=$D\dummy.obj
26!endif
27
28# Please set these according to the settings in setup.h, so we can include
29# the appropriate libraries in wx.lib
30
31# This one overrides the others, to be consistent with the settings in setup.h
32MINIMAL_WXWINDOWS_SETUP=0
33
34PERIPH_LIBS=
35PERIPH_TARGET=
36PERIPH_CLEAN_TARGET=
37
38# These are absolute paths, so that the compiler
39# generates correct __FILE__ symbols for debugging.
40# Otherwise you don't be able to double-click on a memory
41# error to load that file.
42GENDIR=$(WXDIR)\src\generic
43COMMDIR=$(WXDIR)\src\common
44OLEDIR=ole
45MSWDIR=$(WXDIR)\src\msw
46DOCDIR = $(WXDIR)\docs
47
48{..\generic}.cpp{..\generic\$D}.obj:
49 cl @<<
50$(CPPFLAGS) /Fo$@ /c /Tp $<
51<<
52
53{..\common}.cpp{..\common\$D}.obj:
54 cl @<<
55$(CPPFLAGS) /Fo$@ /c /Tp $<
56<<
57
58{..\msw}.cpp{..\msw\$D}.obj:
59 cl @<<
60$(CPPFLAGS) /Fo$@ /c /Tp $<
61<<
62
63{..\msw\ole}.cpp{..\msw\ole\$D}.obj:
64 cl @<<
65$(CPPFLAGS) /Fo$@ /c /Tp $<
66<<
67
68GENERICOBJS= \
69 ..\generic\$D\choicdgg.obj \
70 ..\generic\$D\gridg.obj \
71 ..\generic\$D\laywin.obj \
72 ..\generic\$D\panelg.obj \
73 ..\generic\$D\prop.obj \
74 ..\generic\$D\propform.obj \
75 ..\generic\$D\proplist.obj \
76 ..\generic\$D\sashwin.obj \
77 ..\generic\$D\scrolwin.obj \
78 ..\generic\$D\splitter.obj \
79 ..\generic\$D\statusbr.obj \
80 ..\generic\$D\tabg.obj \
81 ..\generic\$D\textdlgg.obj
82
83# ..\generic\$D\imaglist.obj \
84# ..\generic\$D\treectrl.obj \
85# ..\generic\$D\listctrl.obj \
86# ..\generic\$D\notebook.obj \
87
88# These are generic things that don't need to be compiled on MSW,
89# but sometimes it's useful to do so for testing purposes.
90NONESSENTIALOBJS= \
91 ..\generic\$D\printps.obj \
92 ..\generic\$D\prntdlgg.obj \
93 ..\generic\$D\msgdlgg.obj \
94 ..\generic\$D\helpxlp.obj \
95 ..\generic\$D\colrdlgg.obj \
96 ..\generic\$D\fontdlgg.obj
97
98COMMONOBJS = \
99 ..\common\$D\cmndata.obj \
100 ..\common\$D\config.obj \
101 ..\common\$D\db.obj \
102 ..\common\$D\dbtable.obj \
103 ..\common\$D\docview.obj \
104 ..\common\$D\docmdi.obj \
105 ..\common\$D\dynarray.obj \
106 ..\common\$D\dynlib.obj \
107 ..\common\$D\event.obj \
108 ..\common\$D\file.obj \
109 ..\common\$D\filefn.obj \
110 ..\common\$D\fileconf.obj \
111 ..\common\$D\framecmn.obj \
112 ..\common\$D\ftp.obj \
113 ..\common\$D\gdicmn.obj \
114 ..\common\$D\image.obj \
115 ..\common\$D\intl.obj \
116 ..\common\$D\ipcbase.obj \
117 ..\common\$D\helpbase.obj \
118 ..\common\$D\layout.obj \
119 ..\common\$D\log.obj \
120 ..\common\$D\memory.obj \
121 ..\common\$D\mimetype.obj \
122 ..\common\$D\module.obj \
123 ..\common\$D\odbc.obj \
124 ..\common\$D\object.obj \
125 ..\common\$D\prntbase.obj \
126 ..\common\$D\resource.obj \
127 ..\common\$D\tbarbase.obj \
128 ..\common\$D\tbarsmpl.obj \
129 ..\common\$D\textfile.obj \
130 ..\common\$D\timercmn.obj \
131 ..\common\$D\utilscmn.obj \
132 ..\common\$D\validate.obj \
133 ..\common\$D\valgen.obj \
134 ..\common\$D\valtext.obj \
135 ..\common\$D\date.obj \
136 ..\common\$D\hash.obj \
137 ..\common\$D\list.obj \
138 ..\common\$D\paper.obj \
139 ..\common\$D\string.obj \
140 ..\common\$D\socket.obj \
141 ..\common\$D\sckaddr.obj \
142 ..\common\$D\sckfile.obj \
143 ..\common\$D\sckipc.obj \
144 ..\common\$D\sckstrm.obj \
145 ..\common\$D\url.obj \
146 ..\common\$D\http.obj \
147 ..\common\$D\protocol.obj \
148 ..\common\$D\time.obj \
149 ..\common\$D\tokenzr.obj \
150 ..\common\$D\wxexpr.obj \
151 ..\common\$D\y_tab.obj \
152 ..\common\$D\extended.obj \
153 ..\common\$D\process.obj \
154 ..\common\$D\wfstream.obj \
155 ..\common\$D\mstream.obj \
156 ..\common\$D\zstream.obj \
157 ..\common\$D\stream.obj \
158 ..\common\$D\datstrm.obj \
159 ..\common\$D\objstrm.obj \
160 ..\common\$D\variant.obj \
161 ..\common\$D\wincmn.obj
162
163MSWOBJS = \
164 ..\msw\$D\accel.obj \
165 ..\msw\$D\app.obj \
166 ..\msw\$D\bitmap.obj \
167 ..\msw\$D\bmpbuttn.obj \
168 ..\msw\$D\brush.obj \
169 ..\msw\$D\button.obj \
170 ..\msw\$D\checkbox.obj \
171 ..\msw\$D\checklst.obj \
172 ..\msw\$D\choice.obj \
173 ..\msw\$D\clipbrd.obj \
174 ..\msw\$D\colordlg.obj \
175 ..\msw\$D\colour.obj \
176 ..\msw\$D\combobox.obj \
177 ..\msw\$D\control.obj \
178 ..\msw\$D\curico.obj \
179 ..\msw\$D\cursor.obj \
180 ..\msw\$D\data.obj \
181 ..\msw\$D\dc.obj \
182 ..\msw\$D\dcmemory.obj \
183 ..\msw\$D\dcclient.obj \
184 ..\msw\$D\dcprint.obj \
185 ..\msw\$D\dcscreen.obj \
186 ..\msw\$D\dde.obj \
187 ..\msw\$D\dialog.obj \
188 ..\msw\$D\dib.obj \
189 ..\msw\$D\dibutils.obj \
190 ..\msw\$D\dirdlg.obj \
191 ..\msw\$D\filedlg.obj \
192 ..\msw\$D\font.obj \
193 ..\msw\$D\fontdlg.obj \
194 ..\msw\$D\frame.obj \
195 ..\msw\$D\gauge95.obj \
196 ..\msw\$D\gaugemsw.obj \
197 ..\msw\$D\gdiobj.obj \
198 ..\msw\$D\helpwin.obj \
199 ..\msw\$D\icon.obj \
200 ..\msw\$D\iniconf.obj \
201 ..\msw\$D\joystick.obj \
202 ..\msw\$D\imaglist.obj \
203 ..\msw\$D\listbox.obj \
204 ..\msw\$D\listctrl.obj \
205 ..\msw\$D\main.obj \
206 ..\msw\$D\mdi.obj \
207 ..\msw\$D\menu.obj \
208 ..\msw\$D\menuitem.obj \
209 ..\msw\$D\metafile.obj \
210 ..\msw\$D\minifram.obj \
211 ..\msw\$D\msgdlg.obj \
212 ..\msw\$D\nativdlg.obj \
213 ..\msw\$D\notebook.obj \
214 ..\msw\$D\ownerdrw.obj \
215 ..\msw\$D\palette.obj \
216 ..\msw\$D\pen.obj \
217 ..\msw\$D\penwin.obj \
218 ..\msw\$D\pnghand.obj \
219 ..\msw\$D\printdlg.obj \
220 ..\msw\$D\printwin.obj \
221 ..\msw\$D\radiobox.obj \
222 ..\msw\$D\radiobut.obj \
223 ..\msw\$D\region.obj \
224 ..\msw\$D\registry.obj \
225 ..\msw\$D\regconf.obj \
226 ..\msw\$D\scrolbar.obj \
227 ..\msw\$D\settings.obj \
228 ..\msw\$D\slidrmsw.obj \
229 ..\msw\$D\slider95.obj \
230 ..\msw\$D\spinbutt.obj \
231 ..\msw\$D\statbmp.obj \
232 ..\msw\$D\statbox.obj \
233 ..\msw\$D\statbr95.obj \
234 ..\msw\$D\stattext.obj \
235 ..\msw\$D\tabctrl.obj \
236 ..\msw\$D\taskbar.obj \
237 ..\msw\$D\tbar95.obj \
238 ..\msw\$D\tbarmsw.obj \
239 ..\msw\$D\textctrl.obj \
240 ..\msw\$D\thread.obj \
241 ..\msw\$D\timer.obj \
242 ..\msw\$D\tooltip.obj \
243 ..\msw\$D\treectrl.obj \
244 ..\msw\$D\utils.obj \
245 ..\msw\$D\utilsexc.obj \
246 ..\msw\ole\$D\uuid.obj \
247 ..\msw\$D\wave.obj \
248 ..\msw\$D\window.obj \
249 ..\msw\$D\xpmhand.obj \
250 ..\msw\ole\$D\dataobj.obj \
251 ..\msw\ole\$D\automtn.obj \
252 ..\msw\ole\$D\droptgt.obj \
253 ..\msw\ole\$D\dropsrc.obj \
254 ..\msw\ole\$D\oleutils.obj
255
256# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
257OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
258
259# Normal, static library
260all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm $(LIBTARGET)
261
262dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D
263
264test: $(MSWDIR)\$D\wave.obj
265test2: ..\common\Debug\config.obj
266
267$D:
268 mkdir $D
269
270$(COMMDIR)\$D:
271 mkdir $(COMMDIR)\$D
272
273$(MSWDIR)\$D:
274 mkdir $(MSWDIR)\$D
275
276$(GENDIR)\$D:
277 mkdir $(GENDIR)\$D
278
279$(OLEDIR)\$D:
280 mkdir $(OLEDIR)\$D
281
282# wxWindows library as DLL
283dll:
284 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
285
286cleandll:
287 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
288
289# wxWindows + app as DLL. Only affects main.cpp.
290dllapp:
291 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
292
293# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
294dllnp:
295 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
296
297# Use this to make dummy.obj and generate a PCH.
298# You might use the dll target, then the pch target, in order to
299# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
300#
301# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
302# are associated with wx.lib. When using a DLL version of wxWindows, however,
303# the DLL is compiled without a PCH, so you only need it for compiling the app.
304# In fact headers are compiled differently depending on whether a DLL is being made
305# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
306# in each case) so you couldn't use the same PCH.
307pch:
308 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL)
309
310pch1: dirs $(DUMMYOBJ)
311 echo $(DUMMYOBJ)
312
313!if "$(WXMAKINGDLL)" != "1"
314
315### Static library
316
317$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
318 -erase $(LIBTARGET)
319 $(implib) @<<
320-out:$@
321-machine:$(CPU)
322$(OBJECTS) $(PERIPH_LIBS)
323<<
324
325!else
326
327### Update the import library
328
329$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
330 $(implib) @<<
331 -machine:$(CPU)
332 -def:wx.def
333 $(DUMMYOBJ) $(OBJECTS)
334 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
335<<
336
337# Update the dynamic link library
338$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib
339 $(link) @<<
340 $(LINKFLAGS)
341 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
342 $(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
343<<
344
345!endif
346
347
348########################################################
349# Windows-specific objects
350
351$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
352 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
353
354$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
355 cl @<<
356$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
357<<
358
359# If taking wxWindows from CVS, setup.h doesn't exist yet.
360# Actually the 'if not exist setup.h' test doesn't work
361# (copies the file anyway)
362# we'll have to comment this rule out.
363
364#$(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
365# cd "$(WXDIR)"\include\wx\msw
366# if not exist setup.h copy setup0.h setup.h
367# cd "$(WXDIR)"\src\msw
368
369..\common\$D\extended.obj: ..\common\extended.c
370 cl @<<
371$(CPPFLAGS2) /c $(COMMDIR)\extended.c /Fo$@
372<<
373
374..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
375 cl @<<
376$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
377<<
378
379..\common\y_tab.c: ..\common\dosyacc.c
380 copy "..\common"\dosyacc.c "..\common"\y_tab.c
381
382..\common\lex_yy.c: ..\common\doslex.c
383 copy "..\common"\doslex.c "..\common"\lex_yy.c
384
385$(OBJECTS): $(WXDIR)/include/wx/setup.h
386
387# Peripheral components
388
389png:
390 cd $(WXDIR)\src\png
391 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
392 cd $(WXDIR)\src\msw
393
394clean_png:
395 cd $(WXDIR)\src\png
396 nmake -f makefile.vc clean
397 cd $(WXDIR)\src\msw
398
399zlib:
400 cd $(WXDIR)\src\zlib
401 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
402 cd $(WXDIR)\src\msw
403
404clean_zlib:
405 cd $(WXDIR)\src\zlib
406 nmake -f makefile.vc clean
407 cd $(WXDIR)\src\msw
408
409xpm:
410 cd $(WXDIR)\src\xpm
411 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
412 cd $(WXDIR)\src\msw
413
414clean_xpm:
415 cd $(WXDIR)\src\xpm
416 nmake -f makefile.vc clean
417 cd $(WXDIR)\src\msw
418
419rcparser:
420 cd $(WXDIR)\utils\rcparser\src
421 nmake -f makefile.vc FINAL=$(FINAL)
422 cd $(WXDIR)\src\msw
423
424clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_xpm
425 -erase $(LIBTARGET)
426 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
427 -erase ..\..\lib\wx200.dll
428 -erase ..\..\lib\wx200.lib
429 -erase ..\..\lib\wx200.exp
430 -erase ..\..\lib\wx200.pdb
431 -erase ..\..\lib\wx200.ilk
432 -erase *.pdb
433 -erase *.sbr
434 -erase $(WXLIBNAME).pch
435 -erase $(GENDIR)\$D\*.obj
436 -erase $(GENDIR)\$D\*.pdb
437 -erase $(GENDIR)\$D\*.sbr
438 -erase $(COMMDIR)\$D\*.obj
439 -erase $(COMMDIR)\$D\*.pdb
440 -erase $(COMMDIR)\$D\*.sbr
441 -erase $(COMMDIR)\\y_tab.c
442 -erase $(COMMDIR)\lex_yy.c
443 -erase $(MSWDIR)\$D\*.obj
444 -erase $(MSWDIR)\$D\*.sbr
445 -erase $(MSWDIR)\$D\*.pdb
446 -erase $(OLEDIR)\$D\*.obj
447 -erase $(OLEDIR)\$D\*.sbr
448 -erase $(OLEDIR)\$D\*.pdb
449 -rmdir $(D)
450 -rmdir ole\$(D)
451 -rmdir ..\generic\$(D)
452 -rmdir ..\common\$(D)
453
454cleanall: clean
455
456# Making documents
457docs: allhlp allhtml allpdfrtf
458alldocs: docs
459hlp: wxhlp portinghlp
460wxhlp: $(DOCDIR)/winhelp/wx.hlp
461prophlp: $(DOCDIR)/winhelp/prop.hlp
462refhlp: $(DOCDIR)/winhelp/techref.hlp
463rtf: $(DOCDIR)/winhelp/wx.rtf
464proprtf: $(DOCDIR)/winhelp/prop.rtf
465pdfrtf: $(DOCDIR)/pdf/wx.rtf
466proppdfrtf: $(DOCDIR)/pdf/prop.rtf
467refpdfrtf: $(DOCDIR)/pdf/techref.rtf
468html: wxhtml portinghtml
469wxhtml: $(DOCDIR)\html\wx\wx.htm
470prophtml: $(DOCDIR)\html\proplist\prop.htm
471ps: wxps referencps
472wxps: $(WXDIR)\docs\ps\wx.ps
473propps: $(WXDIR)\docs\ps\prop.ps
474referencps: $(WXDIR)\docs\ps\referenc.ps
475
476portinghtml: $(DOCDIR)\html\porting\port.htm
477portingrtf: $(DOCDIR)/winhelp/porting.rtf
478portinghlp: $(DOCDIR)/winhelp/porting.hlp
479portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
480portingps: $(WXDIR)\docs\ps\porting.ps
481
482allhlp: wxhlp portinghlp prophlp
483 cd $(WXDIR)\utils\dialoged\src
484 nmake -f makefile.vc hlp
485 cd $(THISDIR)
486
487# cd $(WXDIR)\utils\wxhelp\src
488# nmake -f makefile.vc hlp
489# cd $(WXDIR)\utils\tex2rtf\src
490# nmake -f makefile.vc hlp
491# cd $(WXDIR)\utils\wxgraph\src
492# nmake -f makefile.vc hlp
493# cd $(WXDIR)\utils\wxchart\src
494# nmake -f makefile.vc hlp
495# cd $(WXDIR)\utils\wxtree\src
496# nmake -f makefile.vc hlp
497# cd $(WXDIR)\utils\wxbuild\src
498# nmake -f makefile.vc hlp
499# cd $(WXDIR)\utils\wxgrid\src
500# nmake -f makefile.vc hlp
501
502allhtml: wxhtml portinghtml prophtml
503 cd $(WXDIR)\utils\dialoged\src
504 nmake -f makefile.vc html
505 cd $(THISDIR)
506
507# nmake -f makefile.vc html
508# cd $(WXDIR)\utils\dialoged\src
509# nmake -f makefile.vc html
510# cd $(WXDIR)\utils\hytext\src
511# nmake -f makefile.vc html
512# cd $(WXDIR)\utils\wxhelp\src
513# nmake -f makefile.vc html
514# cd $(WXDIR)\utils\tex2rtf\src
515# nmake -f makefile.vc html
516# cd $(WXDIR)\utils\wxgraph\src
517# nmake -f makefile.vc html
518# cd $(WXDIR)\utils\wxchart\src
519# nmake -f makefile.vc html
520# cd $(WXDIR)\utils\wxtree\src
521# nmake -f makefile.vc html
522
523allps: wxps referencps portingps propps
524 cd $(WXDIR)\utils\dialoged\src
525 nmake -f makefile.vc ps
526 cd $(THISDIR)
527
528allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
529 cd $(WXDIR)\utils\dialoged\src
530 nmake -f makefile.vc pdfrtf
531 cd $(THISDIR)
532
533# cd $(WXDIR)\utils\wxhelp\src
534# nmake -f makefile.vc ps
535# cd $(WXDIR)\utils\tex2rtf\src
536# nmake -f makefile.vc ps
537# cd $(WXDIR)\utils\wxgraph\src
538# nmake -f makefile.vc ps
539# cd $(WXDIR)\utils\wxchart\src
540# nmake -f makefile.vc ps
541# cd $(WXDIR)\utils\wxtree\src
542# nmake -f makefile.vc ps
543# cd $(THISDIR)
544
545$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
546 cd $(DOCDIR)/latex/wx
547 -erase wx.ph
548 hc wx
549 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
550 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
551 cd $(THISDIR)
552
553$(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
554 cd $(DOCDIR)/latex/porting
555 -erase porting.ph
556 hc porting
557 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
558 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
559 cd $(THISDIR)
560
561$(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
562 cd $(DOCDIR)/latex/proplist
563 -erase prop.ph
564 hc prop
565 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
566 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
567 cd $(THISDIR)
568
569$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
570 cd $(DOCDIR)/latex/techref
571 -erase techref.ph
572 hc techref
573 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
574 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
575 cd $(THISDIR)
576
577$(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
578 cd $(DOCDIR)\latex\wx
579 -start /w tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
580 cd $(THISDIR)
581
582$(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
583 cd $(DOCDIR)\latex\porting
584 -start /w tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
585 cd $(THISDIR)
586
587$(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
588 cd $(DOCDIR)\latex\proplist
589 -start /w tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
590 cd $(THISDIR)
591
592$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
593 cd $(DOCDIR)\latex\techref
594 -start /w tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
595 cd $(THISDIR)
596
597$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
598 cd $(DOCDIR)\latex\wx
599 -copy *.bmp *.wmf $(DOCDIR)\pdf
600 -start /w tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
601 cd $(THISDIR)
602
603$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
604 cd $(DOCDIR)\latex\porting
605 -copy *.bmp *.wmf $(DOCDIR)\pdf
606 -start /w tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
607 cd $(THISDIR)
608
609$(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
610 cd $(DOCDIR)\latex\proplist
611 -copy *.bmp *.wmf $(DOCDIR)\pdf
612 -start /w tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
613 cd $(THISDIR)
614
615$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
616 cd $(DOCDIR)\latex\techref
617 -copy *.bmp *.wmf $(DOCDIR)\pdf
618 -start /w tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
619 cd $(THISDIR)
620
621$(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
622 cd $(DOCDIR)\latex\wx
623 -mkdir $(DOCDIR)\html\wx
624 -start /w tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
625 -erase $(DOCDIR)\html\wx\*.con
626 -erase $(DOCDIR)\html\wx\*.ref
627 -erase $(DOCDIR)\latex\wx\*.con
628 -erase $(DOCDIR)\latex\wx\*.ref
629 cd $(THISDIR)
630
631$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
632 cd $(DOCDIR)\latex\porting
633 -mkdir $(DOCDIR)\html\porting
634 -start /w tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
635 -erase $(DOCDIR)\html\porting\*.con
636 -erase $(DOCDIR)\html\porting\*.ref
637 -erase $(DOCDIR)\latex\porting\*.con
638 -erase $(DOCDIR)\latex\porting\*.ref
639 cd $(THISDIR)
640
641$(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex
642 cd $(DOCDIR)\latex\proplist
643 -mkdir $(DOCDIR)\html\proplist
644 -start /w tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
645 -erase $(DOCDIR)\html\proplist\*.con
646 -erase $(DOCDIR)\html\proplist\*.ref
647 -erase $(DOCDIR)\latex\proplist\*.con
648 -erase $(DOCDIR)\latex\proplist\*.ref
649 cd $(THISDIR)
650
651$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
652 cd $(WXDIR)\docs\latex\wx
653 -latex manual
654 -latex manual
655 -makeindx manual
656 -bibtex manual
657 -latex manual
658 -latex manual
659 cd $(THISDIR)
660
661$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
662 cd $(WXDIR)\docs\latex\porting
663 -latex porting
664 -latex porting
665 -makeindx porting
666 -bibtex porting
667 -latex porting
668 -latex porting
669 cd $(THISDIR)
670
671$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
672 cd $(WXDIR)\docs\latex\wx
673 -dvips32 -o wx.ps manual
674 move wx.ps $(WXDIR)\docs\ps\wx.ps
675 cd $(THISDIR)
676
677$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
678 cd $(WXDIR)\docs\latex\porting
679 -dvips32 -o porting.ps porting
680 move porting.ps $(WXDIR)\docs\ps\porting.ps
681 cd $(THISDIR)
682
683$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
684 cd $(WXDIR)\docs\latex\wx
685 -latex referenc
686 -latex referenc
687 -makeindx referenc
688 -bibtex referenc
689 -latex referenc
690 -latex referenc
691 cd $(THISDIR)
692
693$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
694 cd $(WXDIR)\docs\latex\wx
695 -dvips32 -o referenc.ps referenc
696 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
697 cd $(THISDIR)
698
699# In order to force document reprocessing
700touchmanual:
701 -touch $(WXDIR)\docs\latex\wx\manual.tex
702
703updatedocs: touchmanual alldocs
704
705# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
706# Office StartUp folder, and PDFMaker should be installed.
707updatepdf: # touchmanual pdfrtf
708 start /w "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
709