]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.vc
Added the missing check for libw needed for wcslen() (Just defines in headers
[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 \
145 ..\common\$D\sckfile.obj \
146 ..\common\$D\sckipc.obj \
147 ..\common\$D\sckstrm.obj \
148 ..\common\$D\url.obj \
149 ..\common\$D\http.obj \
150 ..\common\$D\protocol.obj \
151 ..\common\$D\time.obj \
152 ..\common\$D\tokenzr.obj \
153 ..\common\$D\wxexpr.obj \
154 ..\common\$D\y_tab.obj \
155 ..\common\$D\extended.obj \
156 ..\common\$D\process.obj \
157 ..\common\$D\wfstream.obj \
158 ..\common\$D\mstream.obj \
159 ..\common\$D\zstream.obj \
160 ..\common\$D\stream.obj \
161 ..\common\$D\datstrm.obj \
162 ..\common\$D\objstrm.obj \
163 ..\common\$D\variant.obj \
f3dbd876
OK
164 ..\common\$D\wincmn.obj \
165 ..\common\$D\wxchar.obj
2bda0e17 166
ca5c8b2d
JS
167MSWOBJS = \
168 ..\msw\$D\accel.obj \
169 ..\msw\$D\app.obj \
170 ..\msw\$D\bitmap.obj \
171 ..\msw\$D\bmpbuttn.obj \
172 ..\msw\$D\brush.obj \
173 ..\msw\$D\button.obj \
174 ..\msw\$D\checkbox.obj \
175 ..\msw\$D\checklst.obj \
176 ..\msw\$D\choice.obj \
177 ..\msw\$D\clipbrd.obj \
178 ..\msw\$D\colordlg.obj \
179 ..\msw\$D\colour.obj \
180 ..\msw\$D\combobox.obj \
181 ..\msw\$D\control.obj \
182 ..\msw\$D\curico.obj \
183 ..\msw\$D\cursor.obj \
184 ..\msw\$D\data.obj \
185 ..\msw\$D\dc.obj \
186 ..\msw\$D\dcmemory.obj \
187 ..\msw\$D\dcclient.obj \
188 ..\msw\$D\dcprint.obj \
189 ..\msw\$D\dcscreen.obj \
190 ..\msw\$D\dde.obj \
191 ..\msw\$D\dialog.obj \
192 ..\msw\$D\dib.obj \
193 ..\msw\$D\dibutils.obj \
194 ..\msw\$D\dirdlg.obj \
6c41a418 195 ..\msw\$D\dragimag.obj \
ca5c8b2d
JS
196 ..\msw\$D\filedlg.obj \
197 ..\msw\$D\font.obj \
198 ..\msw\$D\fontdlg.obj \
199 ..\msw\$D\frame.obj \
200 ..\msw\$D\gauge95.obj \
201 ..\msw\$D\gaugemsw.obj \
202 ..\msw\$D\gdiobj.obj \
203 ..\msw\$D\helpwin.obj \
204 ..\msw\$D\icon.obj \
205 ..\msw\$D\iniconf.obj \
206 ..\msw\$D\joystick.obj \
207 ..\msw\$D\imaglist.obj \
208 ..\msw\$D\listbox.obj \
209 ..\msw\$D\listctrl.obj \
210 ..\msw\$D\main.obj \
211 ..\msw\$D\mdi.obj \
212 ..\msw\$D\menu.obj \
213 ..\msw\$D\menuitem.obj \
214 ..\msw\$D\metafile.obj \
215 ..\msw\$D\minifram.obj \
216 ..\msw\$D\msgdlg.obj \
217 ..\msw\$D\nativdlg.obj \
218 ..\msw\$D\notebook.obj \
219 ..\msw\$D\ownerdrw.obj \
220 ..\msw\$D\palette.obj \
221 ..\msw\$D\pen.obj \
222 ..\msw\$D\penwin.obj \
223 ..\msw\$D\pnghand.obj \
224 ..\msw\$D\printdlg.obj \
225 ..\msw\$D\printwin.obj \
226 ..\msw\$D\radiobox.obj \
227 ..\msw\$D\radiobut.obj \
228 ..\msw\$D\region.obj \
229 ..\msw\$D\registry.obj \
230 ..\msw\$D\regconf.obj \
231 ..\msw\$D\scrolbar.obj \
232 ..\msw\$D\settings.obj \
233 ..\msw\$D\slidrmsw.obj \
234 ..\msw\$D\slider95.obj \
235 ..\msw\$D\spinbutt.obj \
236 ..\msw\$D\statbmp.obj \
237 ..\msw\$D\statbox.obj \
238 ..\msw\$D\statbr95.obj \
239 ..\msw\$D\stattext.obj \
240 ..\msw\$D\tabctrl.obj \
241 ..\msw\$D\taskbar.obj \
242 ..\msw\$D\tbar95.obj \
243 ..\msw\$D\tbarmsw.obj \
244 ..\msw\$D\textctrl.obj \
245 ..\msw\$D\thread.obj \
246 ..\msw\$D\timer.obj \
247 ..\msw\$D\tooltip.obj \
248 ..\msw\$D\treectrl.obj \
249 ..\msw\$D\utils.obj \
250 ..\msw\$D\utilsexc.obj \
251 ..\msw\ole\$D\uuid.obj \
252 ..\msw\$D\wave.obj \
253 ..\msw\$D\window.obj \
254 ..\msw\$D\xpmhand.obj \
255 ..\msw\ole\$D\dataobj.obj \
256 ..\msw\ole\$D\automtn.obj \
257 ..\msw\ole\$D\droptgt.obj \
258 ..\msw\ole\$D\dropsrc.obj \
259 ..\msw\ole\$D\oleutils.obj
2bda0e17 260
ca5c8b2d
JS
261# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
262OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
fcc6dddd 263
ca5c8b2d
JS
264# Normal, static library
265all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm $(LIBTARGET)
fcc6dddd 266
e12f91dc 267dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D
fcc6dddd 268
ca5c8b2d
JS
269test: $(MSWDIR)\$D\wave.obj
270test2: ..\common\Debug\config.obj
fcc6dddd 271
ca5c8b2d
JS
272$D:
273 mkdir $D
fcc6dddd 274
ca5c8b2d
JS
275$(COMMDIR)\$D:
276 mkdir $(COMMDIR)\$D
fcc6dddd 277
ca5c8b2d
JS
278$(MSWDIR)\$D:
279 mkdir $(MSWDIR)\$D
fcc6dddd 280
ca5c8b2d
JS
281$(GENDIR)\$D:
282 mkdir $(GENDIR)\$D
fcc6dddd 283
ca5c8b2d
JS
284$(OLEDIR)\$D:
285 mkdir $(OLEDIR)\$D
fcc6dddd 286
ca5c8b2d
JS
287# wxWindows library as DLL
288dll:
289 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
2bda0e17 290
ca5c8b2d
JS
291cleandll:
292 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
2bda0e17 293
ca5c8b2d
JS
294# wxWindows + app as DLL. Only affects main.cpp.
295dllapp:
296 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
79c3e0e1 297
ca5c8b2d
JS
298# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
299dllnp:
300 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
79c3e0e1 301
ca5c8b2d
JS
302# Use this to make dummy.obj and generate a PCH.
303# You might use the dll target, then the pch target, in order to
304# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
305#
306# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
307# are associated with wx.lib. When using a DLL version of wxWindows, however,
308# the DLL is compiled without a PCH, so you only need it for compiling the app.
309# In fact headers are compiled differently depending on whether a DLL is being made
310# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
311# in each case) so you couldn't use the same PCH.
e12f91dc 312pch:
ca5c8b2d 313 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL)
79c3e0e1 314
ca5c8b2d
JS
315pch1: dirs $(DUMMYOBJ)
316 echo $(DUMMYOBJ)
79c3e0e1 317
ca5c8b2d 318!if "$(WXMAKINGDLL)" != "1"
cf447356 319
ca5c8b2d 320### Static library
fcc6dddd 321
ca5c8b2d
JS
322$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
323 -erase $(LIBTARGET)
324 $(implib) @<<
325-out:$@
326-machine:$(CPU)
327$(OBJECTS) $(PERIPH_LIBS)
cf447356
GL
328<<
329
ca5c8b2d 330!else
341287bf 331
ca5c8b2d 332### Update the import library
3d8bd7d6 333
ca5c8b2d
JS
334$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
335 $(implib) @<<
336 -machine:$(CPU)
337 -def:wx.def
338 $(DUMMYOBJ) $(OBJECTS)
339 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
ca7731b7
GL
340<<
341
ca5c8b2d
JS
342# Update the dynamic link library
343$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib
344 $(link) @<<
345 $(LINKFLAGS)
346 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
347 $(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
348<<
349
ca5c8b2d 350!endif
2bda0e17 351
2bda0e17
KB
352
353########################################################
ca5c8b2d 354# Windows-specific objects
2bda0e17 355
ca5c8b2d
JS
356$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
357 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
2bda0e17 358
ca5c8b2d 359$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
2bda0e17 360 cl @<<
ca5c8b2d 361$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
2bda0e17
KB
362<<
363
ca5c8b2d 364# If taking wxWindows from CVS, setup.h doesn't exist yet.
b23386b2
JS
365# Actually the 'if not exist setup.h' test doesn't work
366# (copies the file anyway)
367# we'll have to comment this rule out.
368
369#$(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
370# cd "$(WXDIR)"\include\wx\msw
371# if not exist setup.h copy setup0.h setup.h
372# cd "$(WXDIR)"\src\msw
2bda0e17 373
ca5c8b2d 374..\common\$D\extended.obj: ..\common\extended.c
f60d0f94 375 cl @<<
ca5c8b2d 376$(CPPFLAGS2) /c $(COMMDIR)\extended.c /Fo$@
f60d0f94
JS
377<<
378
ca5c8b2d 379..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
f60d0f94 380 cl @<<
ca5c8b2d 381$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
f60d0f94
JS
382<<
383
ca5c8b2d
JS
384..\common\y_tab.c: ..\common\dosyacc.c
385 copy "..\common"\dosyacc.c "..\common"\y_tab.c
f60d0f94 386
ca5c8b2d
JS
387..\common\lex_yy.c: ..\common\doslex.c
388 copy "..\common"\doslex.c "..\common"\lex_yy.c
f60d0f94 389
4fabb575 390$(OBJECTS): $(WXDIR)/include/wx/setup.h
2bda0e17 391
2bda0e17
KB
392# Peripheral components
393
fbcb4166
JS
394png:
395 cd $(WXDIR)\src\png
48d1144b 396 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
fbcb4166
JS
397 cd $(WXDIR)\src\msw
398
399clean_png:
400 cd $(WXDIR)\src\png
48d1144b 401 nmake -f makefile.vc clean
fbcb4166
JS
402 cd $(WXDIR)\src\msw
403
404zlib:
405 cd $(WXDIR)\src\zlib
48d1144b 406 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
fbcb4166
JS
407 cd $(WXDIR)\src\msw
408
409clean_zlib:
410 cd $(WXDIR)\src\zlib
48d1144b 411 nmake -f makefile.vc clean
fbcb4166
JS
412 cd $(WXDIR)\src\msw
413
2bda0e17 414xpm:
2fd284a4 415 cd $(WXDIR)\src\xpm
48d1144b 416 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
2bda0e17
KB
417 cd $(WXDIR)\src\msw
418
419clean_xpm:
2fd284a4 420 cd $(WXDIR)\src\xpm
48d1144b 421 nmake -f makefile.vc clean
2bda0e17
KB
422 cd $(WXDIR)\src\msw
423
424rcparser:
425 cd $(WXDIR)\utils\rcparser\src
48d1144b 426 nmake -f makefile.vc FINAL=$(FINAL)
2bda0e17
KB
427 cd $(WXDIR)\src\msw
428
2fd284a4 429clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_xpm
2bda0e17 430 -erase $(LIBTARGET)
ca5c8b2d 431 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
2bda0e17
KB
432 -erase ..\..\lib\wx200.dll
433 -erase ..\..\lib\wx200.lib
434 -erase ..\..\lib\wx200.exp
435 -erase ..\..\lib\wx200.pdb
436 -erase ..\..\lib\wx200.ilk
437 -erase *.pdb
438 -erase *.sbr
ca5c8b2d
JS
439 -erase $(WXLIBNAME).pch
440 -erase $(GENDIR)\$D\*.obj
441 -erase $(GENDIR)\$D\*.pdb
442 -erase $(GENDIR)\$D\*.sbr
443 -erase $(COMMDIR)\$D\*.obj
444 -erase $(COMMDIR)\$D\*.pdb
445 -erase $(COMMDIR)\$D\*.sbr
446 -erase $(COMMDIR)\\y_tab.c
447 -erase $(COMMDIR)\lex_yy.c
448 -erase $(MSWDIR)\$D\*.obj
449 -erase $(MSWDIR)\$D\*.sbr
450 -erase $(MSWDIR)\$D\*.pdb
451 -erase $(OLEDIR)\$D\*.obj
452 -erase $(OLEDIR)\$D\*.sbr
453 -erase $(OLEDIR)\$D\*.pdb
454 -rmdir $(D)
455 -rmdir ole\$(D)
456 -rmdir ..\generic\$(D)
457 -rmdir ..\common\$(D)
2bda0e17
KB
458
459cleanall: clean
460
461# Making documents
62448488
JS
462docs: allhlp allhtml allpdfrtf
463alldocs: docs
20e85460 464hlp: wxhlp portinghlp
2bda0e17 465wxhlp: $(DOCDIR)/winhelp/wx.hlp
f3a65071 466prophlp: $(DOCDIR)/winhelp/prop.hlp
2bda0e17
KB
467refhlp: $(DOCDIR)/winhelp/techref.hlp
468rtf: $(DOCDIR)/winhelp/wx.rtf
f3a65071 469proprtf: $(DOCDIR)/winhelp/prop.rtf
2bda0e17 470pdfrtf: $(DOCDIR)/pdf/wx.rtf
f3a65071 471proppdfrtf: $(DOCDIR)/pdf/prop.rtf
2bda0e17 472refpdfrtf: $(DOCDIR)/pdf/techref.rtf
20e85460 473html: wxhtml portinghtml
2bda0e17 474wxhtml: $(DOCDIR)\html\wx\wx.htm
f3a65071 475prophtml: $(DOCDIR)\html\proplist\prop.htm
20e85460 476ps: wxps referencps
2bda0e17 477wxps: $(WXDIR)\docs\ps\wx.ps
f3a65071 478propps: $(WXDIR)\docs\ps\prop.ps
2bda0e17
KB
479referencps: $(WXDIR)\docs\ps\referenc.ps
480
481portinghtml: $(DOCDIR)\html\porting\port.htm
482portingrtf: $(DOCDIR)/winhelp/porting.rtf
483portinghlp: $(DOCDIR)/winhelp/porting.hlp
484portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
485portingps: $(WXDIR)\docs\ps\porting.ps
486
20e85460 487allhlp: wxhlp portinghlp prophlp
2bda0e17 488 cd $(WXDIR)\utils\dialoged\src
48d1144b 489 nmake -f makefile.vc hlp
2bda0e17
KB
490 cd $(THISDIR)
491
492# cd $(WXDIR)\utils\wxhelp\src
48d1144b 493# nmake -f makefile.vc hlp
2bda0e17 494# cd $(WXDIR)\utils\tex2rtf\src
48d1144b 495# nmake -f makefile.vc hlp
2bda0e17 496# cd $(WXDIR)\utils\wxgraph\src
48d1144b 497# nmake -f makefile.vc hlp
2bda0e17 498# cd $(WXDIR)\utils\wxchart\src
48d1144b 499# nmake -f makefile.vc hlp
2bda0e17 500# cd $(WXDIR)\utils\wxtree\src
48d1144b 501# nmake -f makefile.vc hlp
2bda0e17 502# cd $(WXDIR)\utils\wxbuild\src
48d1144b 503# nmake -f makefile.vc hlp
2bda0e17 504# cd $(WXDIR)\utils\wxgrid\src
48d1144b 505# nmake -f makefile.vc hlp
2bda0e17 506
20e85460 507allhtml: wxhtml portinghtml prophtml
2bda0e17 508 cd $(WXDIR)\utils\dialoged\src
48d1144b 509 nmake -f makefile.vc html
2bda0e17
KB
510 cd $(THISDIR)
511
48d1144b 512# nmake -f makefile.vc html
2bda0e17 513# cd $(WXDIR)\utils\dialoged\src
48d1144b 514# nmake -f makefile.vc html
2bda0e17 515# cd $(WXDIR)\utils\hytext\src
48d1144b 516# nmake -f makefile.vc html
2bda0e17 517# cd $(WXDIR)\utils\wxhelp\src
48d1144b 518# nmake -f makefile.vc html
2bda0e17 519# cd $(WXDIR)\utils\tex2rtf\src
48d1144b 520# nmake -f makefile.vc html
2bda0e17 521# cd $(WXDIR)\utils\wxgraph\src
48d1144b 522# nmake -f makefile.vc html
2bda0e17 523# cd $(WXDIR)\utils\wxchart\src
48d1144b 524# nmake -f makefile.vc html
2bda0e17 525# cd $(WXDIR)\utils\wxtree\src
48d1144b 526# nmake -f makefile.vc html
2bda0e17 527
20e85460 528allps: wxps referencps portingps propps
2bda0e17 529 cd $(WXDIR)\utils\dialoged\src
48d1144b 530 nmake -f makefile.vc ps
2bda0e17
KB
531 cd $(THISDIR)
532
20e85460 533allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
2bda0e17 534 cd $(WXDIR)\utils\dialoged\src
48d1144b 535 nmake -f makefile.vc pdfrtf
2bda0e17
KB
536 cd $(THISDIR)
537
538# cd $(WXDIR)\utils\wxhelp\src
48d1144b 539# nmake -f makefile.vc ps
2bda0e17 540# cd $(WXDIR)\utils\tex2rtf\src
48d1144b 541# nmake -f makefile.vc ps
2bda0e17 542# cd $(WXDIR)\utils\wxgraph\src
48d1144b 543# nmake -f makefile.vc ps
2bda0e17 544# cd $(WXDIR)\utils\wxchart\src
48d1144b 545# nmake -f makefile.vc ps
2bda0e17 546# cd $(WXDIR)\utils\wxtree\src
48d1144b 547# nmake -f makefile.vc ps
2bda0e17
KB
548# cd $(THISDIR)
549
2bda0e17
KB
550$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
551 cd $(DOCDIR)/latex/wx
552 -erase wx.ph
553 hc wx
554 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
555 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
556 cd $(THISDIR)
557
558$(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
559 cd $(DOCDIR)/latex/porting
560 -erase porting.ph
561 hc porting
562 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
563 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
564 cd $(THISDIR)
565
f3a65071 566$(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
e3a43801 567 cd $(DOCDIR)/latex/proplist
f3a65071
JS
568 -erase prop.ph
569 hc prop
570 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
571 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
e3a43801
JS
572 cd $(THISDIR)
573
2bda0e17
KB
574$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
575 cd $(DOCDIR)/latex/techref
576 -erase techref.ph
577 hc techref
578 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
579 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
580 cd $(THISDIR)
581
582$(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
583 cd $(DOCDIR)\latex\wx
e12f91dc 584 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
2bda0e17
KB
585 cd $(THISDIR)
586
587$(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
588 cd $(DOCDIR)\latex\porting
e12f91dc 589 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
2bda0e17
KB
590 cd $(THISDIR)
591
f3a65071 592$(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 593 cd $(DOCDIR)\latex\proplist
e12f91dc 594 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
e3a43801
JS
595 cd $(THISDIR)
596
2bda0e17
KB
597$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
598 cd $(DOCDIR)\latex\techref
e12f91dc 599 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
2bda0e17
KB
600 cd $(THISDIR)
601
602$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
603 cd $(DOCDIR)\latex\wx
604 -copy *.bmp *.wmf $(DOCDIR)\pdf
e12f91dc 605 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
2bda0e17
KB
606 cd $(THISDIR)
607
608$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
609 cd $(DOCDIR)\latex\porting
610 -copy *.bmp *.wmf $(DOCDIR)\pdf
e12f91dc 611 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
2bda0e17
KB
612 cd $(THISDIR)
613
20e85460 614$(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
615 cd $(DOCDIR)\latex\proplist
616 -copy *.bmp *.wmf $(DOCDIR)\pdf
e12f91dc 617 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
e3a43801
JS
618 cd $(THISDIR)
619
2bda0e17
KB
620$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
621 cd $(DOCDIR)\latex\techref
622 -copy *.bmp *.wmf $(DOCDIR)\pdf
e12f91dc 623 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
2bda0e17
KB
624 cd $(THISDIR)
625
626$(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
627 cd $(DOCDIR)\latex\wx
628 -mkdir $(DOCDIR)\html\wx
e12f91dc 629 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
2bda0e17 630 -erase $(DOCDIR)\html\wx\*.con
06e43511
JS
631 -erase $(DOCDIR)\html\wx\*.ref
632 -erase $(DOCDIR)\latex\wx\*.con
633 -erase $(DOCDIR)\latex\wx\*.ref
634 cd $(THISDIR)
2bda0e17
KB
635
636$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
637 cd $(DOCDIR)\latex\porting
638 -mkdir $(DOCDIR)\html\porting
e12f91dc 639 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
2bda0e17
KB
640 -erase $(DOCDIR)\html\porting\*.con
641 -erase $(DOCDIR)\html\porting\*.ref
642 -erase $(DOCDIR)\latex\porting\*.con
643 -erase $(DOCDIR)\latex\porting\*.ref
644 cd $(THISDIR)
645
e3a43801
JS
646$(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
647 cd $(DOCDIR)\latex\proplist
648 -mkdir $(DOCDIR)\html\proplist
e12f91dc 649 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
e3a43801
JS
650 -erase $(DOCDIR)\html\proplist\*.con
651 -erase $(DOCDIR)\html\proplist\*.ref
652 -erase $(DOCDIR)\latex\proplist\*.con
653 -erase $(DOCDIR)\latex\proplist\*.ref
2bda0e17
KB
654 cd $(THISDIR)
655
656$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
657 cd $(WXDIR)\docs\latex\wx
658 -latex manual
659 -latex manual
660 -makeindx manual
661 -bibtex manual
662 -latex manual
663 -latex manual
664 cd $(THISDIR)
665
666$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
667 cd $(WXDIR)\docs\latex\porting
668 -latex porting
669 -latex porting
670 -makeindx porting
671 -bibtex porting
672 -latex porting
673 -latex porting
674 cd $(THISDIR)
675
676$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
677 cd $(WXDIR)\docs\latex\wx
678 -dvips32 -o wx.ps manual
679 move wx.ps $(WXDIR)\docs\ps\wx.ps
680 cd $(THISDIR)
681
682$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
683 cd $(WXDIR)\docs\latex\porting
684 -dvips32 -o porting.ps porting
685 move porting.ps $(WXDIR)\docs\ps\porting.ps
686 cd $(THISDIR)
687
688$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
689 cd $(WXDIR)\docs\latex\wx
690 -latex referenc
691 -latex referenc
692 -makeindx referenc
693 -bibtex referenc
694 -latex referenc
695 -latex referenc
696 cd $(THISDIR)
697
698$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
699 cd $(WXDIR)\docs\latex\wx
700 -dvips32 -o referenc.ps referenc
701 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
702 cd $(THISDIR)
703
da36f544
JS
704# In order to force document reprocessing
705touchmanual:
706 -touch $(WXDIR)\docs\latex\wx\manual.tex
62448488
JS
707
708updatedocs: touchmanual alldocs
709
710# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
711# Office StartUp folder, and PDFMaker should be installed.
712updatepdf: # touchmanual pdfrtf
e12f91dc 713 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
2845ddc2 714