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