]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.vc
mention wx[Flex]GridSizer too
[wxWidgets.git] / src / msw / makefile.vc
CommitLineData
2431209c 1# This file was automatically generated by tmake at 10:56, 2001/10/08
a1b82138
VZ
2# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T!
3
4# File: makefile.vc
5# Author: Julian Smart
6# Created: 1997
3848ffef 7# Updated:
a1b82138 8# Copyright: (c) 1997, Julian Smart
2bda0e17
KB
9#
10# "%W% %G%"
11#
12# Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
13# Arguments:
14#
15# FINAL=1 argument to nmake to build version with no debugging info.
16# dll builds a library (wxdll.lib) suitable for creating DLLs
2bda0e17 17#
48d1144b 18!include <..\makevc.env>
2bda0e17
KB
19
20THISDIR=$(WXWIN)\src\msw
21
22!if "$(WXMAKINGDLL)" == "1"
ca5c8b2d
JS
23LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
24DUMMYOBJ=$D\dummydll.obj
2bda0e17
KB
25!else
26LIBTARGET=$(WXLIB)
ca5c8b2d 27DUMMYOBJ=$D\dummy.obj
2bda0e17
KB
28!endif
29
fb6261e9
JS
30# This one overrides the others, to be consistent with the settings in setup.h
31MINIMAL_WXWINDOWS_SETUP=0
32
2bda0e17
KB
33PERIPH_LIBS=
34PERIPH_TARGET=
35PERIPH_CLEAN_TARGET=
36
3ca6a5f0
BP
37# Set to 0 if not using GLCanvas (only affects DLL build)
38USE_GLCANVAS=1
39
e3556282
MB
40# Set to 0 if you are using MSVC 5
41USE_MSVC_5=0
42
f97c9854
JS
43# These are absolute paths, so that the compiler
44# generates correct __FILE__ symbols for debugging.
45# Otherwise you don't be able to double-click on a memory
46# error to load that file.
47GENDIR=$(WXDIR)\src\generic
48COMMDIR=$(WXDIR)\src\common
2bda0e17 49OLEDIR=ole
f97c9854 50MSWDIR=$(WXDIR)\src\msw
ca5c8b2d 51DOCDIR = $(WXDIR)\docs
4705ee2d 52HTMLDIR = $(WXDIR)\src\html
8773bc76
VZ
53JPEGDIR = $(WXDIR)\src\jpeg
54TIFFDIR = $(WXDIR)\src\tiff
2431209c
RD
55REGEXDIR = $(WXDIR)\src\regex
56
2bda0e17 57
0cbff120 58{$(GENDIR)}.cpp{$(GENDIR)\$D}.obj:
8e97b17b 59 cl @<<
ca5c8b2d 60$(CPPFLAGS) /Fo$@ /c /Tp $<
2bda0e17
KB
61<<
62
0cbff120 63{$(COMMDIR)}.cpp{$(COMMDIR)\$D}.obj:
8e97b17b 64 cl @<<
ca5c8b2d 65$(CPPFLAGS) /Fo$@ /c /Tp $<
89c684ef
JS
66<<
67
0cbff120 68{$(COMMDIR)}.c{$(COMMDIR)\$D}.obj:
8e97b17b 69 cl @<<
cc9efb9b 70$(CPPFLAGS2) /Fo$@ /c /Tc $<
530e7fa3
VZ
71<<
72
0cbff120 73{$(MSWDIR)}.cpp{$(MSWDIR)\$D}.obj:
8e97b17b 74 cl @<<
ca5c8b2d 75$(CPPFLAGS) /Fo$@ /c /Tp $<
2bda0e17
KB
76<<
77
0cbff120 78{$(MSWDIR)}.c{$(MSWDIR)\$D}.obj:
8e97b17b 79 cl @<<
2bbf4618
RD
80$(CPPFLAGS2) /Fo$@ /c /Tc $<
81<<
82
0cbff120 83{$(OLEDIR)}.cpp{$(OLEDIR)\$D}.obj:
8e97b17b 84 cl @<<
ca5c8b2d 85$(CPPFLAGS) /Fo$@ /c /Tp $<
2bda0e17
KB
86<<
87
0cbff120 88{$(HTMLDIR)}.cpp{$(HTMLDIR)\$D}.obj:
8e97b17b 89 cl @<<
4705ee2d
RS
90$(CPPFLAGS) /Fo$@ /c /Tp $<
91<<
92
0cbff120
JS
93GENERICOBJS= $(GENDIR)\$D\busyinfo.obj \
94 $(GENDIR)\$D\calctrl.obj \
95 $(GENDIR)\$D\choicdgg.obj \
96 $(GENDIR)\$D\dirctrlg.obj \
97 $(GENDIR)\$D\dragimgg.obj \
98 $(GENDIR)\$D\grid.obj \
99 $(GENDIR)\$D\gridctrl.obj \
100 $(GENDIR)\$D\gridsel.obj \
101 $(GENDIR)\$D\laywin.obj \
102 $(GENDIR)\$D\logg.obj \
103 $(GENDIR)\$D\numdlgg.obj \
104 $(GENDIR)\$D\panelg.obj \
105 $(GENDIR)\$D\progdlgg.obj \
106 $(GENDIR)\$D\prop.obj \
107 $(GENDIR)\$D\propform.obj \
108 $(GENDIR)\$D\proplist.obj \
109 $(GENDIR)\$D\sashwin.obj \
110 $(GENDIR)\$D\scrlwing.obj \
111 $(GENDIR)\$D\spinctlg.obj \
112 $(GENDIR)\$D\splash.obj \
113 $(GENDIR)\$D\splitter.obj \
114 $(GENDIR)\$D\statusbr.obj \
115 $(GENDIR)\$D\tbarsmpl.obj \
116 $(GENDIR)\$D\textdlgg.obj \
117 $(GENDIR)\$D\tipdlg.obj \
118 $(GENDIR)\$D\tipwin.obj \
119 $(GENDIR)\$D\treectlg.obj \
120 $(GENDIR)\$D\treelay.obj \
121 $(GENDIR)\$D\wizard.obj
2bda0e17 122
ca5c8b2d
JS
123# These are generic things that don't need to be compiled on MSW,
124# but sometimes it's useful to do so for testing purposes.
0cbff120
JS
125NONESSENTIALOBJS= $(GENDIR)\$D\colrdlgg.obj \
126 $(GENDIR)\$D\dirdlgg.obj \
127 $(GENDIR)\$D\fontdlgg.obj \
128 $(GENDIR)\$D\helpext.obj \
129 $(GENDIR)\$D\helphtml.obj \
130 $(GENDIR)\$D\helpwxht.obj \
131 $(GENDIR)\$D\imaglist.obj \
132 $(GENDIR)\$D\listctrl.obj \
133 $(GENDIR)\$D\msgdlgg.obj \
134 $(GENDIR)\$D\notebook.obj \
135 $(GENDIR)\$D\tabg.obj
2bda0e17 136
ca5c8b2d 137COMMONOBJS = \
0cbff120
JS
138 $(COMMDIR)\$D\y_tab.obj \
139 $(COMMDIR)\$D\appcmn.obj \
140 $(COMMDIR)\$D\choiccmn.obj \
141 $(COMMDIR)\$D\clipcmn.obj \
142 $(COMMDIR)\$D\cmdline.obj \
143 $(COMMDIR)\$D\cmdproc.obj \
144 $(COMMDIR)\$D\cmndata.obj \
145 $(COMMDIR)\$D\config.obj \
003d347f 146 $(COMMDIR)\$D\containr.obj \
0cbff120
JS
147 $(COMMDIR)\$D\cshelp.obj \
148 $(COMMDIR)\$D\ctrlcmn.obj \
149 $(COMMDIR)\$D\ctrlsub.obj \
150 $(COMMDIR)\$D\datetime.obj \
151 $(COMMDIR)\$D\datstrm.obj \
152 $(COMMDIR)\$D\db.obj \
153 $(COMMDIR)\$D\dbgrid.obj \
154 $(COMMDIR)\$D\dbtable.obj \
155 $(COMMDIR)\$D\dcbase.obj \
156 $(COMMDIR)\$D\dircmn.obj \
157 $(COMMDIR)\$D\dlgcmn.obj \
158 $(COMMDIR)\$D\dndcmn.obj \
159 $(COMMDIR)\$D\dobjcmn.obj \
160 $(COMMDIR)\$D\docmdi.obj \
161 $(COMMDIR)\$D\docview.obj \
162 $(COMMDIR)\$D\dynarray.obj \
163 $(COMMDIR)\$D\dynlib.obj \
164 $(COMMDIR)\$D\effects.obj \
165 $(COMMDIR)\$D\encconv.obj \
166 $(COMMDIR)\$D\event.obj \
167 $(COMMDIR)\$D\extended.obj \
8db37e06 168 $(COMMDIR)\$D\fddlgcmn.obj \
0cbff120
JS
169 $(COMMDIR)\$D\ffile.obj \
170 $(COMMDIR)\$D\file.obj \
171 $(COMMDIR)\$D\fileconf.obj \
172 $(COMMDIR)\$D\filefn.obj \
173 $(COMMDIR)\$D\filename.obj \
174 $(COMMDIR)\$D\filesys.obj \
175 $(COMMDIR)\$D\fontcmn.obj \
176 $(COMMDIR)\$D\fontmap.obj \
177 $(COMMDIR)\$D\framecmn.obj \
178 $(COMMDIR)\$D\fs_inet.obj \
179 $(COMMDIR)\$D\fs_mem.obj \
180 $(COMMDIR)\$D\fs_zip.obj \
181 $(COMMDIR)\$D\ftp.obj \
182 $(COMMDIR)\$D\gaugecmn.obj \
183 $(COMMDIR)\$D\gdicmn.obj \
184 $(COMMDIR)\$D\geometry.obj \
185 $(COMMDIR)\$D\gifdecod.obj \
186 $(COMMDIR)\$D\hash.obj \
187 $(COMMDIR)\$D\helpbase.obj \
188 $(COMMDIR)\$D\http.obj \
189 $(COMMDIR)\$D\imagall.obj \
190 $(COMMDIR)\$D\imagbmp.obj \
191 $(COMMDIR)\$D\image.obj \
192 $(COMMDIR)\$D\imaggif.obj \
193 $(COMMDIR)\$D\imagjpeg.obj \
194 $(COMMDIR)\$D\imagpcx.obj \
195 $(COMMDIR)\$D\imagpng.obj \
196 $(COMMDIR)\$D\imagpnm.obj \
197 $(COMMDIR)\$D\imagtiff.obj \
198 $(COMMDIR)\$D\imagxpm.obj \
199 $(COMMDIR)\$D\intl.obj \
200 $(COMMDIR)\$D\ipcbase.obj \
201 $(COMMDIR)\$D\layout.obj \
202 $(COMMDIR)\$D\lboxcmn.obj \
203 $(COMMDIR)\$D\list.obj \
204 $(COMMDIR)\$D\log.obj \
205 $(COMMDIR)\$D\longlong.obj \
206 $(COMMDIR)\$D\matrix.obj \
207 $(COMMDIR)\$D\memory.obj \
208 $(COMMDIR)\$D\menucmn.obj \
209 $(COMMDIR)\$D\mimecmn.obj \
210 $(COMMDIR)\$D\module.obj \
211 $(COMMDIR)\$D\mstream.obj \
212 $(COMMDIR)\$D\nbkbase.obj \
213 $(COMMDIR)\$D\object.obj \
214 $(COMMDIR)\$D\objstrm.obj \
215 $(COMMDIR)\$D\odbc.obj \
216 $(COMMDIR)\$D\paper.obj \
2bda9cc8 217 $(COMMDIR)\$D\popupcmn.obj \
0cbff120
JS
218 $(COMMDIR)\$D\prntbase.obj \
219 $(COMMDIR)\$D\process.obj \
220 $(COMMDIR)\$D\protocol.obj \
221 $(COMMDIR)\$D\quantize.obj \
222 $(COMMDIR)\$D\radiocmn.obj \
2bda9cc8 223 $(COMMDIR)\$D\regex.obj \
0cbff120
JS
224 $(COMMDIR)\$D\resource.obj \
225 $(COMMDIR)\$D\sckaddr.obj \
226 $(COMMDIR)\$D\sckfile.obj \
227 $(COMMDIR)\$D\sckipc.obj \
228 $(COMMDIR)\$D\sckstrm.obj \
229 $(COMMDIR)\$D\serbase.obj \
230 $(COMMDIR)\$D\sizer.obj \
231 $(COMMDIR)\$D\socket.obj \
232 $(COMMDIR)\$D\strconv.obj \
233 $(COMMDIR)\$D\stream.obj \
234 $(COMMDIR)\$D\string.obj \
235 $(COMMDIR)\$D\sysopt.obj \
236 $(COMMDIR)\$D\tbarbase.obj \
237 $(COMMDIR)\$D\textcmn.obj \
238 $(COMMDIR)\$D\textfile.obj \
239 $(COMMDIR)\$D\timercmn.obj \
240 $(COMMDIR)\$D\tokenzr.obj \
ce32af5d 241 $(COMMDIR)\$D\toplvcmn.obj \
0cbff120
JS
242 $(COMMDIR)\$D\treebase.obj \
243 $(COMMDIR)\$D\txtstrm.obj \
244 $(COMMDIR)\$D\unzip.obj \
245 $(COMMDIR)\$D\url.obj \
246 $(COMMDIR)\$D\utilscmn.obj \
247 $(COMMDIR)\$D\valgen.obj \
248 $(COMMDIR)\$D\validate.obj \
249 $(COMMDIR)\$D\valtext.obj \
250 $(COMMDIR)\$D\variant.obj \
251 $(COMMDIR)\$D\wfstream.obj \
252 $(COMMDIR)\$D\wincmn.obj \
253 $(COMMDIR)\$D\wxchar.obj \
254 $(COMMDIR)\$D\wxexpr.obj \
255 $(COMMDIR)\$D\xpmdecod.obj \
256 $(COMMDIR)\$D\zipstrm.obj \
257 $(COMMDIR)\$D\zstream.obj
258
259MSWOBJS = $(MSWDIR)\$D\accel.obj \
260 $(MSWDIR)\$D\app.obj \
261 $(OLEDIR)\$D\automtn.obj \
262 $(MSWDIR)\$D\bitmap.obj \
263 $(MSWDIR)\$D\bmpbuttn.obj \
264 $(MSWDIR)\$D\brush.obj \
265 $(MSWDIR)\$D\button.obj \
266 $(MSWDIR)\$D\caret.obj \
267 $(MSWDIR)\$D\checkbox.obj \
268 $(MSWDIR)\$D\checklst.obj \
269 $(MSWDIR)\$D\choice.obj \
270 $(MSWDIR)\$D\clipbrd.obj \
271 $(MSWDIR)\$D\colordlg.obj \
272 $(MSWDIR)\$D\colour.obj \
273 $(MSWDIR)\$D\combobox.obj \
274 $(MSWDIR)\$D\control.obj \
275 $(MSWDIR)\$D\curico.obj \
276 $(MSWDIR)\$D\cursor.obj \
277 $(MSWDIR)\$D\data.obj \
278 $(OLEDIR)\$D\dataobj.obj \
279 $(MSWDIR)\$D\dc.obj \
280 $(MSWDIR)\$D\dcclient.obj \
281 $(MSWDIR)\$D\dcmemory.obj \
282 $(MSWDIR)\$D\dcprint.obj \
283 $(MSWDIR)\$D\dcscreen.obj \
284 $(MSWDIR)\$D\dde.obj \
285 $(MSWDIR)\$D\dialog.obj \
286 $(MSWDIR)\$D\dialup.obj \
287 $(MSWDIR)\$D\dib.obj \
288 $(MSWDIR)\$D\dibutils.obj \
289 $(MSWDIR)\$D\dir.obj \
290 $(MSWDIR)\$D\dirdlg.obj \
291 $(MSWDIR)\$D\dragimag.obj \
292 $(OLEDIR)\$D\dropsrc.obj \
293 $(OLEDIR)\$D\droptgt.obj \
294 $(MSWDIR)\$D\enhmeta.obj \
295 $(MSWDIR)\$D\evtloop.obj \
8db37e06 296 $(MSWDIR)\$D\fdrepdlg.obj \
0cbff120
JS
297 $(MSWDIR)\$D\filedlg.obj \
298 $(MSWDIR)\$D\font.obj \
299 $(MSWDIR)\$D\fontdlg.obj \
300 $(MSWDIR)\$D\fontenum.obj \
301 $(MSWDIR)\$D\fontutil.obj \
302 $(MSWDIR)\$D\frame.obj \
303 $(MSWDIR)\$D\gauge95.obj \
304 $(MSWDIR)\$D\gdiimage.obj \
305 $(MSWDIR)\$D\gdiobj.obj \
306 $(MSWDIR)\$D\glcanvas.obj \
307 $(MSWDIR)\$D\gsocket.obj \
308 $(MSWDIR)\$D\gsockmsw.obj \
06069dda 309 $(MSWDIR)\$D\helpbest.obj \
0cbff120
JS
310 $(MSWDIR)\$D\helpchm.obj \
311 $(MSWDIR)\$D\helpwin.obj \
312 $(MSWDIR)\$D\icon.obj \
313 $(MSWDIR)\$D\imaglist.obj \
314 $(MSWDIR)\$D\joystick.obj \
315 $(MSWDIR)\$D\listbox.obj \
316 $(MSWDIR)\$D\listctrl.obj \
317 $(MSWDIR)\$D\main.obj \
318 $(MSWDIR)\$D\mdi.obj \
319 $(MSWDIR)\$D\menu.obj \
320 $(MSWDIR)\$D\menuitem.obj \
321 $(MSWDIR)\$D\metafile.obj \
322 $(MSWDIR)\$D\mimetype.obj \
323 $(MSWDIR)\$D\minifram.obj \
324 $(MSWDIR)\$D\msgdlg.obj \
325 $(MSWDIR)\$D\nativdlg.obj \
326 $(MSWDIR)\$D\notebook.obj \
327 $(OLEDIR)\$D\oleutils.obj \
328 $(MSWDIR)\$D\ownerdrw.obj \
329 $(MSWDIR)\$D\palette.obj \
330 $(MSWDIR)\$D\pen.obj \
331 $(MSWDIR)\$D\penwin.obj \
332 $(MSWDIR)\$D\printdlg.obj \
333 $(MSWDIR)\$D\printwin.obj \
334 $(MSWDIR)\$D\radiobox.obj \
335 $(MSWDIR)\$D\radiobut.obj \
336 $(MSWDIR)\$D\regconf.obj \
337 $(MSWDIR)\$D\region.obj \
338 $(MSWDIR)\$D\registry.obj \
339 $(MSWDIR)\$D\scrolbar.obj \
340 $(MSWDIR)\$D\settings.obj \
341 $(MSWDIR)\$D\slider95.obj \
342 $(MSWDIR)\$D\snglinst.obj \
343 $(MSWDIR)\$D\spinbutt.obj \
344 $(MSWDIR)\$D\spinctrl.obj \
345 $(MSWDIR)\$D\statbmp.obj \
346 $(MSWDIR)\$D\statbox.obj \
347 $(MSWDIR)\$D\statbr95.obj \
348 $(MSWDIR)\$D\statline.obj \
349 $(MSWDIR)\$D\stattext.obj \
350 $(MSWDIR)\$D\tabctrl.obj \
351 $(MSWDIR)\$D\taskbar.obj \
352 $(MSWDIR)\$D\tbar95.obj \
353 $(MSWDIR)\$D\textctrl.obj \
354 $(MSWDIR)\$D\tglbtn.obj \
355 $(MSWDIR)\$D\thread.obj \
356 $(MSWDIR)\$D\timer.obj \
357 $(MSWDIR)\$D\tooltip.obj \
34a1d732 358 $(MSWDIR)\$D\toplevel.obj \
0cbff120
JS
359 $(MSWDIR)\$D\treectrl.obj \
360 $(MSWDIR)\$D\utils.obj \
361 $(MSWDIR)\$D\utilsexc.obj \
362 $(OLEDIR)\$D\uuid.obj \
363 $(MSWDIR)\$D\wave.obj \
364 $(MSWDIR)\$D\window.obj
365
366HTMLOBJS = $(HTMLDIR)\$D\helpctrl.obj \
367 $(HTMLDIR)\$D\helpdata.obj \
368 $(HTMLDIR)\$D\helpfrm.obj \
369 $(HTMLDIR)\$D\htmlcell.obj \
370 $(HTMLDIR)\$D\htmlfilt.obj \
371 $(HTMLDIR)\$D\htmlpars.obj \
372 $(HTMLDIR)\$D\htmltag.obj \
373 $(HTMLDIR)\$D\htmlwin.obj \
374 $(HTMLDIR)\$D\htmprint.obj \
375 $(HTMLDIR)\$D\m_dflist.obj \
376 $(HTMLDIR)\$D\m_fonts.obj \
377 $(HTMLDIR)\$D\m_hline.obj \
378 $(HTMLDIR)\$D\m_image.obj \
379 $(HTMLDIR)\$D\m_layout.obj \
380 $(HTMLDIR)\$D\m_links.obj \
381 $(HTMLDIR)\$D\m_list.obj \
382 $(HTMLDIR)\$D\m_meta.obj \
383 $(HTMLDIR)\$D\m_pre.obj \
384 $(HTMLDIR)\$D\m_tables.obj \
385 $(HTMLDIR)\$D\winpars.obj
2131a664 386
4705ee2d 387
ca5c8b2d 388# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
4705ee2d 389# Add $(HTMLOBJS) if wanting wxHTML classes
2bbf4618 390OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
fcc6dddd 391
ca5c8b2d 392# Normal, static library
8e673075 393all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff regex $(LIBTARGET)
8816486e
GT
394
395setuph:
396 cd $(WXDIR)\include\wx\msw
397 if not exist setup.h copy setup0.h setup.h
398 cd $(WXDIR)\src\msw
fcc6dddd 399
2431209c 400dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D $(JPEGDIR)\$D $(TIFFDIR)\$D $(REGEXDIR)\$D
4705ee2d 401
ca5c8b2d 402$D:
162999bf 403 mkdir $D
fcc6dddd 404
ca5c8b2d 405$(COMMDIR)\$D:
162999bf 406 mkdir $(COMMDIR)\$D
fcc6dddd 407
ca5c8b2d 408$(MSWDIR)\$D:
162999bf 409 mkdir $(MSWDIR)\$D
fcc6dddd 410
ca5c8b2d 411$(GENDIR)\$D:
162999bf 412 mkdir $(GENDIR)\$D
fcc6dddd 413
ca5c8b2d 414$(OLEDIR)\$D:
162999bf 415 mkdir $(OLEDIR)\$D
fcc6dddd 416
4705ee2d 417$(HTMLDIR)\$D:
162999bf 418 mkdir $(HTMLDIR)\$D
4705ee2d 419
8773bc76
VZ
420$(JPEGDIR)\$D:
421 mkdir $(JPEGDIR)\$D
422
423$(TIFFDIR)\$D:
424 mkdir $(TIFFDIR)\$D
425
2431209c
RD
426$(REGEXDIR)\$D:
427 mkdir $(REGEXDIR)\$D
428
ca5c8b2d
JS
429# wxWindows library as DLL
430dll:
a4fe6524 431 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
2bda0e17 432
ca5c8b2d 433cleandll:
a4fe6524 434 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
2bda0e17 435
ca5c8b2d
JS
436# wxWindows + app as DLL. Only affects main.cpp.
437dllapp:
438 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
79c3e0e1 439
ca5c8b2d
JS
440# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
441dllnp:
442 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
79c3e0e1 443
ca5c8b2d
JS
444# Use this to make dummy.obj and generate a PCH.
445# You might use the dll target, then the pch target, in order to
446# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
447#
448# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
449# are associated with wx.lib. When using a DLL version of wxWindows, however,
450# the DLL is compiled without a PCH, so you only need it for compiling the app.
451# In fact headers are compiled differently depending on whether a DLL is being made
452# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
453# in each case) so you couldn't use the same PCH.
e12f91dc 454pch:
a4fe6524 455 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
79c3e0e1 456
ca5c8b2d
JS
457pch1: dirs $(DUMMYOBJ)
458 echo $(DUMMYOBJ)
79c3e0e1 459
ca5c8b2d 460!if "$(WXMAKINGDLL)" != "1"
cf447356 461
ca5c8b2d 462### Static library
fcc6dddd 463
ca5c8b2d 464$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
918a745c 465 -erase $(LIBTARGET)
8e97b17b 466 $(implib) @<<
ca5c8b2d
JS
467-out:$@
468-machine:$(CPU)
7fee680b 469$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
cf447356
GL
470<<
471
ca5c8b2d 472!else
341287bf 473
ca5c8b2d 474### Update the import library
3d8bd7d6 475
ca5c8b2d
JS
476$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
477 $(implib) @<<
478 -machine:$(CPU)
479 -def:wx.def
480 $(DUMMYOBJ) $(OBJECTS)
481 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
ca7731b7
GL
482<<
483
ee284519
RD
484!if "$(USE_GLCANVAS)" == "1"
485GL_LIBS=opengl32.lib glu32.lib
20a2bdc9 486# GL_LIBS_DELAY=/delayload:opengl32.dll
ee284519
RD
487!endif
488
e3556282
MB
489!if "$(USE_MSVC_5)" == "1"
490# we are too big
491INCREMENTAL=/INCREMENTAL:NO
492DELAY_LOAD=
493!else
494INCREMENTAL=
495DELAY_LOAD=delayimp.lib \
496 /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll \
497 /delayload:gdi32.dll \
498 /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll \
499 /delayload:ole32.dll \
500 /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY)
501!endif
502
ca5c8b2d 503# Update the dynamic link library
a9221a95 504$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
ca5c8b2d 505 $(link) @<<
e3556282 506 $(LINKFLAGS) $(INCREMENTAL)
ca5c8b2d 507 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
9feee261 508 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(GL_LIBS) $(WXDIR)\lib\png$(LIBEXT).lib $(WXDIR)\lib\zlib$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib $(WXDIR)\lib\regex$(LIBEXT).lib $(DELAY_LOAD)
2bda0e17
KB
509<<
510
ca5c8b2d 511!endif
2bda0e17 512
9e85f5ec 513# /delayload:winmm.dll # Removed because it can cause a crash for some people
2bda0e17
KB
514
515########################################################
ca5c8b2d 516# Windows-specific objects
2bda0e17 517
ca5c8b2d
JS
518$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
519 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
2bda0e17 520
ca5c8b2d 521$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
2bda0e17 522 cl @<<
ca5c8b2d 523$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
2bda0e17
KB
524<<
525
a2327a9f 526# Compile certain files with no optimization (some files cause a
f6bcfd97 527# compiler crash for buggy versions of VC++, e.g. 4.0).
7fee680b 528# Don't forget to put FINAL=1 on the command line.
a2327a9f 529noopt:
8e97b17b 530 cl @<<
a2327a9f
JS
531$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
532<<
8e97b17b 533 cl @<<
a2327a9f
JS
534$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
535<<
8e97b17b 536 cl @<<
a2327a9f 537$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
669f7a11
JS
538<<
539 cl @<<
540$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
a2327a9f 541<<
8e97b17b 542 cl @<<
a2327a9f
JS
543$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
544<<
8e97b17b 545 cl @<<
a2327a9f
JS
546$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
547<<
8e97b17b 548 cl @<<
a2327a9f
JS
549$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
550<<
8e97b17b 551 cl @<<
a2327a9f 552$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
669f7a11
JS
553<<
554 cl @<<
555$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
a2327a9f 556<<
8e97b17b 557 cl @<<
a2327a9f
JS
558$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
559<<
8e97b17b 560 cl @<<
a2327a9f
JS
561$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
562<<
8e97b17b 563 cl @<<
a2327a9f
JS
564$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
565<<
8e97b17b 566 cl @<<
a2327a9f
JS
567$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
568<<
8e97b17b 569 cl @<<
a2327a9f
JS
570$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
571<<
8e97b17b 572 cl @<<
a2327a9f
JS
573$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
574<<
8e97b17b 575 cl @<<
a2327a9f
JS
576$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
577<<
8e97b17b 578 cl @<<
a2327a9f
JS
579$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
580<<
8e97b17b 581 cl @<<
a2327a9f
JS
582$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
583<<
8e97b17b 584 cl @<<
a2327a9f
JS
585$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
586<<
8e97b17b 587 cl @<<
a2327a9f
JS
588$(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
589<<
590
0cbff120 591$(COMMDIR)\$D\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
f60d0f94 592 cl @<<
0cbff120 593$(CPPFLAGS2) /c $(COMMDIR)\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
f60d0f94
JS
594<<
595
0cbff120
JS
596$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
597 copy "$(COMMDIR)"\dosyacc.c "$(COMMDIR)"\y_tab.c
f60d0f94 598
0cbff120
JS
599$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
600 copy "$(COMMDIR)"\doslex.c "$(COMMDIR)"\lex_yy.c
f60d0f94 601
8e97b17b 602$(OBJECTS): $(WXDIR)/include/wx/setup.h
2bda0e17 603
0cbff120 604$(COMMDIR)\$D\unzip.obj: $(COMMDIR)\unzip.c
4705ee2d
RS
605 cl @<<
606$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
607<<
608
2bda0e17
KB
609# Peripheral components
610
fbcb4166
JS
611png:
612 cd $(WXDIR)\src\png
3156ba6e 613 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
fbcb4166
JS
614 cd $(WXDIR)\src\msw
615
616clean_png:
617 cd $(WXDIR)\src\png
48d1144b 618 nmake -f makefile.vc clean
fbcb4166
JS
619 cd $(WXDIR)\src\msw
620
621zlib:
622 cd $(WXDIR)\src\zlib
3156ba6e 623 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
fbcb4166
JS
624 cd $(WXDIR)\src\msw
625
626clean_zlib:
627 cd $(WXDIR)\src\zlib
48d1144b 628 nmake -f makefile.vc clean
fbcb4166
JS
629 cd $(WXDIR)\src\msw
630
0f3e3e0c
JS
631jpeg:
632 cd $(WXDIR)\src\jpeg
3156ba6e 633 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
0f3e3e0c
JS
634 cd $(WXDIR)\src\msw
635
636clean_jpeg:
637 cd $(WXDIR)\src\jpeg
638 nmake -f makefile.vc clean
639 cd $(WXDIR)\src\msw
640
112d35a2
VZ
641tiff:
642 cd $(WXDIR)\src\tiff
643 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
644 cd $(WXDIR)\src\msw
645
646clean_tiff:
647 cd $(WXDIR)\src\tiff
648 nmake -f makefile.vc clean
649 cd $(WXDIR)\src\msw
650
8e673075
RD
651regex:
652 cd $(WXDIR)\src\regex
2431209c 653 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
8e673075
RD
654 cd $(WXDIR)\src\msw
655
656clean_regex:
657 cd $(WXDIR)\src\regex
658 nmake -f makefile.vc clean
659 cd $(WXDIR)\src\msw
660
2bda0e17
KB
661rcparser:
662 cd $(WXDIR)\utils\rcparser\src
48d1144b 663 nmake -f makefile.vc FINAL=$(FINAL)
2bda0e17
KB
664 cd $(WXDIR)\src\msw
665
8e673075 666cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff clean_regex
918a745c
VZ
667 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
668 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
669 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
670 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
671 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
8e97b17b
VZ
672
673
674clean: $(PERIPH_CLEAN_TARGET)
918a745c
VZ
675 -erase $(LIBTARGET)
676 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
677 -erase *.pdb
678 -erase *.sbr
679 -erase $(WXLIBNAME).pch
680 -erase $(GENDIR)\$D\*.obj
681 -erase $(GENDIR)\$D\*.pdb
682 -erase $(GENDIR)\$D\*.sbr
683 -erase $(COMMDIR)\$D\*.obj
684 -erase $(COMMDIR)\$D\*.pdb
685 -erase $(COMMDIR)\$D\*.sbr
686 -erase $(COMMDIR)\y_tab.c
687 -erase $(COMMDIR)\lex_yy.c
688 -erase $(MSWDIR)\$D\*.obj
689 -erase $(MSWDIR)\$D\*.sbr
690 -erase $(MSWDIR)\$D\*.pdb
8773bc76 691 -erase $(MSWDIR)\$D\*.pch
918a745c
VZ
692 -erase $(OLEDIR)\$D\*.obj
693 -erase $(OLEDIR)\$D\*.sbr
694 -erase $(OLEDIR)\$D\*.pdb
695 -erase $(HTMLDIR)\$D\*.obj
696 -erase $(HTMLDIR)\$D\*.sbr
697 -erase $(HTMLDIR)\$D\*.pdb
8773bc76
VZ
698 -erase $(JPEGDIR)\$D\*.obj
699 -erase $(JPEGDIR)\$D\*.sbr
700 -erase $(JPEGDIR)\$D\*.idb
701 -erase $(JPEGDIR)\$D\*.pdb
702 -erase $(TIFFDIR)\$D\*.obj
703 -erase $(TIFFDIR)\$D\*.sbr
704 -erase $(TIFFDIR)\$D\*.pdb
705 -erase $(TIFFDIR)\$D\*.idb
ca5c8b2d 706 -rmdir $(D)
8773bc76
VZ
707 -rmdir $(GENDIR)\$(D)
708 -rmdir $(COMMDIR)\$(D)
709 -rmdir $(MSWDIR)\$(D)
710 -rmdir $(OLEDIR)\$(D)
711 -rmdir $(HTMLDIR)\$(D)
712 -rmdir $(JPEGDIR)\$(D)
713 -rmdir $(TIFFDIR)\$(D)
2bda0e17 714
2bda0e17 715# Making documents
ab85e6cd 716docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
62448488 717alldocs: docs
9d9b7755 718hlp: wxhlp
2bda0e17 719wxhlp: $(DOCDIR)/winhelp/wx.hlp
2bda0e17
KB
720refhlp: $(DOCDIR)/winhelp/techref.hlp
721rtf: $(DOCDIR)/winhelp/wx.rtf
2bda0e17 722pdfrtf: $(DOCDIR)/pdf/wx.rtf
2bda0e17 723refpdfrtf: $(DOCDIR)/pdf/techref.rtf
8e97b17b 724html: wxhtml
f6bcfd97 725htb: $(DOCDIR)\htb\wx.htb
8e97b17b 726wxhtml: $(DOCDIR)\html\wx\wx.htm
f6bcfd97 727htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
20e85460 728ps: wxps referencps
8e97b17b
VZ
729wxps: $(WXDIR)\docs\ps\wx.ps
730referencps: $(WXDIR)\docs\ps\referenc.ps
2bda0e17 731
9d9b7755 732allhlp: wxhlp
2bda0e17 733 cd $(WXDIR)\utils\dialoged\src
48d1144b 734 nmake -f makefile.vc hlp
ab85e6cd
JS
735 cd $(WXDIR)\utils\tex2rtf\src
736 nmake -f makefile.vc hlp
2bda0e17
KB
737 cd $(THISDIR)
738
9d9b7755 739allhtml: wxhtml
2bda0e17 740 cd $(WXDIR)\utils\dialoged\src
48d1144b 741 nmake -f makefile.vc html
ab85e6cd
JS
742 cd $(WXDIR)\utils\tex2rtf\src
743 nmake -f makefile.vc html
744 cd $(THISDIR)
745
746allhtmlhelp: htmlhelp
747 cd $(WXDIR)\utils\dialoged\src
748 nmake -f makefile.vc htmlhelp
749 cd $(WXDIR)\utils\tex2rtf\src
750 nmake -f makefile.vc htmlhelp
751 cd $(THISDIR)
752
753allhtb: htb
754 cd $(WXDIR)\utils\dialoged\src
755 nmake -f makefile.vc htb
756 cd $(WXDIR)\utils\tex2rtf\src
757 nmake -f makefile.vc htb
2bda0e17
KB
758 cd $(THISDIR)
759
9d9b7755 760allps: wxps referencps
2bda0e17 761 cd $(WXDIR)\utils\dialoged\src
48d1144b 762 nmake -f makefile.vc ps
ab85e6cd
JS
763 cd $(WXDIR)\utils\tex2rtf\src
764 nmake -f makefile.vc ps
2bda0e17
KB
765 cd $(THISDIR)
766
9d9b7755 767allpdfrtf: pdfrtf
2bda0e17 768 cd $(WXDIR)\utils\dialoged\src
48d1144b 769 nmake -f makefile.vc pdfrtf
ab85e6cd
JS
770 cd $(WXDIR)\utils\tex2rtf\src
771 nmake -f makefile.vc pdfrtf
2bda0e17
KB
772 cd $(THISDIR)
773
2bda0e17
KB
774$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
775 cd $(DOCDIR)/latex/wx
918a745c 776 -erase wx.ph
2bda0e17 777 hc wx
918a745c
VZ
778 -erase $(DOCDIR)\winhelp\wx.hlp
779 -erase $(DOCDIR)\winhelp\wx.cnt
2bda0e17
KB
780 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
781 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
782 cd $(THISDIR)
783
2bda0e17
KB
784$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
785 cd $(DOCDIR)/latex/techref
918a745c 786 -erase techref.ph
2bda0e17
KB
787 hc techref
788 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
789 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
790 cd $(THISDIR)
791
792$(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
793 cd $(DOCDIR)\latex\wx
e12f91dc 794 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
2bda0e17
KB
795 cd $(THISDIR)
796
2bda0e17
KB
797$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
798 cd $(DOCDIR)\latex\techref
e12f91dc 799 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
2bda0e17
KB
800 cd $(THISDIR)
801
802$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
803 cd $(DOCDIR)\latex\wx
48c12cb1
PA
804 -copy *.wmf $(DOCDIR)\pdf
805 -copy *.bmp $(DOCDIR)\pdf
e12f91dc 806 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
2bda0e17
KB
807 cd $(THISDIR)
808
2bda0e17
KB
809$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
810 cd $(DOCDIR)\latex\techref
48c12cb1
PA
811 -copy *.wmf $(DOCDIR)\pdf
812 -copy *.bmp $(DOCDIR)\pdf
e12f91dc 813 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
2bda0e17
KB
814 cd $(THISDIR)
815
816$(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
817 cd $(DOCDIR)\latex\wx
162999bf 818 -mkdir $(DOCDIR)\html\wx
f6bcfd97 819 copy *.gif $(DOCDIR)\html\wx
e12f91dc 820 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
918a745c
VZ
821 -erase $(DOCDIR)\html\wx\*.con
822 -erase $(DOCDIR)\html\wx\*.ref
823 -erase $(DOCDIR)\latex\wx\*.con
824 -erase $(DOCDIR)\latex\wx\*.ref
06e43511 825 cd $(THISDIR)
2bda0e17 826
f6bcfd97 827$(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
8e97b17b
VZ
828 cd $(DOCDIR)\html\wx
829 -hhc wx.hhp
f6bcfd97 830 -mkdir ..\..\htmlhelp
918a745c 831 -erase $(DOCDIR)\htmlhelp\wx.chm
f6bcfd97 832 move wx.chm ..\..\htmlhelp
8e97b17b 833 cd $(THISDIR)
a8db5b6a 834
8e97b17b
VZ
835$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
836 cd $(WXDIR)\docs\latex\wx
2bda0e17
KB
837 -latex manual
838 -latex manual
839 -makeindx manual
840 -bibtex manual
841 -latex manual
842 -latex manual
843 cd $(THISDIR)
844
8e97b17b
VZ
845$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
846 cd $(WXDIR)\docs\latex\wx
2bda0e17
KB
847 -dvips32 -o wx.ps manual
848 move wx.ps $(WXDIR)\docs\ps\wx.ps
849 cd $(THISDIR)
850
8e97b17b
VZ
851$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
852 cd $(WXDIR)\docs\latex\wx
2bda0e17
KB
853 -latex referenc
854 -latex referenc
855 -makeindx referenc
856 -bibtex referenc
857 -latex referenc
858 -latex referenc
859 cd $(THISDIR)
860
8e97b17b
VZ
861$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
862 cd $(WXDIR)\docs\latex\wx
2bda0e17
KB
863 -dvips32 -o referenc.ps referenc
864 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
865 cd $(THISDIR)
866
fac26663
JS
867# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
868# files, renamed to htb.
869# This can then be used with e.g. helpview.
870# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
f6bcfd97 871$(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
fac26663 872 cd $(WXDIR)\docs\html\wx
918a745c 873 -erase wx.zip wx.htb
f1d93f0b 874 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
875 -mkdir $(DOCDIR)\htb
876 move wx.zip $(DOCDIR)\htb\wx.htb
fac26663
JS
877 cd $(THISDIR)
878
da36f544
JS
879# In order to force document reprocessing
880touchmanual:
881 -touch $(WXDIR)\docs\latex\wx\manual.tex
62448488
JS
882
883updatedocs: touchmanual alldocs
884
f6bcfd97 885cleandocs:
918a745c
VZ
886 -erase $(DOCDIR)\winhelp\wx.hlp
887 -erase $(DOCDIR)\winhelp\wx.cnt
888 -erase $(DOCDIR)\html\wx\*.htm
889 -erase $(DOCDIR)\pdf\wx.rtf
890 -erase $(DOCDIR)\latex\wx\wx.rtf
891 -erase $(DOCDIR)\latex\wx\WX.PH
892 -erase $(DOCDIR)\htmlhelp\wx.chm
893 -erase $(DOCDIR)\htb\wx.htb
f6bcfd97 894
62448488
JS
895# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
896# Office StartUp folder, and PDFMaker should be installed.
897updatepdf: # touchmanual pdfrtf
e12f91dc 898 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
2845ddc2 899
9be9b974
RD
900
901MFTYPE=vc
902makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
8e97b17b
VZ
903 cd $(WXWIN)\distrib\msw\tmake
904 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
905 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
9be9b974 906