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