]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (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 |
b14abf14 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4 |
3f55f5b8 VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
22 | OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
23 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 | 24 | -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 25 | -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \ |
b14abf14 JS |
26 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \ |
27 | $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
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 | |
9bfe7ad9 VS |
42 | OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
43 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 | 44 | -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 45 | -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ |
b14abf14 | 46 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
3f55f5b8 VS |
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 | |
250700e4 RD |
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) | |
3f55f5b8 VS |
80 | ifeq ($(DEBUG_FLAG),default) |
81 | WXDEBUGFLAG = d | |
82 | endif | |
83 | endif | |
84 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
85 | WXDEBUGFLAG = d |
86 | endif | |
250700e4 RD |
87 | ifeq ($(UNICODE),1) |
88 | WXUNICODEFLAG = u | |
89 | endif | |
90 | ifeq ($(WXUNIV),1) | |
91 | WXUNIVNAME = univ | |
92 | endif | |
b17c1746 DE |
93 | ifeq ($(SHARED),1) |
94 | WXDLLFLAG = dll | |
95 | endif | |
b14abf14 JS |
96 | ifeq ($(SHARED),0) |
97 | LIBTYPE_SUFFIX = lib | |
98 | endif | |
99 | ifeq ($(SHARED),1) | |
100 | LIBTYPE_SUFFIX = dll | |
101 | endif | |
dd65d8c8 RN |
102 | ifeq ($(MONOLITHIC),0) |
103 | EXTRALIBS_FOR_BASE = | |
104 | endif | |
105 | ifeq ($(MONOLITHIC),1) | |
106 | EXTRALIBS_FOR_BASE = | |
107 | endif | |
b17c1746 DE |
108 | ifeq ($(SHARED),1) |
109 | __ogldll___depname = \ | |
c33fae85 | 110 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll |
b17c1746 DE |
111 | endif |
112 | ifeq ($(MONOLITHIC),1) | |
113 | __WXLIB_MONO_p = \ | |
c33fae85 | 114 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
115 | endif |
116 | ifeq ($(USE_GUI),1) | |
9c2d002b | 117 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
118 | endif |
119 | ifeq ($(USE_GUI),1) | |
9c2d002b | 120 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
121 | endif |
122 | ifeq ($(USE_GUI),1) | |
9c2d002b | 123 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
124 | endif |
125 | ifeq ($(MSLU),1) | |
126 | __UNICOWS_LIB_p = -lunicows | |
127 | endif | |
128 | ifeq ($(MONOLITHIC),0) | |
129 | __WXLIB_CORE_p = \ | |
c33fae85 | 130 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
131 | endif |
132 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
133 | __WXLIB_BASE_p = \ |
134 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
135 | endif |
136 | ifeq ($(SHARED),0) | |
137 | __ogllib___depname = \ | |
c33fae85 | 138 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a |
b17c1746 | 139 | endif |
250700e4 | 140 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
141 | ifeq ($(DEBUG_INFO),default) |
142 | __DEBUGINFO = -g | |
143 | endif | |
250700e4 RD |
144 | endif |
145 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
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 | |
250700e4 RD |
155 | endif |
156 | ifeq ($(BUILD),debug) | |
b17c1746 | 157 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 158 | endif |
b17c1746 DE |
159 | ifeq ($(BUILD),release) |
160 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 161 | endif |
a4ad36cd VS |
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 | |
b17c1746 DE |
174 | ifeq ($(WXUNIV),1) |
175 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 176 | endif |
250700e4 | 177 | ifeq ($(BUILD),debug) |
b17c1746 DE |
178 | ifeq ($(DEBUG_FLAG),default) |
179 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 180 | endif |
b17c1746 DE |
181 | endif |
182 | ifeq ($(DEBUG_FLAG),1) | |
183 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
184 | endif |
185 | ifeq ($(UNICODE),1) | |
ec08d395 | 186 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 187 | endif |
250700e4 RD |
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 | ||
b17c1746 DE |
198 | clean: |
199 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
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 | |
b17c1746 DE |
203 | |
204 | ifeq ($(SHARED),1) | |
c33fae85 | 205 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) |
b14abf14 | 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) |
b17c1746 DE |
207 | endif |
208 | ||
209 | ifeq ($(SHARED),0) | |
c33fae85 | 210 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS) |
b17c1746 DE |
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 | |
250700e4 RD |
217 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
218 | ||
1c3a6972 | 219 | $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
220 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
221 | ||
b17c1746 | 222 | $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
223 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
224 | ||
b17c1746 | 225 | $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
226 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
227 | ||
b17c1746 | 228 | $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
229 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
230 | ||
b17c1746 | 231 | $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
232 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
233 | ||
b17c1746 | 234 | $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
235 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
236 | ||
b17c1746 | 237 | $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
238 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
239 | ||
b17c1746 | 240 | $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
241 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
242 | ||
b17c1746 | 243 | $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
244 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
245 | ||
b17c1746 | 246 | $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
247 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
248 | ||
b17c1746 | 249 | $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
250 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
251 | ||
b17c1746 | 252 | $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp |
250700e4 RD |
253 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
254 | ||
b17c1746 | 255 | $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp |
250700e4 RD |
256 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
257 | ||
1c3a6972 | 258 | $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
259 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
260 | ||
1c3a6972 | 261 | $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
262 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
263 | ||
b17c1746 | 264 | $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
265 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
266 | ||
b17c1746 | 267 | $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
268 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
269 | ||
b17c1746 | 270 | $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
271 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
272 | ||
b17c1746 | 273 | $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
274 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
275 | ||
b17c1746 | 276 | $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
277 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
278 | ||
b17c1746 | 279 | $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
280 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
281 | ||
b17c1746 | 282 | $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
283 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
284 | ||
b17c1746 | 285 | $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
286 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
287 | ||
b17c1746 | 288 | $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
289 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
290 | ||
b17c1746 DE |
291 | $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp |
292 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
250700e4 RD |
293 | |
294 | .PHONY: all clean | |
b14abf14 | 295 |