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