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