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