1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
22 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
25 $(OBJS)\ogldll_dummy.o \
26 $(OBJS)\ogldll_basic2.o \
27 $(OBJS)\ogldll_canvas.o \
28 $(OBJS)\ogldll_divided.o \
29 $(OBJS)\ogldll_mfutils.o \
30 $(OBJS)\ogldll_oglmisc.o \
31 $(OBJS)\ogldll_basic.o \
32 $(OBJS)\ogldll_composit.o \
33 $(OBJS)\ogldll_drawn.o \
34 $(OBJS)\ogldll_bmpshape.o \
35 $(OBJS)\ogldll_constrnt.o \
36 $(OBJS)\ogldll_lines.o \
37 $(OBJS)\ogldll_ogldiag.o
38 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
39 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
41 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
42 $(CPPFLAGS) $(CXXFLAGS)
44 $(OBJS)\ogllib_dummy.o \
45 $(OBJS)\ogllib_basic2.o \
46 $(OBJS)\ogllib_canvas.o \
47 $(OBJS)\ogllib_divided.o \
48 $(OBJS)\ogllib_mfutils.o \
49 $(OBJS)\ogllib_oglmisc.o \
50 $(OBJS)\ogllib_basic.o \
51 $(OBJS)\ogllib_composit.o \
52 $(OBJS)\ogllib_drawn.o \
53 $(OBJS)\ogllib_bmpshape.o \
54 $(OBJS)\ogllib_constrnt.o \
55 $(OBJS)\ogllib_lines.o \
56 $(OBJS)\ogllib_ogldiag.o
58 ### Conditionally set variables: ###
60 ifeq ($(GCC_VERSION),2.95)
61 GCCFLAGS = -fvtable-thunks
69 ifeq ($(OFFICIAL_BUILD),0)
70 VENDORTAG = _$(VENDOR)
72 ifeq ($(OFFICIAL_BUILD),1)
76 ifeq ($(DEBUG_FLAG),default)
80 ifeq ($(DEBUG_FLAG),1)
93 __ogldll___depname = \
94 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
96 ifeq ($(MONOLITHIC),1)
98 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
101 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
104 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
107 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
110 __UNICOWS_LIB_p = -lunicows
112 ifeq ($(MONOLITHIC),0)
114 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
116 ifeq ($(MONOLITHIC),0)
117 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
120 __ogllib___depname = \
121 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
123 ifeq ($(BUILD),debug)
124 ifeq ($(DEBUG_INFO),default)
128 ifeq ($(BUILD),release)
129 ifeq ($(DEBUG_INFO),default)
133 ifeq ($(DEBUG_INFO),0)
136 ifeq ($(DEBUG_INFO),1)
139 ifeq ($(BUILD),debug)
142 ifeq ($(BUILD),release)
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONSFLAG = -fno-rtti
148 ifeq ($(USE_EXCEPTIONS),1)
151 ifeq ($(USE_EXCEPTIONS),0)
152 __EXCEPTIONSFLAG_0 = -fno-exceptions
154 ifeq ($(USE_EXCEPTIONS),1)
158 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 ifeq ($(BUILD),debug)
161 ifeq ($(DEBUG_FLAG),default)
162 __DEBUG_DEFINE_p = -D__WXDEBUG__
165 ifeq ($(DEBUG_FLAG),1)
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
169 __UNICODE_DEFINE_p = -D_UNICODE
172 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG)
175 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG)
181 -if not exist $(OBJS) mkdir $(OBJS)
185 all: $(__ogldll___depname) $(__ogllib___depname)
188 -if exist $(OBJS)\*.o del $(OBJS)\*.o
189 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
190 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
191 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
194 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
195 $(CXX) -shared -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
199 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a: $(OGLLIB_OBJECTS)
201 ar rcu $@ $(OGLLIB_OBJECTS)
205 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
206 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
208 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
209 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
211 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
212 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
214 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
215 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
217 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
218 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
220 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
221 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
223 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
224 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
226 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
227 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
229 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
230 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
232 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
233 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
235 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
236 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
238 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
239 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
241 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
242 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
244 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
245 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
247 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
248 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
250 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
251 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
253 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
254 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
256 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
257 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
259 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
260 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
262 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
263 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
265 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
266 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
268 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
269 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
271 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
272 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
274 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
275 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
277 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
278 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
280 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
281 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<