]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
250700e4 RD |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
ab921f5f | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3 |
3f55f5b8 VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
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) | |
3f55f5b8 VS |
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 | |
9bfe7ad9 VS |
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) | |
3f55f5b8 VS |
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 | |
250700e4 RD |
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) | |
3f55f5b8 VS |
78 | ifeq ($(DEBUG_FLAG),default) |
79 | WXDEBUGFLAG = d | |
80 | endif | |
81 | endif | |
82 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
83 | WXDEBUGFLAG = d |
84 | endif | |
250700e4 RD |
85 | ifeq ($(UNICODE),1) |
86 | WXUNICODEFLAG = u | |
87 | endif | |
88 | ifeq ($(WXUNIV),1) | |
89 | WXUNIVNAME = univ | |
90 | endif | |
b17c1746 DE |
91 | ifeq ($(SHARED),1) |
92 | WXDLLFLAG = dll | |
93 | endif | |
dd65d8c8 RN |
94 | ifeq ($(MONOLITHIC),0) |
95 | EXTRALIBS_FOR_BASE = | |
96 | endif | |
97 | ifeq ($(MONOLITHIC),1) | |
98 | EXTRALIBS_FOR_BASE = | |
99 | endif | |
b17c1746 DE |
100 | ifeq ($(SHARED),1) |
101 | __ogldll___depname = \ | |
c33fae85 | 102 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll |
b17c1746 DE |
103 | endif |
104 | ifeq ($(MONOLITHIC),1) | |
105 | __WXLIB_MONO_p = \ | |
c33fae85 | 106 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
107 | endif |
108 | ifeq ($(USE_GUI),1) | |
9c2d002b | 109 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
110 | endif |
111 | ifeq ($(USE_GUI),1) | |
9c2d002b | 112 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
113 | endif |
114 | ifeq ($(USE_GUI),1) | |
9c2d002b | 115 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
116 | endif |
117 | ifeq ($(MSLU),1) | |
118 | __UNICOWS_LIB_p = -lunicows | |
119 | endif | |
120 | ifeq ($(MONOLITHIC),0) | |
121 | __WXLIB_CORE_p = \ | |
c33fae85 | 122 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
123 | endif |
124 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
125 | __WXLIB_BASE_p = \ |
126 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
127 | endif |
128 | ifeq ($(SHARED),0) | |
129 | __ogllib___depname = \ | |
c33fae85 | 130 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a |
b17c1746 | 131 | endif |
250700e4 | 132 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
133 | ifeq ($(DEBUG_INFO),default) |
134 | __DEBUGINFO = -g | |
135 | endif | |
250700e4 RD |
136 | endif |
137 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
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 | |
250700e4 RD |
147 | endif |
148 | ifeq ($(BUILD),debug) | |
b17c1746 | 149 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 150 | endif |
b17c1746 DE |
151 | ifeq ($(BUILD),release) |
152 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 153 | endif |
a4ad36cd VS |
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 | |
b17c1746 DE |
166 | ifeq ($(WXUNIV),1) |
167 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 168 | endif |
250700e4 | 169 | ifeq ($(BUILD),debug) |
b17c1746 DE |
170 | ifeq ($(DEBUG_FLAG),default) |
171 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 172 | endif |
b17c1746 DE |
173 | endif |
174 | ifeq ($(DEBUG_FLAG),1) | |
175 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
176 | endif |
177 | ifeq ($(UNICODE),1) | |
ec08d395 | 178 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 179 | endif |
b17c1746 DE |
180 | ifeq ($(SHARED),0) |
181 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG) | |
250700e4 RD |
182 | endif |
183 | ifeq ($(SHARED),1) | |
b17c1746 | 184 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG) |
250700e4 RD |
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 | ||
b17c1746 DE |
196 | clean: |
197 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
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 | |
b17c1746 DE |
201 | |
202 | ifeq ($(SHARED),1) | |
c33fae85 | 203 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) |
dd65d8c8 | 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) |
b17c1746 DE |
205 | endif |
206 | ||
207 | ifeq ($(SHARED),0) | |
c33fae85 | 208 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS) |
b17c1746 DE |
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 | |
250700e4 RD |
215 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
216 | ||
1c3a6972 | 217 | $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
218 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
219 | ||
b17c1746 | 220 | $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
221 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
222 | ||
b17c1746 | 223 | $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
224 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
225 | ||
b17c1746 | 226 | $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
227 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
228 | ||
b17c1746 | 229 | $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
230 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
231 | ||
b17c1746 | 232 | $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
233 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
234 | ||
b17c1746 | 235 | $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
236 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
237 | ||
b17c1746 | 238 | $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
239 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
240 | ||
b17c1746 | 241 | $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
242 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
243 | ||
b17c1746 | 244 | $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
245 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
246 | ||
b17c1746 | 247 | $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
248 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
249 | ||
b17c1746 | 250 | $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp |
250700e4 RD |
251 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
252 | ||
b17c1746 | 253 | $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp |
250700e4 RD |
254 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
255 | ||
1c3a6972 | 256 | $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
257 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
258 | ||
1c3a6972 | 259 | $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
260 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
261 | ||
b17c1746 | 262 | $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
263 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
264 | ||
b17c1746 | 265 | $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
266 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
267 | ||
b17c1746 | 268 | $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
269 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
270 | ||
b17c1746 | 271 | $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
272 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
273 | ||
b17c1746 | 274 | $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
275 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
276 | ||
b17c1746 | 277 | $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
278 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
279 | ||
b17c1746 | 280 | $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
281 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
282 | ||
b17c1746 | 283 | $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
284 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
285 | ||
b17c1746 | 286 | $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
287 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
288 | ||
b17c1746 DE |
289 | $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp |
290 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
250700e4 RD |
291 | |
292 | .PHONY: all clean |