1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W \
25 -Wall -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
26 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(OBJS)\ogldll_dummy.o \
30 $(OBJS)\ogldll_version_rc.o \
31 $(OBJS)\ogldll_basic2.o \
32 $(OBJS)\ogldll_canvas.o \
33 $(OBJS)\ogldll_divided.o \
34 $(OBJS)\ogldll_mfutils.o \
35 $(OBJS)\ogldll_oglmisc.o \
36 $(OBJS)\ogldll_basic.o \
37 $(OBJS)\ogldll_composit.o \
38 $(OBJS)\ogldll_drawn.o \
39 $(OBJS)\ogldll_bmpshape.o \
40 $(OBJS)\ogldll_constrnt.o \
41 $(OBJS)\ogldll_lines.o \
42 $(OBJS)\ogldll_ogldiag.o
43 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
44 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
45 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
46 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W \
47 -Wall -I..\..\src\ogl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
48 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
50 $(OBJS)\ogllib_dummy.o \
51 $(OBJS)\ogllib_basic2.o \
52 $(OBJS)\ogllib_canvas.o \
53 $(OBJS)\ogllib_divided.o \
54 $(OBJS)\ogllib_mfutils.o \
55 $(OBJS)\ogllib_oglmisc.o \
56 $(OBJS)\ogllib_basic.o \
57 $(OBJS)\ogllib_composit.o \
58 $(OBJS)\ogllib_drawn.o \
59 $(OBJS)\ogllib_bmpshape.o \
60 $(OBJS)\ogllib_constrnt.o \
61 $(OBJS)\ogllib_lines.o \
62 $(OBJS)\ogllib_ogldiag.o
64 ### Conditionally set variables: ###
66 ifeq ($(GCC_VERSION),2.95)
67 GCCFLAGS = -fvtable-thunks
75 ifeq ($(OFFICIAL_BUILD),0)
76 VENDORTAG = _$(VENDOR)
78 ifeq ($(OFFICIAL_BUILD),1)
82 ifeq ($(DEBUG_FLAG),default)
86 ifeq ($(DEBUG_FLAG),1)
104 ifeq ($(MONOLITHIC),0)
107 ifeq ($(MONOLITHIC),1)
111 __ogldll___depname = \
112 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
115 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_FLAG),default)
119 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122 ifeq ($(DEBUG_FLAG),1)
123 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
129 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
131 ifeq ($(USE_THREADS),0)
132 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
135 __UNICODE_DEFINE_p_1 = --define _UNICODE
137 ifeq ($(MONOLITHIC),1)
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
142 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
145 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
148 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
151 __UNICOWS_LIB_p = -lunicows
153 ifeq ($(MONOLITHIC),0)
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
157 ifeq ($(MONOLITHIC),0)
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
162 __ogllib___depname = \
163 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
165 ifeq ($(BUILD),debug)
166 ifeq ($(DEBUG_INFO),default)
170 ifeq ($(BUILD),release)
171 ifeq ($(DEBUG_INFO),default)
175 ifeq ($(DEBUG_INFO),0)
178 ifeq ($(DEBUG_INFO),1)
181 ifeq ($(BUILD),debug)
184 ifeq ($(BUILD),release)
187 ifeq ($(USE_THREADS),0)
190 ifeq ($(USE_THREADS),1)
191 __THREADSFLAG = -mthreads
194 __RTTIFLAG = -fno-rtti
199 ifeq ($(USE_EXCEPTIONS),0)
200 __EXCEPTIONSFLAG = -fno-exceptions
202 ifeq ($(USE_EXCEPTIONS),1)
206 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
208 ifeq ($(BUILD),debug)
209 ifeq ($(DEBUG_FLAG),default)
210 __DEBUG_DEFINE_p = -D__WXDEBUG__
213 ifeq ($(DEBUG_FLAG),1)
214 __DEBUG_DEFINE_p = -D__WXDEBUG__
216 ifeq ($(USE_EXCEPTIONS),0)
217 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
220 __RTTI_DEFINE_p = -DwxNO_RTTI
222 ifeq ($(USE_THREADS),0)
223 __THREAD_DEFINE_p = -DwxNO_THREADS
226 __UNICODE_DEFINE_p = -D_UNICODE
232 -if not exist $(OBJS) mkdir $(OBJS)
236 all: $(__ogldll___depname) $(__ogllib___depname)
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
240 -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
241 -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
242 -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
245 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
246 $(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)
250 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
252 ar rcu $@ $(OGLLIB_OBJECTS)
256 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
257 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
259 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
260 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) --include-dir ../../src/ogl/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
262 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
263 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
265 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
266 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
268 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
269 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
271 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
272 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
274 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
275 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
277 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
278 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
280 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
281 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
283 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
284 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
286 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
287 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
289 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
290 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
292 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
293 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
295 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
296 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
298 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
299 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
301 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
302 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
304 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
305 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
307 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
308 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
310 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
311 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
313 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
314 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
316 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
317 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
319 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
320 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
322 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
323 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
325 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
326 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
328 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
329 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
331 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
332 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
334 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
335 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<