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