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