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