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