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