]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c3255f5f | 3 | # Bakefile 0.1.3 (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 | ||
3f55f5b8 VS |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
17 | SETUPHDIR = \ |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
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) | |
3f55f5b8 VS |
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 | |
9bfe7ad9 VS |
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) | |
3f55f5b8 VS |
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 | |
250700e4 RD |
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) | |
3f55f5b8 VS |
76 | ifeq ($(DEBUG_FLAG),default) |
77 | WXDEBUGFLAG = d | |
78 | endif | |
79 | endif | |
80 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
81 | WXDEBUGFLAG = d |
82 | endif | |
250700e4 RD |
83 | ifeq ($(UNICODE),1) |
84 | WXUNICODEFLAG = u | |
85 | endif | |
86 | ifeq ($(WXUNIV),1) | |
87 | WXUNIVNAME = univ | |
88 | endif | |
b17c1746 DE |
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 | |
250700e4 | 123 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
124 | ifeq ($(DEBUG_INFO),default) |
125 | __DEBUGINFO = -g | |
126 | endif | |
250700e4 RD |
127 | endif |
128 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
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 | |
250700e4 RD |
138 | endif |
139 | ifeq ($(BUILD),debug) | |
b17c1746 | 140 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 141 | endif |
b17c1746 DE |
142 | ifeq ($(BUILD),release) |
143 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 144 | endif |
a4ad36cd VS |
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 | |
b17c1746 DE |
157 | ifeq ($(WXUNIV),1) |
158 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 159 | endif |
250700e4 | 160 | ifeq ($(BUILD),debug) |
b17c1746 DE |
161 | ifeq ($(DEBUG_FLAG),default) |
162 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 163 | endif |
b17c1746 DE |
164 | endif |
165 | ifeq ($(DEBUG_FLAG),1) | |
166 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
167 | endif |
168 | ifeq ($(UNICODE),1) | |
ec08d395 | 169 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 170 | endif |
b17c1746 DE |
171 | ifeq ($(SHARED),0) |
172 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG) | |
250700e4 RD |
173 | endif |
174 | ifeq ($(SHARED),1) | |
b17c1746 | 175 | LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG) |
250700e4 RD |
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 | ||
b17c1746 DE |
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) | |
b92ca8cf | 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) |
b17c1746 DE |
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 | |
250700e4 RD |
206 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
207 | ||
1c3a6972 | 208 | $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
209 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
210 | ||
b17c1746 | 211 | $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
212 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
213 | ||
b17c1746 | 214 | $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
215 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
216 | ||
b17c1746 | 217 | $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
218 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
219 | ||
b17c1746 | 220 | $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
221 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
222 | ||
b17c1746 | 223 | $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
224 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
225 | ||
b17c1746 | 226 | $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
227 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
228 | ||
b17c1746 | 229 | $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
230 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
231 | ||
b17c1746 | 232 | $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
233 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
234 | ||
b17c1746 | 235 | $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
236 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
237 | ||
b17c1746 | 238 | $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
239 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
240 | ||
b17c1746 | 241 | $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp |
250700e4 RD |
242 | $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $< |
243 | ||
b17c1746 | 244 | $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp |
250700e4 RD |
245 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
246 | ||
1c3a6972 | 247 | $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp |
250700e4 RD |
248 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
249 | ||
1c3a6972 | 250 | $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp |
250700e4 RD |
251 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
252 | ||
b17c1746 | 253 | $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp |
250700e4 RD |
254 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
255 | ||
b17c1746 | 256 | $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp |
250700e4 RD |
257 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
258 | ||
b17c1746 | 259 | $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp |
250700e4 RD |
260 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
261 | ||
b17c1746 | 262 | $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp |
250700e4 RD |
263 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
264 | ||
b17c1746 | 265 | $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp |
250700e4 RD |
266 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
267 | ||
b17c1746 | 268 | $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp |
250700e4 RD |
269 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
270 | ||
b17c1746 | 271 | $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp |
250700e4 RD |
272 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
273 | ||
b17c1746 | 274 | $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp |
250700e4 RD |
275 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
276 | ||
b17c1746 | 277 | $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp |
250700e4 RD |
278 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< |
279 | ||
b17c1746 DE |
280 | $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp |
281 | $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $< | |
250700e4 RD |
282 | |
283 | .PHONY: all clean |