]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.vc
fixed version number expansion
[wxWidgets.git] / contrib / build / ogl / makefile.vc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../../../build/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
3f55f5b8
VS
15LIBDIRNAME = \
16 ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19OGLDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_2) \
21 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).pdb \
22 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include \
24 /I$(LIBDIRNAME) /I..\..\src\ogl\..\..\..\src\tiff \
25 /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png \
26 /I..\..\src\ogl\..\..\..\src\zlib /I..\..\src\ogl\..\..\..\src\regex \
27 /I..\..\src\ogl\..\..\..\src\expat\lib /I..\..\src\ogl\..\..\include \
28 /DWXUSINGDLL /DWXMAKINGDLL_OGL $(CXXFLAGS) /Yu"wx/wxprec.h" \
29 /Fp"$(OBJS)\wxprec_ogldll.pch"
30OGLDLL_OBJECTS = \
31 $(OBJS)\ogldll_dummy.obj \
32 $(OBJS)\ogldll_basic2.obj \
33 $(OBJS)\ogldll_canvas.obj \
34 $(OBJS)\ogldll_divided.obj \
35 $(OBJS)\ogldll_mfutils.obj \
36 $(OBJS)\ogldll_oglmisc.obj \
37 $(OBJS)\ogldll_basic.obj \
38 $(OBJS)\ogldll_composit.obj \
39 $(OBJS)\ogldll_drawn.obj \
40 $(OBJS)\ogldll_bmpshape.obj \
41 $(OBJS)\ogldll_constrnt.obj \
42 $(OBJS)\ogldll_lines.obj \
43 $(OBJS)\ogldll_ogldiag.obj
44OGLLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_12) /DWIN32 \
45 $(__DEBUGINFO_2) \
46 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.pdb \
47 $(____DEBUGRUNTIME_11_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include \
49 /I$(LIBDIRNAME) /I..\..\src\ogl\..\..\..\src\tiff \
50 /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png \
51 /I..\..\src\ogl\..\..\..\src\zlib /I..\..\src\ogl\..\..\..\src\regex \
52 /I..\..\src\ogl\..\..\..\src\expat\lib /I..\..\src\ogl\..\..\include \
53 $(CXXFLAGS) /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_ogllib.pch"
54OGLLIB_OBJECTS = \
55 $(OBJS)\ogllib_dummy.obj \
56 $(OBJS)\ogllib_basic2.obj \
57 $(OBJS)\ogllib_canvas.obj \
58 $(OBJS)\ogllib_divided.obj \
59 $(OBJS)\ogllib_mfutils.obj \
60 $(OBJS)\ogllib_oglmisc.obj \
61 $(OBJS)\ogllib_basic.obj \
62 $(OBJS)\ogllib_composit.obj \
63 $(OBJS)\ogllib_drawn.obj \
64 $(OBJS)\ogllib_bmpshape.obj \
65 $(OBJS)\ogllib_constrnt.obj \
66 $(OBJS)\ogllib_lines.obj \
67 $(OBJS)\ogllib_ogldiag.obj
250700e4
RD
68
69### Conditionally set variables: ###
70
71!if "$(USE_GUI)" == "0"
72PORTNAME = base
73!endif
74!if "$(USE_GUI)" == "1"
75PORTNAME = msw
76!endif
77!if "$(OFFICIAL_BUILD)" == "0"
78VENDORTAG = _$(VENDOR)
79!endif
80!if "$(OFFICIAL_BUILD)" == "1"
81VENDORTAG =
82!endif
3f55f5b8
VS
83!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84WXDEBUGFLAG = d
85!endif
86!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
87WXDEBUGFLAG = d
88!endif
89!if "$(SHARED)" == "1"
90WXDLLFLAG = dll
91!endif
92!if "$(UNICODE)" == "1"
93WXUNICODEFLAG = u
94!endif
95!if "$(WXUNIV)" == "1"
96WXUNIVNAME = univ
97!endif
3f55f5b8
VS
98!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
99__DEBUGINFO = d
250700e4 100!endif
3f55f5b8
VS
101!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
102__DEBUGINFO =
250700e4 103!endif
3f55f5b8
VS
104!if "$(DEBUG_INFO)" == "0"
105__DEBUGINFO =
250700e4 106!endif
3f55f5b8
VS
107!if "$(DEBUG_INFO)" == "1"
108__DEBUGINFO = d
250700e4 109!endif
3f55f5b8
VS
110!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
111__DEBUGINFO_1 = /DEBUG
250700e4 112!endif
3f55f5b8
VS
113!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
114__DEBUGINFO_1 =
250700e4 115!endif
3f55f5b8
VS
116!if "$(DEBUG_INFO)" == "0"
117__DEBUGINFO_1 =
118!endif
119!if "$(DEBUG_INFO)" == "1"
120__DEBUGINFO_1 = /DEBUG
121!endif
122!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
123__DEBUGINFO_2 = /Zi
124!endif
125!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
126__DEBUGINFO_2 =
127!endif
128!if "$(DEBUG_INFO)" == "0"
129__DEBUGINFO_2 =
130!endif
131!if "$(DEBUG_INFO)" == "1"
132__DEBUGINFO_2 = /Zi
133!endif
134!if "$(DEBUG_RUNTIME_LIBS)" == "0"
135__DEBUGRUNTIME_12 =
136!endif
137!if "$(DEBUG_RUNTIME_LIBS)" == "1"
138__DEBUGRUNTIME_12 = d
139!endif
140!if "$(DEBUG_RUNTIME_LIBS)" == "default"
141__DEBUGRUNTIME_12 = $(__DEBUGINFO)
142!endif
143!if "$(DEBUG_RUNTIME_LIBS)" == "0"
144__DEBUGRUNTIME_3 =
145!endif
146!if "$(DEBUG_RUNTIME_LIBS)" == "1"
147__DEBUGRUNTIME_3 = d
148!endif
149!if "$(DEBUG_RUNTIME_LIBS)" == "default"
150__DEBUGRUNTIME_3 = $(__DEBUGINFO)
151!endif
152!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
250700e4
RD
153__DEBUG_DEFINE_p = /D__WXDEBUG__
154!endif
3f55f5b8
VS
155!if "$(DEBUG_FLAG)" == "1"
156__DEBUG_DEFINE_p = /D__WXDEBUG__
157!endif
158!if "$(USE_GUI)" == "1"
159__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
160!endif
161!if "$(USE_GUI)" == "1"
162__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
163!endif
164!if "$(USE_GUI)" == "1"
165__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
166!endif
250700e4
RD
167!if "$(BUILD)" == "debug"
168__OPTIMIZEFLAG = /Od
169!endif
170!if "$(BUILD)" == "release"
171__OPTIMIZEFLAG = /O2
172!endif
173!if "$(RUNTIME_LIBS)" == "dynamic"
174__RUNTIME_LIBS = D
175!endif
176!if "$(RUNTIME_LIBS)" == "static"
f509d00d 177__RUNTIME_LIBS = T
250700e4
RD
178!endif
179!if "$(UNICODE)" == "1"
180__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
181!endif
182!if "$(MONOLITHIC)" == "0"
183__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
184!endif
185!if "$(MONOLITHIC)" == "0"
3f55f5b8
VS
186__WXLIB_CORE_p = \
187 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
250700e4
RD
188!endif
189!if "$(MONOLITHIC)" == "1"
3f55f5b8
VS
190__WXLIB_MONO_p = \
191 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
250700e4
RD
192!endif
193!if "$(WXUNIV)" == "1"
194__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
195!endif
3f55f5b8
VS
196!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
197____DEBUGINFO = /D_DEBUG
bdc408c4 198!endif
3f55f5b8 199!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
e2d1c567 200____DEBUGINFO =
3f55f5b8
VS
201!endif
202!if "$(DEBUG_INFO)" == "0"
e2d1c567 203____DEBUGINFO =
3f55f5b8
VS
204!endif
205!if "$(DEBUG_INFO)" == "1"
206____DEBUGINFO = /D_DEBUG
207!endif
208!if "$(DEBUG_RUNTIME_LIBS)" == "0"
e2d1c567 209____DEBUGRUNTIME_11_p =
3f55f5b8
VS
210!endif
211!if "$(DEBUG_RUNTIME_LIBS)" == "1"
212____DEBUGRUNTIME_11_p = /D_DEBUG
213!endif
214!if "$(DEBUG_RUNTIME_LIBS)" == "default"
215____DEBUGRUNTIME_11_p = $(____DEBUGINFO)
216!endif
217!if "$(DEBUG_RUNTIME_LIBS)" == "0"
e2d1c567 218____DEBUGRUNTIME_2_p =
3f55f5b8
VS
219!endif
220!if "$(DEBUG_RUNTIME_LIBS)" == "1"
221____DEBUGRUNTIME_2_p = /D_DEBUG
222!endif
223!if "$(DEBUG_RUNTIME_LIBS)" == "default"
224____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
bdc408c4 225!endif
250700e4 226!if "$(SHARED)" == "1"
3f55f5b8
VS
227__ogldll___depname = \
228 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll
250700e4
RD
229!endif
230!if "$(SHARED)" == "0"
3f55f5b8
VS
231__ogllib___depname = \
232 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
233!endif
234
235
236all: $(OBJS)
237$(OBJS):
238 -if not exist $(OBJS) mkdir $(OBJS)
239
240### Targets: ###
241
242all: $(__ogldll___depname) $(__ogllib___depname)
243
244$(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
246
247$(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
249
250$(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
252
253$(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
254 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
255
256$(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
258
259$(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
261
262$(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
264
265$(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
267
268$(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) /Ycwx/wxprec.h $**
270
271$(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
273
274$(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
276
277$(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
278 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
279
280$(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
282
283$(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
285
286$(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
288
289$(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
291
292$(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
294
295$(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
296 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
297
298$(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
299 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
300
301$(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
302 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
303
304$(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
305 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
306
307$(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
308 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) /Ycwx/wxprec.h $**
309
310$(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
311 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
312
313$(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
314 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
315
316$(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
317 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
318
319$(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
320 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
321
322clean:
323 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
324 -if exist $(OBJS)\*.res del $(OBJS)\*.res
3f55f5b8
VS
325 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll
326 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
327 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
328
329!if "$(SHARED)" == "1"
3f55f5b8
VS
330$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_dummy.obj
331 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
332 $(OGLDLL_OBJECTS) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
333<<
334!endif
335
336!if "$(SHARED)" == "0"
3f55f5b8 337$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OGLLIB_OBJECTS) $(OBJS)\ogllib_dummy.obj
250700e4
RD
338 if exist $@ del $@
339 lib /NOLOGO /OUT:$@ @<<
3f55f5b8 340 $(OGLLIB_OBJECTS)
250700e4
RD
341<<
342!endif