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