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