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