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