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