]>
Commit | Line | Data |
---|---|---|
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 = 25 | |
16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 | |
17 | OBJS = \ | |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) | |
20 | SETUPHDIR = \ | |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
22 | OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ | |
23 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
24 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
25 | $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W \ | |
26 | -Wall -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \ | |
27 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
28 | $(CXXFLAGS) | |
29 | OGLDLL_OBJECTS = \ | |
30 | $(OBJS)\ogldll_dummy.o \ | |
31 | $(OBJS)\ogldll_version_rc.o \ | |
32 | $(OBJS)\ogldll_basic2.o \ | |
33 | $(OBJS)\ogldll_canvas.o \ | |
34 | $(OBJS)\ogldll_divided.o \ | |
35 | $(OBJS)\ogldll_mfutils.o \ | |
36 | $(OBJS)\ogldll_oglmisc.o \ | |
37 | $(OBJS)\ogldll_basic.o \ | |
38 | $(OBJS)\ogldll_composit.o \ | |
39 | $(OBJS)\ogldll_drawn.o \ | |
40 | $(OBJS)\ogldll_bmpshape.o \ | |
41 | $(OBJS)\ogldll_constrnt.o \ | |
42 | $(OBJS)\ogldll_lines.o \ | |
43 | $(OBJS)\ogldll_ogldiag.o | |
44 | OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ | |
45 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
46 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
47 | $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W \ | |
48 | -Wall -I..\..\src\ogl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
49 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
50 | OGLLIB_OBJECTS = \ | |
51 | $(OBJS)\ogllib_dummy.o \ | |
52 | $(OBJS)\ogllib_basic2.o \ | |
53 | $(OBJS)\ogllib_canvas.o \ | |
54 | $(OBJS)\ogllib_divided.o \ | |
55 | $(OBJS)\ogllib_mfutils.o \ | |
56 | $(OBJS)\ogllib_oglmisc.o \ | |
57 | $(OBJS)\ogllib_basic.o \ | |
58 | $(OBJS)\ogllib_composit.o \ | |
59 | $(OBJS)\ogllib_drawn.o \ | |
60 | $(OBJS)\ogllib_bmpshape.o \ | |
61 | $(OBJS)\ogllib_constrnt.o \ | |
62 | $(OBJS)\ogllib_lines.o \ | |
63 | $(OBJS)\ogllib_ogldiag.o | |
64 | ||
65 | ### Conditionally set variables: ### | |
66 | ||
67 | ifeq ($(GCC_VERSION),2.95) | |
68 | GCCFLAGS = -fvtable-thunks | |
69 | endif | |
70 | ifeq ($(USE_GUI),0) | |
71 | PORTNAME = base | |
72 | endif | |
73 | ifeq ($(USE_GUI),1) | |
74 | PORTNAME = msw | |
75 | endif | |
76 | ifeq ($(OFFICIAL_BUILD),0) | |
77 | VENDORTAG = _$(VENDOR) | |
78 | endif | |
79 | ifeq ($(OFFICIAL_BUILD),1) | |
80 | VENDORTAG = | |
81 | endif | |
82 | ifeq ($(BUILD),debug) | |
83 | ifeq ($(DEBUG_FLAG),default) | |
84 | WXDEBUGFLAG = d | |
85 | endif | |
86 | endif | |
87 | ifeq ($(DEBUG_FLAG),1) | |
88 | WXDEBUGFLAG = d | |
89 | endif | |
90 | ifeq ($(UNICODE),1) | |
91 | WXUNICODEFLAG = u | |
92 | endif | |
93 | ifeq ($(WXUNIV),1) | |
94 | WXUNIVNAME = univ | |
95 | endif | |
96 | ifeq ($(SHARED),1) | |
97 | WXDLLFLAG = dll | |
98 | endif | |
99 | ifeq ($(SHARED),0) | |
100 | LIBTYPE_SUFFIX = lib | |
101 | endif | |
102 | ifeq ($(SHARED),1) | |
103 | LIBTYPE_SUFFIX = dll | |
104 | endif | |
105 | ifeq ($(MONOLITHIC),0) | |
106 | EXTRALIBS_FOR_BASE = | |
107 | endif | |
108 | ifeq ($(MONOLITHIC),1) | |
109 | EXTRALIBS_FOR_BASE = | |
110 | endif | |
111 | ifeq ($(SHARED),1) | |
112 | __ogldll___depname = \ | |
113 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll | |
114 | endif | |
115 | ifeq ($(WXUNIV),1) | |
116 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
117 | endif | |
118 | ifeq ($(BUILD),debug) | |
119 | ifeq ($(DEBUG_FLAG),default) | |
120 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
121 | endif | |
122 | endif | |
123 | ifeq ($(DEBUG_FLAG),1) | |
124 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
125 | endif | |
126 | ifeq ($(USE_EXCEPTIONS),0) | |
127 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
128 | endif | |
129 | ifeq ($(USE_RTTI),0) | |
130 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
131 | endif | |
132 | ifeq ($(USE_THREADS),0) | |
133 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
134 | endif | |
135 | ifeq ($(UNICODE),1) | |
136 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
137 | endif | |
138 | ifeq ($(MONOLITHIC),1) | |
139 | __WXLIB_MONO_p = \ | |
140 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
141 | endif | |
142 | ifeq ($(USE_GUI),1) | |
143 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
144 | endif | |
145 | ifeq ($(USE_GUI),1) | |
146 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
147 | endif | |
148 | ifeq ($(USE_GUI),1) | |
149 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
150 | endif | |
151 | ifeq ($(MSLU),1) | |
152 | __UNICOWS_LIB_p = -lunicows | |
153 | endif | |
154 | ifeq ($(MONOLITHIC),0) | |
155 | __WXLIB_CORE_p = \ | |
156 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
157 | endif | |
158 | ifeq ($(MONOLITHIC),0) | |
159 | __WXLIB_BASE_p = \ | |
160 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
161 | endif | |
162 | ifeq ($(SHARED),0) | |
163 | __ogllib___depname = \ | |
164 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a | |
165 | endif | |
166 | ifeq ($(BUILD),debug) | |
167 | ifeq ($(DEBUG_INFO),default) | |
168 | __DEBUGINFO = -g | |
169 | endif | |
170 | endif | |
171 | ifeq ($(BUILD),release) | |
172 | ifeq ($(DEBUG_INFO),default) | |
173 | __DEBUGINFO = | |
174 | endif | |
175 | endif | |
176 | ifeq ($(DEBUG_INFO),0) | |
177 | __DEBUGINFO = | |
178 | endif | |
179 | ifeq ($(DEBUG_INFO),1) | |
180 | __DEBUGINFO = -g | |
181 | endif | |
182 | ifeq ($(BUILD),debug) | |
183 | __OPTIMIZEFLAG = -O0 | |
184 | endif | |
185 | ifeq ($(BUILD),release) | |
186 | __OPTIMIZEFLAG = -O2 | |
187 | endif | |
188 | ifeq ($(USE_THREADS),0) | |
189 | __THREADSFLAG = | |
190 | endif | |
191 | ifeq ($(USE_THREADS),1) | |
192 | __THREADSFLAG = -mthreads | |
193 | endif | |
194 | ifeq ($(USE_RTTI),0) | |
195 | __RTTIFLAG = -fno-rtti | |
196 | endif | |
197 | ifeq ($(USE_RTTI),1) | |
198 | __RTTIFLAG = | |
199 | endif | |
200 | ifeq ($(USE_EXCEPTIONS),0) | |
201 | __EXCEPTIONSFLAG = -fno-exceptions | |
202 | endif | |
203 | ifeq ($(USE_EXCEPTIONS),1) | |
204 | __EXCEPTIONSFLAG = | |
205 | endif | |
206 | ifeq ($(WXUNIV),1) | |
207 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
208 | endif | |
209 | ifeq ($(BUILD),debug) | |
210 | ifeq ($(DEBUG_FLAG),default) | |
211 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
212 | endif | |
213 | endif | |
214 | ifeq ($(DEBUG_FLAG),1) | |
215 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
216 | endif | |
217 | ifeq ($(USE_EXCEPTIONS),0) | |
218 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
219 | endif | |
220 | ifeq ($(USE_RTTI),0) | |
221 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
222 | endif | |
223 | ifeq ($(USE_THREADS),0) | |
224 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
225 | endif | |
226 | ifeq ($(UNICODE),1) | |
227 | __UNICODE_DEFINE_p = -D_UNICODE | |
228 | endif | |
229 | ||
230 | ||
231 | all: $(OBJS) | |
232 | $(OBJS): | |
233 | -if not exist $(OBJS) mkdir $(OBJS) | |
234 | ||
235 | ### Targets: ### | |
236 | ||
237 | all: $(__ogldll___depname) $(__ogllib___depname) | |
238 | ||
239 | clean: | |
240 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
241 | -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 | |
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 | -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 | |
244 | ||
245 | ifeq ($(SHARED),1) | |
246 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o | |
247 | $(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) | |
248 | endif | |
249 | ||
250 | ifeq ($(SHARED),0) | |
251 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS) | |
252 | if exist $@ del $@ | |
253 | ar rcu $@ $(OGLLIB_OBJECTS) | |
254 | ranlib $@ | |
255 | endif | |
256 | ||
257 | $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp | |
258 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
259 | ||
260 | $(OBJS)\ogldll_version_rc.o: ../../src/ogl/src/msw/version.rc | |
261 | 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG) | |
262 | ||
263 | $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp | |
264 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
265 | ||
266 | $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp | |
267 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
268 | ||
269 | $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp | |
270 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
271 | ||
272 | $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp | |
273 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
274 | ||
275 | $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp | |
276 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
277 | ||
278 | $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp | |
279 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
280 | ||
281 | $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp | |
282 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
283 | ||
284 | $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp | |
285 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
286 | ||
287 | $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp | |
288 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
289 | ||
290 | $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp | |
291 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
292 | ||
293 | $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp | |
294 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
295 | ||
296 | $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp | |
297 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< | |
298 | ||
299 | $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp | |
300 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
301 | ||
302 | $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp | |
303 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
304 | ||
305 | $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp | |
306 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
307 | ||
308 | $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp | |
309 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
310 | ||
311 | $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp | |
312 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
313 | ||
314 | $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp | |
315 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
316 | ||
317 | $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp | |
318 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
319 | ||
320 | $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp | |
321 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
322 | ||
323 | $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp | |
324 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
325 | ||
326 | $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp | |
327 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
328 | ||
329 | $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp | |
330 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
331 | ||
332 | $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp | |
333 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
334 | ||
335 | $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp | |
336 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
337 | ||
338 | .PHONY: all clean | |
339 | ||
340 |