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