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