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