1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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) -I..\..\src\ogl\..\..\..\include \
26 -I$(SETUPHDIR) -W -Wall -I..\..\src\ogl\..\..\include -DWXUSINGDLL \
27 -DWXMAKINGDLL_OGL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
28 $(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) -I..\..\src\ogl\..\..\..\include \
48 -I$(SETUPHDIR) -W -Wall -I..\..\src\ogl\..\..\include $(__RTTIFLAG) \
49 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
51 $(OBJS)\ogllib_dummy.o \
52 $(OBJS)\ogllib_basic2.o \
53 $(OBJS)\ogllib_canvas.o \
54 $(OBJS)\ogllib_divided.o \
55 $(OBJS)\ogllib_mfutils.o \
56 $(OBJS)\ogllib_oglmisc.o \
57 $(OBJS)\ogllib_basic.o \
58 $(OBJS)\ogllib_composit.o \
59 $(OBJS)\ogllib_drawn.o \
60 $(OBJS)\ogllib_bmpshape.o \
61 $(OBJS)\ogllib_constrnt.o \
62 $(OBJS)\ogllib_lines.o \
63 $(OBJS)\ogllib_ogldiag.o
65 ### Conditionally set variables: ###
67 ifeq ($(GCC_VERSION),2.95)
68 GCCFLAGS = -fvtable-thunks
76 ifeq ($(OFFICIAL_BUILD),0)
77 VENDORTAG = _$(VENDOR)
79 ifeq ($(OFFICIAL_BUILD),1)
83 ifeq ($(DEBUG_FLAG),default)
87 ifeq ($(DEBUG_FLAG),1)
105 ifeq ($(MONOLITHIC),0)
108 ifeq ($(MONOLITHIC),1)
112 __ogldll___depname = \
113 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
116 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
130 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
132 ifeq ($(USE_THREADS),0)
133 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
136 __UNICODE_DEFINE_p_1 = --define _UNICODE
139 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
141 ifeq ($(MONOLITHIC),1)
143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
146 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
149 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
152 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
155 __UNICOWS_LIB_p = -lunicows
157 ifeq ($(MONOLITHIC),0)
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
161 ifeq ($(MONOLITHIC),0)
163 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
166 __ogllib___depname = \
167 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
169 ifeq ($(BUILD),debug)
170 ifeq ($(DEBUG_INFO),default)
174 ifeq ($(BUILD),release)
175 ifeq ($(DEBUG_INFO),default)
179 ifeq ($(DEBUG_INFO),0)
182 ifeq ($(DEBUG_INFO),1)
185 ifeq ($(BUILD),debug)
188 ifeq ($(BUILD),release)
191 ifeq ($(USE_THREADS),0)
194 ifeq ($(USE_THREADS),1)
195 __THREADSFLAG = -mthreads
198 __RTTIFLAG = -fno-rtti
203 ifeq ($(USE_EXCEPTIONS),0)
204 __EXCEPTIONSFLAG = -fno-exceptions
206 ifeq ($(USE_EXCEPTIONS),1)
210 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
212 ifeq ($(BUILD),debug)
213 ifeq ($(DEBUG_FLAG),default)
214 __DEBUG_DEFINE_p = -D__WXDEBUG__
217 ifeq ($(DEBUG_FLAG),1)
218 __DEBUG_DEFINE_p = -D__WXDEBUG__
220 ifeq ($(USE_EXCEPTIONS),0)
221 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
224 __RTTI_DEFINE_p = -DwxNO_RTTI
226 ifeq ($(USE_THREADS),0)
227 __THREAD_DEFINE_p = -DwxNO_THREADS
230 __UNICODE_DEFINE_p = -D_UNICODE
233 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
239 -if not exist $(OBJS) mkdir $(OBJS)
243 all: $(__ogldll___depname) $(__ogllib___depname)
246 -if exist $(OBJS)\*.o del $(OBJS)\*.o
247 -if exist $(OBJS)\*.d del $(OBJS)\*.d
248 -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
249 -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
250 -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
253 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
254 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
258 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
260 ar rcu $@ $(OGLLIB_OBJECTS)
264 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
265 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
268 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) --include-dir ../../src/ogl/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
270 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
271 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
274 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
277 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
280 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
283 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
286 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
289 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
292 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
295 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
298 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
301 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
304 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
307 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
310 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
313 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
316 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
319 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
322 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
324 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
325 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
327 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
328 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
330 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
331 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
333 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
334 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
336 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
337 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
339 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
340 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
342 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
343 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
348 # Dependencies tracking: