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