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 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
28 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(__RTTIFLAG) \
29 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\ogldll_dummy.o \
32 $(OBJS)\ogldll_version_rc.o \
33 $(OBJS)\ogldll_basic2.o \
34 $(OBJS)\ogldll_canvas.o \
35 $(OBJS)\ogldll_divided.o \
36 $(OBJS)\ogldll_mfutils.o \
37 $(OBJS)\ogldll_oglmisc.o \
38 $(OBJS)\ogldll_basic.o \
39 $(OBJS)\ogldll_composit.o \
40 $(OBJS)\ogldll_drawn.o \
41 $(OBJS)\ogldll_bmpshape.o \
42 $(OBJS)\ogldll_constrnt.o \
43 $(OBJS)\ogldll_lines.o \
44 $(OBJS)\ogldll_ogldiag.o
45 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
46 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
47 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
48 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
49 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
50 -I..\..\src\ogl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
51 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
53 $(OBJS)\ogllib_dummy.o \
54 $(OBJS)\ogllib_basic2.o \
55 $(OBJS)\ogllib_canvas.o \
56 $(OBJS)\ogllib_divided.o \
57 $(OBJS)\ogllib_mfutils.o \
58 $(OBJS)\ogllib_oglmisc.o \
59 $(OBJS)\ogllib_basic.o \
60 $(OBJS)\ogllib_composit.o \
61 $(OBJS)\ogllib_drawn.o \
62 $(OBJS)\ogllib_bmpshape.o \
63 $(OBJS)\ogllib_constrnt.o \
64 $(OBJS)\ogllib_lines.o \
65 $(OBJS)\ogllib_ogldiag.o
67 ### Conditionally set variables: ###
69 ifeq ($(GCC_VERSION),2.95)
70 GCCFLAGS = -fvtable-thunks
78 ifeq ($(OFFICIAL_BUILD),0)
79 VENDORTAG = _$(VENDOR)
81 ifeq ($(OFFICIAL_BUILD),1)
85 ifeq ($(DEBUG_FLAG),default)
89 ifeq ($(DEBUG_FLAG),1)
107 ifeq ($(MONOLITHIC),0)
110 ifeq ($(MONOLITHIC),1)
114 __ogldll___depname = \
115 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
118 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
120 ifeq ($(BUILD),debug)
121 ifeq ($(DEBUG_FLAG),default)
122 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125 ifeq ($(DEBUG_FLAG),1)
126 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
132 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
138 __UNICODE_DEFINE_p_1 = --define _UNICODE
141 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
143 ifeq ($(USE_GDIPLUS),1)
144 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
146 ifeq ($(MONOLITHIC),1)
148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
151 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
154 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
157 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
160 __UNICOWS_LIB_p = -lunicows
162 ifeq ($(USE_GDIPLUS),1)
163 __GDIPLUS_LIB_p = -lgdiplus
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
169 ifeq ($(MONOLITHIC),0)
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
174 __ogllib___depname = \
175 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_INFO),default)
182 ifeq ($(BUILD),release)
183 ifeq ($(DEBUG_INFO),default)
187 ifeq ($(DEBUG_INFO),0)
190 ifeq ($(DEBUG_INFO),1)
193 ifeq ($(BUILD),debug)
196 ifeq ($(BUILD),release)
199 ifeq ($(USE_THREADS),0)
202 ifeq ($(USE_THREADS),1)
203 __THREADSFLAG = -mthreads
206 __RTTIFLAG = -fno-rtti
211 ifeq ($(USE_EXCEPTIONS),0)
212 __EXCEPTIONSFLAG = -fno-exceptions
214 ifeq ($(USE_EXCEPTIONS),1)
218 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
220 ifeq ($(BUILD),debug)
221 ifeq ($(DEBUG_FLAG),default)
222 __DEBUG_DEFINE_p = -D__WXDEBUG__
225 ifeq ($(DEBUG_FLAG),1)
226 __DEBUG_DEFINE_p = -D__WXDEBUG__
228 ifeq ($(USE_EXCEPTIONS),0)
229 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
232 __RTTI_DEFINE_p = -DwxNO_RTTI
234 ifeq ($(USE_THREADS),0)
235 __THREAD_DEFINE_p = -DwxNO_THREADS
238 __UNICODE_DEFINE_p = -D_UNICODE
241 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
243 ifeq ($(USE_GDIPLUS),1)
244 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
250 -if not exist $(OBJS) mkdir $(OBJS)
254 all: $(__ogldll___depname) $(__ogllib___depname)
257 -if exist $(OBJS)\*.o del $(OBJS)\*.o
258 -if exist $(OBJS)\*.d del $(OBJS)\*.d
259 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
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 -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
264 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
265 $(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)
269 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
271 ar rcu $@ $(OGLLIB_OBJECTS)
275 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
276 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
279 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
281 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
282 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
285 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
287 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
288 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
290 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
291 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
293 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
294 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
296 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
297 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
299 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
300 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
302 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
303 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
305 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
306 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
308 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
309 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
311 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
312 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
314 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
315 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
317 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
318 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
320 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
321 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
323 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
324 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
326 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
327 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
329 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
330 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
332 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
333 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
335 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
336 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
338 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
339 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
341 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
342 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
344 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
345 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
347 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
348 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
350 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
351 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
353 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
354 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
359 # Dependencies tracking: