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