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