]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
fixed a compile error in one of the stub classes
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 28
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
27 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(__RTTIFLAG) \
28 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29 OGLDLL_OBJECTS = \
30 $(OBJS)\ogldll_dummy.o \
31 $(OBJS)\ogldll_version_rc.o \
32 $(OBJS)\ogldll_basic2.o \
33 $(OBJS)\ogldll_canvas.o \
34 $(OBJS)\ogldll_divided.o \
35 $(OBJS)\ogldll_mfutils.o \
36 $(OBJS)\ogldll_oglmisc.o \
37 $(OBJS)\ogldll_basic.o \
38 $(OBJS)\ogldll_composit.o \
39 $(OBJS)\ogldll_drawn.o \
40 $(OBJS)\ogldll_bmpshape.o \
41 $(OBJS)\ogldll_constrnt.o \
42 $(OBJS)\ogldll_lines.o \
43 $(OBJS)\ogldll_ogldiag.o
44 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
45 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
46 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
47 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
48 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
49 -I..\..\src\ogl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
50 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
51 OGLLIB_OBJECTS = \
52 $(OBJS)\ogllib_dummy.o \
53 $(OBJS)\ogllib_basic2.o \
54 $(OBJS)\ogllib_canvas.o \
55 $(OBJS)\ogllib_divided.o \
56 $(OBJS)\ogllib_mfutils.o \
57 $(OBJS)\ogllib_oglmisc.o \
58 $(OBJS)\ogllib_basic.o \
59 $(OBJS)\ogllib_composit.o \
60 $(OBJS)\ogllib_drawn.o \
61 $(OBJS)\ogllib_bmpshape.o \
62 $(OBJS)\ogllib_constrnt.o \
63 $(OBJS)\ogllib_lines.o \
64 $(OBJS)\ogllib_ogldiag.o
65
66 ### Conditionally set variables: ###
67
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
70 endif
71 ifeq ($(USE_GUI),0)
72 PORTNAME = base
73 endif
74 ifeq ($(USE_GUI),1)
75 PORTNAME = msw
76 endif
77 ifeq ($(OFFICIAL_BUILD),0)
78 VENDORTAG = _$(VENDOR)
79 endif
80 ifeq ($(OFFICIAL_BUILD),1)
81 VENDORTAG =
82 endif
83 ifeq ($(BUILD),debug)
84 ifeq ($(DEBUG_FLAG),default)
85 WXDEBUGFLAG = d
86 endif
87 endif
88 ifeq ($(DEBUG_FLAG),1)
89 WXDEBUGFLAG = d
90 endif
91 ifeq ($(UNICODE),1)
92 WXUNICODEFLAG = u
93 endif
94 ifeq ($(WXUNIV),1)
95 WXUNIVNAME = univ
96 endif
97 ifeq ($(SHARED),1)
98 WXDLLFLAG = dll
99 endif
100 ifeq ($(SHARED),0)
101 LIBTYPE_SUFFIX = lib
102 endif
103 ifeq ($(SHARED),1)
104 LIBTYPE_SUFFIX = dll
105 endif
106 ifeq ($(MONOLITHIC),0)
107 EXTRALIBS_FOR_BASE =
108 endif
109 ifeq ($(MONOLITHIC),1)
110 EXTRALIBS_FOR_BASE =
111 endif
112 ifeq ($(SHARED),1)
113 __ogldll___depname = \
114 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
115 endif
116 ifeq ($(WXUNIV),1)
117 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
118 endif
119 ifeq ($(BUILD),debug)
120 ifeq ($(DEBUG_FLAG),default)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122 endif
123 endif
124 ifeq ($(DEBUG_FLAG),1)
125 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
126 endif
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
129 endif
130 ifeq ($(USE_RTTI),0)
131 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
132 endif
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
135 endif
136 ifeq ($(UNICODE),1)
137 __UNICODE_DEFINE_p_1 = --define _UNICODE
138 endif
139 ifeq ($(MSLU),1)
140 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
141 endif
142 ifeq ($(USE_GDIPLUS),1)
143 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
144 endif
145 ifeq ($(MONOLITHIC),1)
146 __WXLIB_MONO_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
148 endif
149 ifeq ($(USE_GUI),1)
150 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
151 endif
152 ifeq ($(USE_GUI),1)
153 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
154 endif
155 ifeq ($(USE_GUI),1)
156 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
157 endif
158 ifeq ($(MSLU),1)
159 __UNICOWS_LIB_p = -lunicows
160 endif
161 ifeq ($(USE_GDIPLUS),1)
162 __GDIPLUS_LIB_p = -lgdiplus
163 endif
164 ifeq ($(MONOLITHIC),0)
165 __WXLIB_CORE_p = \
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
167 endif
168 ifeq ($(MONOLITHIC),0)
169 __WXLIB_BASE_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
171 endif
172 ifeq ($(SHARED),0)
173 __ogllib___depname = \
174 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
175 endif
176 ifeq ($(BUILD),debug)
177 ifeq ($(DEBUG_INFO),default)
178 __DEBUGINFO = -g
179 endif
180 endif
181 ifeq ($(BUILD),release)
182 ifeq ($(DEBUG_INFO),default)
183 __DEBUGINFO =
184 endif
185 endif
186 ifeq ($(DEBUG_INFO),0)
187 __DEBUGINFO =
188 endif
189 ifeq ($(DEBUG_INFO),1)
190 __DEBUGINFO = -g
191 endif
192 ifeq ($(BUILD),debug)
193 __OPTIMIZEFLAG = -O0
194 endif
195 ifeq ($(BUILD),release)
196 __OPTIMIZEFLAG = -O2
197 endif
198 ifeq ($(USE_THREADS),0)
199 __THREADSFLAG =
200 endif
201 ifeq ($(USE_THREADS),1)
202 __THREADSFLAG = -mthreads
203 endif
204 ifeq ($(USE_RTTI),0)
205 __RTTIFLAG = -fno-rtti
206 endif
207 ifeq ($(USE_RTTI),1)
208 __RTTIFLAG =
209 endif
210 ifeq ($(USE_EXCEPTIONS),0)
211 __EXCEPTIONSFLAG = -fno-exceptions
212 endif
213 ifeq ($(USE_EXCEPTIONS),1)
214 __EXCEPTIONSFLAG =
215 endif
216 ifeq ($(WXUNIV),1)
217 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
218 endif
219 ifeq ($(BUILD),debug)
220 ifeq ($(DEBUG_FLAG),default)
221 __DEBUG_DEFINE_p = -D__WXDEBUG__
222 endif
223 endif
224 ifeq ($(DEBUG_FLAG),1)
225 __DEBUG_DEFINE_p = -D__WXDEBUG__
226 endif
227 ifeq ($(USE_EXCEPTIONS),0)
228 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
229 endif
230 ifeq ($(USE_RTTI),0)
231 __RTTI_DEFINE_p = -DwxNO_RTTI
232 endif
233 ifeq ($(USE_THREADS),0)
234 __THREAD_DEFINE_p = -DwxNO_THREADS
235 endif
236 ifeq ($(UNICODE),1)
237 __UNICODE_DEFINE_p = -D_UNICODE
238 endif
239 ifeq ($(MSLU),1)
240 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
241 endif
242 ifeq ($(USE_GDIPLUS),1)
243 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
244 endif
245
246
247 all: $(OBJS)
248 $(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251 ### Targets: ###
252
253 all: $(__ogldll___depname) $(__ogllib___depname)
254
255 clean:
256 -if exist $(OBJS)\*.o del $(OBJS)\*.o
257 -if exist $(OBJS)\*.d del $(OBJS)\*.d
258 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
259 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
260 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
261
262 ifeq ($(SHARED),1)
263 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
264 $(CXX) -shared -fPIC -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
265 endif
266
267 ifeq ($(SHARED),0)
268 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
269 if exist $@ del $@
270 ar rcu $@ $(OGLLIB_OBJECTS)
271 ranlib $@
272 endif
273
274 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
275 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
276
277 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
278 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/ogl/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
279
280 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
281 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
284 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
285
286 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
287 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
288
289 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
290 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
291
292 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
293 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
294
295 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
296 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
297
298 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
299 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
300
301 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
302 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
303
304 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
305 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
306
307 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
308 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
309
310 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
311 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
312
313 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
314 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
315
316 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
317 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
318
319 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
320 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
321
322 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
323 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
324
325 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
326 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
327
328 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
329 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
330
331 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
332 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
333
334 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
335 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
336
337 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
338 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
339
340 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
341 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
342
343 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
344 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
345
346 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
347 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
348
349 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
350 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
351
352 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
353 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
354
355 .PHONY: all clean
356
357
358 # Dependencies tracking:
359 -include $(OBJS)/*.d