]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
Removed ambiguity between deprecated and new constructor.
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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)4
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) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
24 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
25 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
28 OGLDLL_OBJECTS = \
29 $(OBJS)\ogldll_dummy.o \
30 $(OBJS)\ogldll_basic2.o \
31 $(OBJS)\ogldll_canvas.o \
32 $(OBJS)\ogldll_divided.o \
33 $(OBJS)\ogldll_mfutils.o \
34 $(OBJS)\ogldll_oglmisc.o \
35 $(OBJS)\ogldll_basic.o \
36 $(OBJS)\ogldll_composit.o \
37 $(OBJS)\ogldll_drawn.o \
38 $(OBJS)\ogldll_bmpshape.o \
39 $(OBJS)\ogldll_constrnt.o \
40 $(OBJS)\ogldll_lines.o \
41 $(OBJS)\ogldll_ogldiag.o
42 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
43 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
44 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
45 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
46 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
47 OGLLIB_OBJECTS = \
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
61
62 ### Conditionally set variables: ###
63
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
66 endif
67 ifeq ($(USE_GUI),0)
68 PORTNAME = base
69 endif
70 ifeq ($(USE_GUI),1)
71 PORTNAME = msw
72 endif
73 ifeq ($(OFFICIAL_BUILD),0)
74 VENDORTAG = _$(VENDOR)
75 endif
76 ifeq ($(OFFICIAL_BUILD),1)
77 VENDORTAG =
78 endif
79 ifeq ($(BUILD),debug)
80 ifeq ($(DEBUG_FLAG),default)
81 WXDEBUGFLAG = d
82 endif
83 endif
84 ifeq ($(DEBUG_FLAG),1)
85 WXDEBUGFLAG = d
86 endif
87 ifeq ($(UNICODE),1)
88 WXUNICODEFLAG = u
89 endif
90 ifeq ($(WXUNIV),1)
91 WXUNIVNAME = univ
92 endif
93 ifeq ($(SHARED),1)
94 WXDLLFLAG = dll
95 endif
96 ifeq ($(SHARED),0)
97 LIBTYPE_SUFFIX = lib
98 endif
99 ifeq ($(SHARED),1)
100 LIBTYPE_SUFFIX = dll
101 endif
102 ifeq ($(MONOLITHIC),0)
103 EXTRALIBS_FOR_BASE =
104 endif
105 ifeq ($(MONOLITHIC),1)
106 EXTRALIBS_FOR_BASE =
107 endif
108 ifeq ($(SHARED),1)
109 __ogldll___depname = \
110 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
111 endif
112 ifeq ($(MONOLITHIC),1)
113 __WXLIB_MONO_p = \
114 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
115 endif
116 ifeq ($(USE_GUI),1)
117 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
118 endif
119 ifeq ($(USE_GUI),1)
120 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121 endif
122 ifeq ($(USE_GUI),1)
123 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124 endif
125 ifeq ($(MSLU),1)
126 __UNICOWS_LIB_p = -lunicows
127 endif
128 ifeq ($(MONOLITHIC),0)
129 __WXLIB_CORE_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
131 endif
132 ifeq ($(MONOLITHIC),0)
133 __WXLIB_BASE_p = \
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
135 endif
136 ifeq ($(SHARED),0)
137 __ogllib___depname = \
138 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
139 endif
140 ifeq ($(BUILD),debug)
141 ifeq ($(DEBUG_INFO),default)
142 __DEBUGINFO = -g
143 endif
144 endif
145 ifeq ($(BUILD),release)
146 ifeq ($(DEBUG_INFO),default)
147 __DEBUGINFO =
148 endif
149 endif
150 ifeq ($(DEBUG_INFO),0)
151 __DEBUGINFO =
152 endif
153 ifeq ($(DEBUG_INFO),1)
154 __DEBUGINFO = -g
155 endif
156 ifeq ($(BUILD),debug)
157 __OPTIMIZEFLAG = -O0
158 endif
159 ifeq ($(BUILD),release)
160 __OPTIMIZEFLAG = -O2
161 endif
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONSFLAG = -fno-rtti
164 endif
165 ifeq ($(USE_EXCEPTIONS),1)
166 __EXCEPTIONSFLAG =
167 endif
168 ifeq ($(USE_EXCEPTIONS),0)
169 __EXCEPTIONSFLAG_0 = -fno-exceptions
170 endif
171 ifeq ($(USE_EXCEPTIONS),1)
172 __EXCEPTIONSFLAG_0 =
173 endif
174 ifeq ($(WXUNIV),1)
175 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
176 endif
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_FLAG),default)
179 __DEBUG_DEFINE_p = -D__WXDEBUG__
180 endif
181 endif
182 ifeq ($(DEBUG_FLAG),1)
183 __DEBUG_DEFINE_p = -D__WXDEBUG__
184 endif
185 ifeq ($(UNICODE),1)
186 __UNICODE_DEFINE_p = -D_UNICODE
187 endif
188
189
190 all: $(OBJS)
191 $(OBJS):
192 -if not exist $(OBJS) mkdir $(OBJS)
193
194 ### Targets: ###
195
196 all: $(__ogldll___depname) $(__ogllib___depname)
197
198 clean:
199 -if exist $(OBJS)\*.o del $(OBJS)\*.o
200 -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
201 -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
202 -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
203
204 ifeq ($(SHARED),1)
205 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
206 $(CXX) -shared -fPIC -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
207 endif
208
209 ifeq ($(SHARED),0)
210 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
211 if exist $@ del $@
212 ar rcu $@ $(OGLLIB_OBJECTS)
213 ranlib $@
214 endif
215
216 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
217 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
218
219 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
220 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
221
222 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
223 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
224
225 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
226 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
227
228 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
229 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
230
231 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
232 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
233
234 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
235 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
236
237 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
238 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
239
240 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
241 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
242
243 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
244 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
245
246 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
247 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
248
249 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
250 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
251
252 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
253 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
254
255 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
256 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
257
258 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
259 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
260
261 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
262 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
263
264 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
265 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
266
267 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
268 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
269
270 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
271 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
272
273 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
274 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
275
276 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
277 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
278
279 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
280 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
281
282 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
283 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
284
285 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
286 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
287
288 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
289 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
290
291 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
292 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
293
294 .PHONY: all clean
295