1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
18 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
19 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
20 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
21 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
23 $(OBJS)\ogldll_dummy.o \
24 $(OBJS)\ogldll_basic2.o \
25 $(OBJS)\ogldll_canvas.o \
26 $(OBJS)\ogldll_divided.o \
27 $(OBJS)\ogldll_mfutils.o \
28 $(OBJS)\ogldll_oglmisc.o \
29 $(OBJS)\ogldll_basic.o \
30 $(OBJS)\ogldll_composit.o \
31 $(OBJS)\ogldll_drawn.o \
32 $(OBJS)\ogldll_bmpshape.o \
33 $(OBJS)\ogldll_constrnt.o \
34 $(OBJS)\ogldll_lines.o \
35 $(OBJS)\ogldll_ogldiag.o
36 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
37 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
39 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
40 $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\ogllib_dummy.o \
43 $(OBJS)\ogllib_basic2.o \
44 $(OBJS)\ogllib_canvas.o \
45 $(OBJS)\ogllib_divided.o \
46 $(OBJS)\ogllib_mfutils.o \
47 $(OBJS)\ogllib_oglmisc.o \
48 $(OBJS)\ogllib_basic.o \
49 $(OBJS)\ogllib_composit.o \
50 $(OBJS)\ogllib_drawn.o \
51 $(OBJS)\ogllib_bmpshape.o \
52 $(OBJS)\ogllib_constrnt.o \
53 $(OBJS)\ogllib_lines.o \
54 $(OBJS)\ogllib_ogldiag.o
56 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
58 ### Conditionally set variables: ###
60 ifeq ($(GCC_VERSION),2.95)
61 GCCFLAGS = -fvtable-thunks
64 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG)
67 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG)
75 ifeq ($(OFFICIAL_BUILD),0)
76 VENDORTAG = _$(VENDOR)
78 ifeq ($(OFFICIAL_BUILD),1)
82 ifeq ($(DEBUG_FLAG),default)
86 ifeq ($(DEBUG_FLAG),1)
99 ifeq ($(DEBUG_INFO),default)
103 ifeq ($(BUILD),release)
104 ifeq ($(DEBUG_INFO),default)
108 ifeq ($(DEBUG_INFO),0)
111 ifeq ($(DEBUG_INFO),1)
114 ifeq ($(BUILD),debug)
115 ifeq ($(DEBUG_FLAG),default)
116 __DEBUG_DEFINE_p = -D__WXDEBUG__
119 ifeq ($(DEBUG_FLAG),1)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
122 ifeq ($(USE_EXCEPTIONS),0)
123 __EXCEPTIONSFLAG = -fno-rtti
125 ifeq ($(USE_EXCEPTIONS),1)
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONSFLAG_0 = -fno-exceptions
131 ifeq ($(USE_EXCEPTIONS),1)
135 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
138 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
141 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
143 ifeq ($(BUILD),debug)
146 ifeq ($(BUILD),release)
150 __UNICODE_DEFINE_p = -D_UNICODE
153 __UNICOWS_LIB_p = -lunicows
155 ifeq ($(MONOLITHIC),0)
156 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
158 ifeq ($(MONOLITHIC),0)
160 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
162 ifeq ($(MONOLITHIC),1)
164 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
167 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
170 __ogldll___depname = \
171 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
174 __ogllib___depname = \
175 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
181 -if not exist $(OBJS) mkdir $(OBJS)
185 all: $(__ogldll___depname) $(__ogllib___depname)
187 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
188 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
190 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
191 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
193 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
194 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
196 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
197 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
199 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
200 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
202 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
203 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
205 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
206 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
208 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
209 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
211 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
212 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
214 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.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_ogldiag.o: ../../src/ogl/ogldiag.cpp
221 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
223 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
224 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
226 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
227 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
229 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
230 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
232 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
233 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
235 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
236 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
238 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
239 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
241 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
242 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
244 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
245 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
247 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
248 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
250 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
251 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
253 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.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_ogldiag.o: ../../src/ogl/ogldiag.cpp
260 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
262 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
263 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
266 -if exist $(OBJS)\*.o del $(OBJS)\*.o
267 -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
268 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
269 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
272 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
273 $(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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
277 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a: $(OGLLIB_OBJECTS)
279 ar rcu $@ $(OGLLIB_OBJECTS)