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