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