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