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