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