]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.vc
change MSW libs directories so that libraries are shared by builds
[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_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 \
22 /I$(SETUPHDIR) /I..\..\src\ogl\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_OGL \
23 $(CXXFLAGS) /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_ogldll.pch"
24 OGLDLL_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
38 OGLLIB_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 \
43 /I$(SETUPHDIR) /I..\..\src\ogl\..\..\include $(CXXFLAGS) /Yu"wx/wxprec.h" \
44 /Fp"$(OBJS)\wxprec_ogllib.pch"
45 OGLLIB_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
59 SETUPHDIR = \
60 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
61
62 ### Conditionally set variables: ###
63
64 !if "$(SHARED)" == "0"
65 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\vc_lib$(CFG)
66 !endif
67 !if "$(SHARED)" == "1"
68 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\vc_dll$(CFG)
69 !endif
70 !if "$(USE_GUI)" == "0"
71 PORTNAME = base
72 !endif
73 !if "$(USE_GUI)" == "1"
74 PORTNAME = msw
75 !endif
76 !if "$(OFFICIAL_BUILD)" == "0"
77 VENDORTAG = _$(VENDOR)
78 !endif
79 !if "$(OFFICIAL_BUILD)" == "1"
80 VENDORTAG =
81 !endif
82 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83 WXDEBUGFLAG = d
84 !endif
85 !if "$(DEBUG_FLAG)" == "1"
86 WXDEBUGFLAG = d
87 !endif
88 !if "$(SHARED)" == "1"
89 WXDLLFLAG = dll
90 !endif
91 !if "$(UNICODE)" == "1"
92 WXUNICODEFLAG = u
93 !endif
94 !if "$(WXUNIV)" == "1"
95 WXUNIVNAME = univ
96 !endif
97 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
98 __DEBUGINFO = d
99 !endif
100 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
101 __DEBUGINFO =
102 !endif
103 !if "$(DEBUG_INFO)" == "0"
104 __DEBUGINFO =
105 !endif
106 !if "$(DEBUG_INFO)" == "1"
107 __DEBUGINFO = d
108 !endif
109 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
110 __DEBUGINFO_1 = /DEBUG
111 !endif
112 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
113 __DEBUGINFO_1 =
114 !endif
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"
152 __DEBUG_DEFINE_p = /D__WXDEBUG__
153 !endif
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
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"
176 __RUNTIME_LIBS = T
177 !endif
178 !if "$(UNICODE)" == "1"
179 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
180 !endif
181 !if "$(MSLU)" == "1"
182 __UNICOWS_LIB_p = unicows.lib
183 !endif
184 !if "$(MONOLITHIC)" == "0"
185 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
186 !endif
187 !if "$(MONOLITHIC)" == "0"
188 __WXLIB_CORE_p = \
189 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
190 !endif
191 !if "$(MONOLITHIC)" == "1"
192 __WXLIB_MONO_p = \
193 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
194 !endif
195 !if "$(WXUNIV)" == "1"
196 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
197 !endif
198 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
199 ____DEBUGINFO = /D_DEBUG
200 !endif
201 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
202 ____DEBUGINFO =
203 !endif
204 !if "$(DEBUG_INFO)" == "0"
205 ____DEBUGINFO =
206 !endif
207 !if "$(DEBUG_INFO)" == "1"
208 ____DEBUGINFO = /D_DEBUG
209 !endif
210 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
211 ____DEBUGRUNTIME_11_p =
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"
220 ____DEBUGRUNTIME_2_p =
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)
227 !endif
228 !if "$(SHARED)" == "1"
229 __ogldll___depname = \
230 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll
231 !endif
232 !if "$(SHARED)" == "0"
233 __ogllib___depname = \
234 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
235 !endif
236
237
238 all: $(OBJS)
239 $(OBJS):
240 -if not exist $(OBJS) mkdir $(OBJS)
241
242 ### Targets: ###
243
244 all: $(__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
324 clean:
325 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
326 -if exist $(OBJS)\*.res del $(OBJS)\*.res
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
330
331 !if "$(SHARED)" == "1"
332 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
333 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
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
335 <<
336 !endif
337
338 !if "$(SHARED)" == "0"
339 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
340 if exist $@ del $@
341 lib /NOLOGO /OUT:$@ @<<
342 $(OGLLIB_OBJECTS)
343 <<
344 !endif