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