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