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