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