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/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 ..\..\src\ogl\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 OGLDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
22 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
23 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
24 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
25 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(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 = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
41 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
42 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
43 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
44 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
45 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
46 -I..\..\src\ogl\..\..\include $(CXXFLAGS)
48 $(OBJS)\ogllib_dummy.o \
49 $(OBJS)\ogllib_basic2.o \
50 $(OBJS)\ogllib_canvas.o \
51 $(OBJS)\ogllib_divided.o \
52 $(OBJS)\ogllib_mfutils.o \
53 $(OBJS)\ogllib_oglmisc.o \
54 $(OBJS)\ogllib_basic.o \
55 $(OBJS)\ogllib_composit.o \
56 $(OBJS)\ogllib_drawn.o \
57 $(OBJS)\ogllib_bmpshape.o \
58 $(OBJS)\ogllib_constrnt.o \
59 $(OBJS)\ogllib_lines.o \
60 $(OBJS)\ogllib_ogldiag.o
62 ### Conditionally set variables: ###
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
73 ifeq ($(OFFICIAL_BUILD),0)
74 VENDORTAG = _$(VENDOR)
76 ifeq ($(OFFICIAL_BUILD),1)
80 ifeq ($(DEBUG_FLAG),default)
84 ifeq ($(DEBUG_FLAG),1)
97 ifeq ($(DEBUG_INFO),default)
101 ifeq ($(BUILD),release)
102 ifeq ($(DEBUG_INFO),default)
106 ifeq ($(DEBUG_INFO),0)
109 ifeq ($(DEBUG_INFO),1)
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p = -D__WXDEBUG__
121 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
124 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
127 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
129 ifeq ($(BUILD),debug)
132 ifeq ($(BUILD),release)
136 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
138 ifeq ($(MONOLITHIC),0)
139 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
141 ifeq ($(MONOLITHIC),0)
143 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
145 ifeq ($(MONOLITHIC),1)
147 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
150 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153 __ogldll___depname = \
154 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
157 __ogllib___depname = \
158 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
164 -if not exist $(OBJS) mkdir $(OBJS)
168 all: $(__ogldll___depname) $(__ogllib___depname)
170 $(OBJS)\ogldll_basic.o: ../../src/ogl\basic.cpp
171 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
173 $(OBJS)\ogldll_basic2.o: ../../src/ogl\basic2.cpp
174 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
176 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl\bmpshape.cpp
177 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
179 $(OBJS)\ogldll_canvas.o: ../../src/ogl\canvas.cpp
180 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
182 $(OBJS)\ogldll_composit.o: ../../src/ogl\composit.cpp
183 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
185 $(OBJS)\ogldll_constrnt.o: ../../src/ogl\constrnt.cpp
186 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
188 $(OBJS)\ogldll_divided.o: ../../src/ogl\divided.cpp
189 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
191 $(OBJS)\ogldll_drawn.o: ../../src/ogl\drawn.cpp
192 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
194 $(OBJS)\ogldll_dummy.o: ../../src/ogl\..\..\..\src\msw\dummy.cpp
195 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
197 $(OBJS)\ogldll_lines.o: ../../src/ogl\lines.cpp
198 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
200 $(OBJS)\ogldll_mfutils.o: ../../src/ogl\mfutils.cpp
201 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
203 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl\ogldiag.cpp
204 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
206 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl\oglmisc.cpp
207 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
209 $(OBJS)\ogllib_basic.o: ../../src/ogl\basic.cpp
210 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
212 $(OBJS)\ogllib_basic2.o: ../../src/ogl\basic2.cpp
213 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
215 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl\bmpshape.cpp
216 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
218 $(OBJS)\ogllib_canvas.o: ../../src/ogl\canvas.cpp
219 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
221 $(OBJS)\ogllib_composit.o: ../../src/ogl\composit.cpp
222 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
224 $(OBJS)\ogllib_constrnt.o: ../../src/ogl\constrnt.cpp
225 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
227 $(OBJS)\ogllib_divided.o: ../../src/ogl\divided.cpp
228 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
230 $(OBJS)\ogllib_drawn.o: ../../src/ogl\drawn.cpp
231 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
233 $(OBJS)\ogllib_dummy.o: ../../src/ogl\..\..\..\src\msw\dummy.cpp
234 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
236 $(OBJS)\ogllib_lines.o: ../../src/ogl\lines.cpp
237 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
239 $(OBJS)\ogllib_mfutils.o: ../../src/ogl\mfutils.cpp
240 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
242 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl\ogldiag.cpp
243 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
245 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl\oglmisc.cpp
246 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
249 -if exist $(OBJS)\*.o del $(OBJS)\*.o
250 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
251 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
252 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
255 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
256 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
260 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a: $(OGLLIB_OBJECTS)
262 ar rcu $@ $(OGLLIB_OBJECTS)