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
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
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)
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)
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
66 ### Conditionally set variables: ###
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
77 ifeq ($(OFFICIAL_BUILD),0)
78 VENDORTAG = _$(VENDOR)
80 ifeq ($(OFFICIAL_BUILD),1)
84 ifeq ($(DEBUG_FLAG),default)
88 ifeq ($(DEBUG_FLAG),1)
106 ifeq ($(MONOLITHIC),0)
109 ifeq ($(MONOLITHIC),1)
113 __ogldll___depname = \
114 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
117 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
119 ifeq ($(BUILD),debug)
120 ifeq ($(DEBUG_FLAG),default)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
124 ifeq ($(DEBUG_FLAG),1)
125 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
131 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
137 __UNICODE_DEFINE_p_1 = --define _UNICODE
140 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
142 ifeq ($(USE_GDIPLUS),1)
143 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
145 ifeq ($(MONOLITHIC),1)
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
150 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
153 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
156 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
159 __UNICOWS_LIB_p = -lunicows
161 ifeq ($(USE_GDIPLUS),1)
162 __GDIPLUS_LIB_p = -lgdiplus
164 ifeq ($(MONOLITHIC),0)
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
168 ifeq ($(MONOLITHIC),0)
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
173 __ogllib___depname = \
174 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
176 ifeq ($(BUILD),debug)
177 ifeq ($(DEBUG_INFO),default)
181 ifeq ($(BUILD),release)
182 ifeq ($(DEBUG_INFO),default)
186 ifeq ($(DEBUG_INFO),0)
189 ifeq ($(DEBUG_INFO),1)
192 ifeq ($(BUILD),debug)
195 ifeq ($(BUILD),release)
198 ifeq ($(USE_THREADS),0)
201 ifeq ($(USE_THREADS),1)
202 __THREADSFLAG = -mthreads
205 __RTTIFLAG = -fno-rtti
210 ifeq ($(USE_EXCEPTIONS),0)
211 __EXCEPTIONSFLAG = -fno-exceptions
213 ifeq ($(USE_EXCEPTIONS),1)
217 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
219 ifeq ($(BUILD),debug)
220 ifeq ($(DEBUG_FLAG),default)
221 __DEBUG_DEFINE_p = -D__WXDEBUG__
224 ifeq ($(DEBUG_FLAG),1)
225 __DEBUG_DEFINE_p = -D__WXDEBUG__
227 ifeq ($(USE_EXCEPTIONS),0)
228 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
231 __RTTI_DEFINE_p = -DwxNO_RTTI
233 ifeq ($(USE_THREADS),0)
234 __THREAD_DEFINE_p = -DwxNO_THREADS
237 __UNICODE_DEFINE_p = -D_UNICODE
240 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
242 ifeq ($(USE_GDIPLUS),1)
243 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
249 -if not exist $(OBJS) mkdir $(OBJS)
253 all: $(__ogldll___depname) $(__ogllib___depname)
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
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)
268 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
270 ar rcu $@ $(OGLLIB_OBJECTS)
274 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
275 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
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)
280 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
281 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
283 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
284 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
286 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
287 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
289 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
290 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
292 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
293 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
295 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
296 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
298 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
299 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
301 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
302 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
304 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
305 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
307 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
308 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
311 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
314 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
317 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
320 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
323 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
326 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
329 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
332 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
335 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
337 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
338 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
340 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
341 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
343 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
344 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
346 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
347 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
349 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
350 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
352 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
353 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
358 # Dependencies tracking: