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