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