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