1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)3
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
24 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
25 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\ogldll_dummy.o \
28 $(OBJS)\ogldll_basic2.o \
29 $(OBJS)\ogldll_canvas.o \
30 $(OBJS)\ogldll_divided.o \
31 $(OBJS)\ogldll_mfutils.o \
32 $(OBJS)\ogldll_oglmisc.o \
33 $(OBJS)\ogldll_basic.o \
34 $(OBJS)\ogldll_composit.o \
35 $(OBJS)\ogldll_drawn.o \
36 $(OBJS)\ogldll_bmpshape.o \
37 $(OBJS)\ogldll_constrnt.o \
38 $(OBJS)\ogldll_lines.o \
39 $(OBJS)\ogldll_ogldiag.o
40 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
41 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
42 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
43 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
44 $(CPPFLAGS) $(CXXFLAGS)
46 $(OBJS)\ogllib_dummy.o \
47 $(OBJS)\ogllib_basic2.o \
48 $(OBJS)\ogllib_canvas.o \
49 $(OBJS)\ogllib_divided.o \
50 $(OBJS)\ogllib_mfutils.o \
51 $(OBJS)\ogllib_oglmisc.o \
52 $(OBJS)\ogllib_basic.o \
53 $(OBJS)\ogllib_composit.o \
54 $(OBJS)\ogllib_drawn.o \
55 $(OBJS)\ogllib_bmpshape.o \
56 $(OBJS)\ogllib_constrnt.o \
57 $(OBJS)\ogllib_lines.o \
58 $(OBJS)\ogllib_ogldiag.o
60 ### Conditionally set variables: ###
62 ifeq ($(GCC_VERSION),2.95)
63 GCCFLAGS = -fvtable-thunks
71 ifeq ($(OFFICIAL_BUILD),0)
72 VENDORTAG = _$(VENDOR)
74 ifeq ($(OFFICIAL_BUILD),1)
78 ifeq ($(DEBUG_FLAG),default)
82 ifeq ($(DEBUG_FLAG),1)
94 ifeq ($(MONOLITHIC),0)
97 ifeq ($(MONOLITHIC),1)
101 __ogldll___depname = \
102 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
104 ifeq ($(MONOLITHIC),1)
106 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
109 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
112 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
115 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
118 __UNICOWS_LIB_p = -lunicows
120 ifeq ($(MONOLITHIC),0)
122 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
124 ifeq ($(MONOLITHIC),0)
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129 __ogllib___depname = \
130 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
132 ifeq ($(BUILD),debug)
133 ifeq ($(DEBUG_INFO),default)
137 ifeq ($(BUILD),release)
138 ifeq ($(DEBUG_INFO),default)
142 ifeq ($(DEBUG_INFO),0)
145 ifeq ($(DEBUG_INFO),1)
148 ifeq ($(BUILD),debug)
151 ifeq ($(BUILD),release)
154 ifeq ($(USE_EXCEPTIONS),0)
155 __EXCEPTIONSFLAG = -fno-rtti
157 ifeq ($(USE_EXCEPTIONS),1)
160 ifeq ($(USE_EXCEPTIONS),0)
161 __EXCEPTIONSFLAG_0 = -fno-exceptions
163 ifeq ($(USE_EXCEPTIONS),1)
167 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
169 ifeq ($(BUILD),debug)
170 ifeq ($(DEBUG_FLAG),default)
171 __DEBUG_DEFINE_p = -D__WXDEBUG__
174 ifeq ($(DEBUG_FLAG),1)
175 __DEBUG_DEFINE_p = -D__WXDEBUG__
178 __UNICODE_DEFINE_p = -D_UNICODE
181 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG)
184 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG)
190 -if not exist $(OBJS) mkdir $(OBJS)
194 all: $(__ogldll___depname) $(__ogllib___depname)
197 -if exist $(OBJS)\*.o del $(OBJS)\*.o
198 -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
199 -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
200 -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
203 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
204 $(CXX) -shared -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)
208 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
210 ar rcu $@ $(OGLLIB_OBJECTS)
214 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
215 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
217 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
218 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
220 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
221 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
223 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
224 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
226 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
227 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
229 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
230 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
232 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
233 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
235 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
236 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
238 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
239 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
241 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
242 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
244 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
245 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
247 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
248 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
250 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
251 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
253 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
254 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
256 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
257 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
259 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
260 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
262 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
263 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
265 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
266 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
268 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
269 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
271 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
272 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
274 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
275 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
277 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
278 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
280 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
281 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
283 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
284 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
286 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
287 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
289 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
290 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<