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