1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
27 -I..\..\src\ogl\..\..\..\include -W -Wall -I..\..\src\ogl\..\..\include \
28 -DWXUSINGDLL -DWXMAKINGDLL_OGL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\ogldll_dummy.o \
32 $(OBJS)\ogldll_version_rc.o \
33 $(OBJS)\ogldll_basic2.o \
34 $(OBJS)\ogldll_canvas.o \
35 $(OBJS)\ogldll_divided.o \
36 $(OBJS)\ogldll_mfutils.o \
37 $(OBJS)\ogldll_oglmisc.o \
38 $(OBJS)\ogldll_basic.o \
39 $(OBJS)\ogldll_composit.o \
40 $(OBJS)\ogldll_drawn.o \
41 $(OBJS)\ogldll_bmpshape.o \
42 $(OBJS)\ogldll_constrnt.o \
43 $(OBJS)\ogldll_lines.o \
44 $(OBJS)\ogldll_ogldiag.o
45 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
46 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
47 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
48 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
49 -I..\..\src\ogl\..\..\..\include -W -Wall -I..\..\src\ogl\..\..\include \
50 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
53 $(OBJS)\ogllib_dummy.o \
54 $(OBJS)\ogllib_basic2.o \
55 $(OBJS)\ogllib_canvas.o \
56 $(OBJS)\ogllib_divided.o \
57 $(OBJS)\ogllib_mfutils.o \
58 $(OBJS)\ogllib_oglmisc.o \
59 $(OBJS)\ogllib_basic.o \
60 $(OBJS)\ogllib_composit.o \
61 $(OBJS)\ogllib_drawn.o \
62 $(OBJS)\ogllib_bmpshape.o \
63 $(OBJS)\ogllib_constrnt.o \
64 $(OBJS)\ogllib_lines.o \
65 $(OBJS)\ogllib_ogldiag.o
67 ### Conditionally set variables: ###
69 ifeq ($(GCC_VERSION),2.95)
70 GCCFLAGS = -fvtable-thunks
78 ifeq ($(OFFICIAL_BUILD),0)
79 VENDORTAG = _$(VENDOR)
81 ifeq ($(OFFICIAL_BUILD),1)
85 ifeq ($(DEBUG_FLAG),default)
89 ifeq ($(DEBUG_FLAG),1)
107 ifeq ($(MONOLITHIC),0)
110 ifeq ($(MONOLITHIC),1)
114 __ogldll___depname = \
115 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
118 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
120 ifeq ($(BUILD),debug)
121 ifeq ($(DEBUG_FLAG),default)
122 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125 ifeq ($(DEBUG_FLAG),1)
126 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
132 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
138 __UNICODE_DEFINE_p_1 = --define _UNICODE
141 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
143 ifeq ($(MONOLITHIC),1)
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
148 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
151 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
154 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
157 __UNICOWS_LIB_p = -lunicows
159 ifeq ($(MONOLITHIC),0)
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
163 ifeq ($(MONOLITHIC),0)
165 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168 __ogllib___depname = \
169 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
171 ifeq ($(BUILD),debug)
172 ifeq ($(DEBUG_INFO),default)
176 ifeq ($(BUILD),release)
177 ifeq ($(DEBUG_INFO),default)
181 ifeq ($(DEBUG_INFO),0)
184 ifeq ($(DEBUG_INFO),1)
187 ifeq ($(BUILD),debug)
190 ifeq ($(BUILD),release)
193 ifeq ($(USE_THREADS),0)
196 ifeq ($(USE_THREADS),1)
197 __THREADSFLAG = -mthreads
200 __RTTIFLAG = -fno-rtti
205 ifeq ($(USE_EXCEPTIONS),0)
206 __EXCEPTIONSFLAG = -fno-exceptions
208 ifeq ($(USE_EXCEPTIONS),1)
212 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
214 ifeq ($(BUILD),debug)
215 ifeq ($(DEBUG_FLAG),default)
216 __DEBUG_DEFINE_p = -D__WXDEBUG__
219 ifeq ($(DEBUG_FLAG),1)
220 __DEBUG_DEFINE_p = -D__WXDEBUG__
222 ifeq ($(USE_EXCEPTIONS),0)
223 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
226 __RTTI_DEFINE_p = -DwxNO_RTTI
228 ifeq ($(USE_THREADS),0)
229 __THREAD_DEFINE_p = -DwxNO_THREADS
232 __UNICODE_DEFINE_p = -D_UNICODE
235 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(__ogldll___depname) $(__ogllib___depname)
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
250 -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
251 -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
252 -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
255 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
256 $(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)
260 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
262 ar rcu $@ $(OGLLIB_OBJECTS)
266 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
267 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
270 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) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/ogl/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
272 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
273 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
276 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
279 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
281 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
282 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
285 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
287 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
288 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
290 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
291 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
293 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
294 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
296 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
297 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
299 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
300 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
302 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
303 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
305 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
306 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
308 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
309 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
311 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
312 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
314 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
315 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
317 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
318 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
320 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
321 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
323 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
324 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
326 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
327 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
329 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
330 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
332 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
333 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
335 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
336 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
338 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
339 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
341 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
342 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
344 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
345 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
350 # Dependencies tracking: