]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
mention ShouldInheritColours() change
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
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 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 OGLDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
18 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
19 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
20 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(CXXFLAGS) \
21 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0)
22 OGLDLL_OBJECTS = \
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 = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
37 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
39 -I..\..\src\ogl\..\..\include $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
40 $(__EXCEPTIONSFLAG_0)
41 OGLLIB_OBJECTS = \
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
55 SETUPHDIR = \
56 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
57
58 ### Conditionally set variables: ###
59
60 ifeq ($(GCC_VERSION),2.95)
61 GCCFLAGS = -fvtable-thunks
62 endif
63 ifeq ($(SHARED),0)
64 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG)
65 endif
66 ifeq ($(SHARED),1)
67 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG)
68 endif
69 ifeq ($(USE_GUI),0)
70 PORTNAME = base
71 endif
72 ifeq ($(USE_GUI),1)
73 PORTNAME = msw
74 endif
75 ifeq ($(OFFICIAL_BUILD),0)
76 VENDORTAG = _$(VENDOR)
77 endif
78 ifeq ($(OFFICIAL_BUILD),1)
79 VENDORTAG =
80 endif
81 ifeq ($(BUILD),debug)
82 ifeq ($(DEBUG_FLAG),default)
83 WXDEBUGFLAG = d
84 endif
85 endif
86 ifeq ($(DEBUG_FLAG),1)
87 WXDEBUGFLAG = d
88 endif
89 ifeq ($(SHARED),1)
90 WXDLLFLAG = dll
91 endif
92 ifeq ($(UNICODE),1)
93 WXUNICODEFLAG = u
94 endif
95 ifeq ($(WXUNIV),1)
96 WXUNIVNAME = univ
97 endif
98 ifeq ($(BUILD),debug)
99 ifeq ($(DEBUG_INFO),default)
100 __DEBUGINFO = -g
101 endif
102 endif
103 ifeq ($(BUILD),release)
104 ifeq ($(DEBUG_INFO),default)
105 __DEBUGINFO =
106 endif
107 endif
108 ifeq ($(DEBUG_INFO),0)
109 __DEBUGINFO =
110 endif
111 ifeq ($(DEBUG_INFO),1)
112 __DEBUGINFO = -g
113 endif
114 ifeq ($(BUILD),debug)
115 ifeq ($(DEBUG_FLAG),default)
116 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 endif
118 endif
119 ifeq ($(DEBUG_FLAG),1)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
121 endif
122 ifeq ($(USE_EXCEPTIONS),0)
123 __EXCEPTIONSFLAG = -fno-rtti
124 endif
125 ifeq ($(USE_EXCEPTIONS),1)
126 __EXCEPTIONSFLAG =
127 endif
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONSFLAG_0 = -fno-exceptions
130 endif
131 ifeq ($(USE_EXCEPTIONS),1)
132 __EXCEPTIONSFLAG_0 =
133 endif
134 ifeq ($(USE_GUI),1)
135 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
136 endif
137 ifeq ($(USE_GUI),1)
138 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
142 endif
143 ifeq ($(BUILD),debug)
144 __OPTIMIZEFLAG = -O0
145 endif
146 ifeq ($(BUILD),release)
147 __OPTIMIZEFLAG = -O2
148 endif
149 ifeq ($(UNICODE),1)
150 __UNICODE_DEFINE_p = -D_UNICODE
151 endif
152 ifeq ($(MSLU),1)
153 __UNICOWS_LIB_p = -lunicows
154 endif
155 ifeq ($(MONOLITHIC),0)
156 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157 endif
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_CORE_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
161 endif
162 ifeq ($(MONOLITHIC),1)
163 __WXLIB_MONO_p = \
164 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
165 endif
166 ifeq ($(WXUNIV),1)
167 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
168 endif
169 ifeq ($(SHARED),1)
170 __ogldll___depname = \
171 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
172 endif
173 ifeq ($(SHARED),0)
174 __ogllib___depname = \
175 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
176 endif
177
178
179 all: $(OBJS)
180 $(OBJS):
181 -if not exist $(OBJS) mkdir $(OBJS)
182
183 ### Targets: ###
184
185 all: $(__ogldll___depname) $(__ogllib___depname)
186
187 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
188 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
189
190 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
191 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
192
193 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
194 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
195
196 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
197 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
198
199 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
200 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
201
202 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
203 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
204
205 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
206 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
207
208 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
209 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
210
211 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
212 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
213
214 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
215 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
216
217 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
218 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
219
220 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
221 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
222
223 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
224 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
225
226 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
227 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
228
229 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
230 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
231
232 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
233 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
234
235 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
236 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
237
238 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
239 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
240
241 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
242 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
243
244 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
245 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
246
247 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
248 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
249
250 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
251 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
252
253 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
254 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
255
256 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
257 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
258
259 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
260 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
261
262 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
263 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
264
265 clean:
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
270
271 ifeq ($(SHARED),1)
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)
274 endif
275
276 ifeq ($(SHARED),0)
277 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a: $(OGLLIB_OBJECTS)
278 if exist $@ del $@
279 ar rcu $@ $(OGLLIB_OBJECTS)
280 ranlib $@
281 endif
282
283 .PHONY: all clean