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