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