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