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