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