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