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