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