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