]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.vc
added new project file having the new files
[wxWidgets.git] / src / msw / makefile.vc
1 # This file was automatically generated by tmake at 20:55, 2001/07/13
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 $(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 rcparser:
628 cd $(WXDIR)\utils\rcparser\src
629 nmake -f makefile.vc FINAL=$(FINAL)
630 cd $(WXDIR)\src\msw
631
632 cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff
633 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
634 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
635 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
636 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
637 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
638
639
640 clean: $(PERIPH_CLEAN_TARGET)
641 -erase $(LIBTARGET)
642 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
643 -erase *.pdb
644 -erase *.sbr
645 -erase $(WXLIBNAME).pch
646 -erase $(GENDIR)\$D\*.obj
647 -erase $(GENDIR)\$D\*.pdb
648 -erase $(GENDIR)\$D\*.sbr
649 -erase $(COMMDIR)\$D\*.obj
650 -erase $(COMMDIR)\$D\*.pdb
651 -erase $(COMMDIR)\$D\*.sbr
652 -erase $(COMMDIR)\y_tab.c
653 -erase $(COMMDIR)\lex_yy.c
654 -erase $(MSWDIR)\$D\*.obj
655 -erase $(MSWDIR)\$D\*.sbr
656 -erase $(MSWDIR)\$D\*.pdb
657 -erase $(MSWDIR)\$D\*.pch
658 -erase $(OLEDIR)\$D\*.obj
659 -erase $(OLEDIR)\$D\*.sbr
660 -erase $(OLEDIR)\$D\*.pdb
661 -erase $(HTMLDIR)\$D\*.obj
662 -erase $(HTMLDIR)\$D\*.sbr
663 -erase $(HTMLDIR)\$D\*.pdb
664 -erase $(JPEGDIR)\$D\*.obj
665 -erase $(JPEGDIR)\$D\*.sbr
666 -erase $(JPEGDIR)\$D\*.idb
667 -erase $(JPEGDIR)\$D\*.pdb
668 -erase $(TIFFDIR)\$D\*.obj
669 -erase $(TIFFDIR)\$D\*.sbr
670 -erase $(TIFFDIR)\$D\*.pdb
671 -erase $(TIFFDIR)\$D\*.idb
672 -rmdir $(D)
673 -rmdir $(GENDIR)\$(D)
674 -rmdir $(COMMDIR)\$(D)
675 -rmdir $(MSWDIR)\$(D)
676 -rmdir $(OLEDIR)\$(D)
677 -rmdir $(HTMLDIR)\$(D)
678 -rmdir $(JPEGDIR)\$(D)
679 -rmdir $(TIFFDIR)\$(D)
680
681 # Making documents
682 docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
683 alldocs: docs
684 hlp: wxhlp
685 wxhlp: $(DOCDIR)/winhelp/wx.hlp
686 refhlp: $(DOCDIR)/winhelp/techref.hlp
687 rtf: $(DOCDIR)/winhelp/wx.rtf
688 pdfrtf: $(DOCDIR)/pdf/wx.rtf
689 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
690 html: wxhtml
691 htb: $(DOCDIR)\htb\wx.htb
692 wxhtml: $(DOCDIR)\html\wx\wx.htm
693 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
694 ps: wxps referencps
695 wxps: $(WXDIR)\docs\ps\wx.ps
696 referencps: $(WXDIR)\docs\ps\referenc.ps
697
698 allhlp: wxhlp
699 cd $(WXDIR)\utils\dialoged\src
700 nmake -f makefile.vc hlp
701 cd $(WXDIR)\utils\tex2rtf\src
702 nmake -f makefile.vc hlp
703 cd $(THISDIR)
704
705 allhtml: wxhtml
706 cd $(WXDIR)\utils\dialoged\src
707 nmake -f makefile.vc html
708 cd $(WXDIR)\utils\tex2rtf\src
709 nmake -f makefile.vc html
710 cd $(THISDIR)
711
712 allhtmlhelp: htmlhelp
713 cd $(WXDIR)\utils\dialoged\src
714 nmake -f makefile.vc htmlhelp
715 cd $(WXDIR)\utils\tex2rtf\src
716 nmake -f makefile.vc htmlhelp
717 cd $(THISDIR)
718
719 allhtb: htb
720 cd $(WXDIR)\utils\dialoged\src
721 nmake -f makefile.vc htb
722 cd $(WXDIR)\utils\tex2rtf\src
723 nmake -f makefile.vc htb
724 cd $(THISDIR)
725
726 allps: wxps referencps
727 cd $(WXDIR)\utils\dialoged\src
728 nmake -f makefile.vc ps
729 cd $(WXDIR)\utils\tex2rtf\src
730 nmake -f makefile.vc ps
731 cd $(THISDIR)
732
733 allpdfrtf: pdfrtf
734 cd $(WXDIR)\utils\dialoged\src
735 nmake -f makefile.vc pdfrtf
736 cd $(WXDIR)\utils\tex2rtf\src
737 nmake -f makefile.vc pdfrtf
738 cd $(THISDIR)
739
740 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
741 cd $(DOCDIR)/latex/wx
742 -erase wx.ph
743 hc wx
744 -erase $(DOCDIR)\winhelp\wx.hlp
745 -erase $(DOCDIR)\winhelp\wx.cnt
746 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
747 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
748 cd $(THISDIR)
749
750 $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
751 cd $(DOCDIR)/latex/techref
752 -erase techref.ph
753 hc techref
754 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
755 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
756 cd $(THISDIR)
757
758 $(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
759 cd $(DOCDIR)\latex\wx
760 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
761 cd $(THISDIR)
762
763 $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
764 cd $(DOCDIR)\latex\techref
765 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
766 cd $(THISDIR)
767
768 $(DOCDIR)/pdf/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 -copy *.wmf $(DOCDIR)\pdf
771 -copy *.bmp $(DOCDIR)\pdf
772 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
773 cd $(THISDIR)
774
775 $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
776 cd $(DOCDIR)\latex\techref
777 -copy *.wmf $(DOCDIR)\pdf
778 -copy *.bmp $(DOCDIR)\pdf
779 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
780 cd $(THISDIR)
781
782 $(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
783 cd $(DOCDIR)\latex\wx
784 -mkdir $(DOCDIR)\html\wx
785 copy *.gif $(DOCDIR)\html\wx
786 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
787 -erase $(DOCDIR)\html\wx\*.con
788 -erase $(DOCDIR)\html\wx\*.ref
789 -erase $(DOCDIR)\latex\wx\*.con
790 -erase $(DOCDIR)\latex\wx\*.ref
791 cd $(THISDIR)
792
793 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
794 cd $(DOCDIR)\html\wx
795 -hhc wx.hhp
796 -mkdir ..\..\htmlhelp
797 -erase $(DOCDIR)\htmlhelp\wx.chm
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 wx.zip wx.htb
840 zip 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 $(DOCDIR)\winhelp\wx.hlp
853 -erase $(DOCDIR)\winhelp\wx.cnt
854 -erase $(DOCDIR)\html\wx\*.htm
855 -erase $(DOCDIR)\pdf\wx.rtf
856 -erase $(DOCDIR)\latex\wx\wx.rtf
857 -erase $(DOCDIR)\latex\wx\WX.PH
858 -erase $(DOCDIR)\htmlhelp\wx.chm
859 -erase $(DOCDIR)\htb\wx.htb
860
861 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
862 # Office StartUp folder, and PDFMaker should be installed.
863 updatepdf: # touchmanual pdfrtf
864 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
865
866
867 MFTYPE=vc
868 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
869 cd $(WXWIN)\distrib\msw\tmake
870 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
871 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
872