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