]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
Defaults in wxWinCE documented.
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
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 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 26
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
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) \
27 $(CXXFLAGS)
28 OGLDLL_OBJECTS = \
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)
49 OGLLIB_OBJECTS = \
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
63
64 ### Conditionally set variables: ###
65
66 ifeq ($(GCC_VERSION),2.95)
67 GCCFLAGS = -fvtable-thunks
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 ($(UNICODE),1)
90 WXUNICODEFLAG = u
91 endif
92 ifeq ($(WXUNIV),1)
93 WXUNIVNAME = univ
94 endif
95 ifeq ($(SHARED),1)
96 WXDLLFLAG = dll
97 endif
98 ifeq ($(SHARED),0)
99 LIBTYPE_SUFFIX = lib
100 endif
101 ifeq ($(SHARED),1)
102 LIBTYPE_SUFFIX = dll
103 endif
104 ifeq ($(MONOLITHIC),0)
105 EXTRALIBS_FOR_BASE =
106 endif
107 ifeq ($(MONOLITHIC),1)
108 EXTRALIBS_FOR_BASE =
109 endif
110 ifeq ($(SHARED),1)
111 __ogldll___depname = \
112 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
113 endif
114 ifeq ($(WXUNIV),1)
115 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
116 endif
117 ifeq ($(BUILD),debug)
118 ifeq ($(DEBUG_FLAG),default)
119 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120 endif
121 endif
122 ifeq ($(DEBUG_FLAG),1)
123 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
124 endif
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
127 endif
128 ifeq ($(USE_RTTI),0)
129 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
130 endif
131 ifeq ($(USE_THREADS),0)
132 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
133 endif
134 ifeq ($(UNICODE),1)
135 __UNICODE_DEFINE_p_1 = --define _UNICODE
136 endif
137 ifeq ($(MONOLITHIC),1)
138 __WXLIB_MONO_p = \
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
140 endif
141 ifeq ($(USE_GUI),1)
142 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
143 endif
144 ifeq ($(USE_GUI),1)
145 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
146 endif
147 ifeq ($(USE_GUI),1)
148 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
149 endif
150 ifeq ($(MSLU),1)
151 __UNICOWS_LIB_p = -lunicows
152 endif
153 ifeq ($(MONOLITHIC),0)
154 __WXLIB_CORE_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
156 endif
157 ifeq ($(MONOLITHIC),0)
158 __WXLIB_BASE_p = \
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 endif
161 ifeq ($(SHARED),0)
162 __ogllib___depname = \
163 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
164 endif
165 ifeq ($(BUILD),debug)
166 ifeq ($(DEBUG_INFO),default)
167 __DEBUGINFO = -g
168 endif
169 endif
170 ifeq ($(BUILD),release)
171 ifeq ($(DEBUG_INFO),default)
172 __DEBUGINFO =
173 endif
174 endif
175 ifeq ($(DEBUG_INFO),0)
176 __DEBUGINFO =
177 endif
178 ifeq ($(DEBUG_INFO),1)
179 __DEBUGINFO = -g
180 endif
181 ifeq ($(BUILD),debug)
182 __OPTIMIZEFLAG = -O0
183 endif
184 ifeq ($(BUILD),release)
185 __OPTIMIZEFLAG = -O2
186 endif
187 ifeq ($(USE_THREADS),0)
188 __THREADSFLAG =
189 endif
190 ifeq ($(USE_THREADS),1)
191 __THREADSFLAG = -mthreads
192 endif
193 ifeq ($(USE_RTTI),0)
194 __RTTIFLAG = -fno-rtti
195 endif
196 ifeq ($(USE_RTTI),1)
197 __RTTIFLAG =
198 endif
199 ifeq ($(USE_EXCEPTIONS),0)
200 __EXCEPTIONSFLAG = -fno-exceptions
201 endif
202 ifeq ($(USE_EXCEPTIONS),1)
203 __EXCEPTIONSFLAG =
204 endif
205 ifeq ($(WXUNIV),1)
206 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
207 endif
208 ifeq ($(BUILD),debug)
209 ifeq ($(DEBUG_FLAG),default)
210 __DEBUG_DEFINE_p = -D__WXDEBUG__
211 endif
212 endif
213 ifeq ($(DEBUG_FLAG),1)
214 __DEBUG_DEFINE_p = -D__WXDEBUG__
215 endif
216 ifeq ($(USE_EXCEPTIONS),0)
217 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
218 endif
219 ifeq ($(USE_RTTI),0)
220 __RTTI_DEFINE_p = -DwxNO_RTTI
221 endif
222 ifeq ($(USE_THREADS),0)
223 __THREAD_DEFINE_p = -DwxNO_THREADS
224 endif
225 ifeq ($(UNICODE),1)
226 __UNICODE_DEFINE_p = -D_UNICODE
227 endif
228
229
230 all: $(OBJS)
231 $(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234 ### Targets: ###
235
236 all: $(__ogldll___depname) $(__ogllib___depname)
237
238 clean:
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
243
244 ifeq ($(SHARED),1)
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)
247 endif
248
249 ifeq ($(SHARED),0)
250 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
251 if exist $@ del $@
252 ar rcu $@ $(OGLLIB_OBJECTS)
253 ranlib $@
254 endif
255
256 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
257 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
258
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)
261
262 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
263 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
264
265 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
266 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
267
268 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
269 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
270
271 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
272 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
273
274 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
275 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
276
277 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
278 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
279
280 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
281 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
282
283 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
284 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
285
286 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
287 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
288
289 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
290 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
291
292 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
293 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
294
295 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
296 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
297
298 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
299 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
300
301 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
302 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
303
304 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
305 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
306
307 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
308 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
309
310 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
311 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
312
313 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
314 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
315
316 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
317 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
318
319 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
320 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
321
322 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
323 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
324
325 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
326 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
327
328 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
329 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
330
331 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
332 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
333
334 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
335 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
336
337 .PHONY: all clean
338
339