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