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