1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 # -------------------------------------------------------------------------
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
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) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
24 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
25 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\ogldll_dummy.o \
30 $(OBJS)\ogldll_basic2.o \
31 $(OBJS)\ogldll_canvas.o \
32 $(OBJS)\ogldll_divided.o \
33 $(OBJS)\ogldll_mfutils.o \
34 $(OBJS)\ogldll_oglmisc.o \
35 $(OBJS)\ogldll_basic.o \
36 $(OBJS)\ogldll_composit.o \
37 $(OBJS)\ogldll_drawn.o \
38 $(OBJS)\ogldll_bmpshape.o \
39 $(OBJS)\ogldll_constrnt.o \
40 $(OBJS)\ogldll_lines.o \
41 $(OBJS)\ogldll_ogldiag.o
42 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
43 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
44 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
45 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
46 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
48 $(OBJS)\ogllib_dummy.o \
49 $(OBJS)\ogllib_basic2.o \
50 $(OBJS)\ogllib_canvas.o \
51 $(OBJS)\ogllib_divided.o \
52 $(OBJS)\ogllib_mfutils.o \
53 $(OBJS)\ogllib_oglmisc.o \
54 $(OBJS)\ogllib_basic.o \
55 $(OBJS)\ogllib_composit.o \
56 $(OBJS)\ogllib_drawn.o \
57 $(OBJS)\ogllib_bmpshape.o \
58 $(OBJS)\ogllib_constrnt.o \
59 $(OBJS)\ogllib_lines.o \
60 $(OBJS)\ogllib_ogldiag.o
62 ### Conditionally set variables: ###
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
73 ifeq ($(OFFICIAL_BUILD),0)
74 VENDORTAG = _$(VENDOR)
76 ifeq ($(OFFICIAL_BUILD),1)
80 ifeq ($(DEBUG_FLAG),default)
84 ifeq ($(DEBUG_FLAG),1)
102 ifeq ($(MONOLITHIC),0)
105 ifeq ($(MONOLITHIC),1)
109 __ogldll___depname = \
110 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
112 ifeq ($(MONOLITHIC),1)
114 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
117 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
120 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
123 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
126 __UNICOWS_LIB_p = -lunicows
128 ifeq ($(MONOLITHIC),0)
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
132 ifeq ($(MONOLITHIC),0)
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137 __ogllib___depname = \
138 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
140 ifeq ($(BUILD),debug)
141 ifeq ($(DEBUG_INFO),default)
145 ifeq ($(BUILD),release)
146 ifeq ($(DEBUG_INFO),default)
150 ifeq ($(DEBUG_INFO),0)
153 ifeq ($(DEBUG_INFO),1)
156 ifeq ($(BUILD),debug)
159 ifeq ($(BUILD),release)
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONSFLAG = -fno-rtti
165 ifeq ($(USE_EXCEPTIONS),1)
168 ifeq ($(USE_EXCEPTIONS),0)
169 __EXCEPTIONSFLAG_0 = -fno-exceptions
171 ifeq ($(USE_EXCEPTIONS),1)
175 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_FLAG),default)
179 __DEBUG_DEFINE_p = -D__WXDEBUG__
182 ifeq ($(DEBUG_FLAG),1)
183 __DEBUG_DEFINE_p = -D__WXDEBUG__
186 __UNICODE_DEFINE_p = -D_UNICODE
192 -if not exist $(OBJS) mkdir $(OBJS)
196 all: $(__ogldll___depname) $(__ogllib___depname)
199 -if exist $(OBJS)\*.o del $(OBJS)\*.o
200 -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
201 -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
202 -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
205 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
206 $(CXX) -shared -fPIC -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
210 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
212 ar rcu $@ $(OGLLIB_OBJECTS)
216 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
217 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
219 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
220 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
222 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
223 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
225 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
226 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
228 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
229 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
231 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
232 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
234 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
235 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
237 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
238 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
240 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
241 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
243 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
244 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
246 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
247 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
249 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
250 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
252 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
253 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
255 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
256 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
258 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
259 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
261 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
262 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
264 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
265 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
267 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
268 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
270 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
271 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
273 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
274 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
276 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
277 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
279 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
280 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
282 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
283 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
285 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
286 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
288 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
289 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
291 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
292 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<