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