]>
Commit | Line | Data |
---|---|---|
1 | # ========================================================================= | |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) | |
4 | # Do not modify, all changes will be overwritten! | |
5 | # ========================================================================= | |
6 | ||
7 | include ../../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
15 | WX_RELEASE_NODOT = 25 | |
16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 | |
17 | OBJS = \ | |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) | |
20 | SETUPHDIR = \ | |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
22 | DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ | |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
26 | -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
27 | -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \ | |
28 | -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS) | |
29 | DEPRECATEDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ | |
30 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
31 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
32 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
33 | -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
34 | -I..\..\src\deprecated\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_DEPRECATED \ | |
35 | -I..\..\src\deprecated $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
36 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
37 | DEPRECATEDDLL_OBJECTS = \ | |
38 | $(OBJS)\deprecateddll_dummy.o \ | |
39 | $(OBJS)\deprecateddll_version_rc.o \ | |
40 | $(OBJS)\deprecateddll_prop.o \ | |
41 | $(OBJS)\deprecateddll_propform.o \ | |
42 | $(OBJS)\deprecateddll_proplist.o \ | |
43 | $(OBJS)\deprecateddll_resource.o \ | |
44 | $(OBJS)\deprecateddll_tbarsmpl.o \ | |
45 | $(OBJS)\deprecateddll_treelay.o \ | |
46 | $(OBJS)\deprecateddll_wxexpr.o \ | |
47 | $(OBJS)\deprecateddll_dosyacc.o | |
48 | DEPRECATEDLIB_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ | |
49 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
50 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
51 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
52 | -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
53 | -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(CPPFLAGS) \ | |
54 | $(CFLAGS) | |
55 | DEPRECATEDLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ | |
56 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
57 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
58 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
59 | -I..\..\src\deprecated\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
60 | -I..\..\src\deprecated\..\..\include -I..\..\src\deprecated $(__RTTIFLAG) \ | |
61 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
62 | DEPRECATEDLIB_OBJECTS = \ | |
63 | $(OBJS)\deprecatedlib_dummy.o \ | |
64 | $(OBJS)\deprecatedlib_prop.o \ | |
65 | $(OBJS)\deprecatedlib_propform.o \ | |
66 | $(OBJS)\deprecatedlib_proplist.o \ | |
67 | $(OBJS)\deprecatedlib_resource.o \ | |
68 | $(OBJS)\deprecatedlib_tbarsmpl.o \ | |
69 | $(OBJS)\deprecatedlib_treelay.o \ | |
70 | $(OBJS)\deprecatedlib_wxexpr.o \ | |
71 | $(OBJS)\deprecatedlib_dosyacc.o | |
72 | ||
73 | ### Conditionally set variables: ### | |
74 | ||
75 | ifeq ($(GCC_VERSION),2.95) | |
76 | GCCFLAGS = -fvtable-thunks | |
77 | endif | |
78 | ifeq ($(USE_GUI),0) | |
79 | PORTNAME = base | |
80 | endif | |
81 | ifeq ($(USE_GUI),1) | |
82 | PORTNAME = msw | |
83 | endif | |
84 | ifeq ($(OFFICIAL_BUILD),0) | |
85 | VENDORTAG = _$(VENDOR) | |
86 | endif | |
87 | ifeq ($(OFFICIAL_BUILD),1) | |
88 | VENDORTAG = | |
89 | endif | |
90 | ifeq ($(BUILD),debug) | |
91 | ifeq ($(DEBUG_FLAG),default) | |
92 | WXDEBUGFLAG = d | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
96 | WXDEBUGFLAG = d | |
97 | endif | |
98 | ifeq ($(UNICODE),1) | |
99 | WXUNICODEFLAG = u | |
100 | endif | |
101 | ifeq ($(WXUNIV),1) | |
102 | WXUNIVNAME = univ | |
103 | endif | |
104 | ifeq ($(SHARED),1) | |
105 | WXDLLFLAG = dll | |
106 | endif | |
107 | ifeq ($(SHARED),0) | |
108 | LIBTYPE_SUFFIX = lib | |
109 | endif | |
110 | ifeq ($(SHARED),1) | |
111 | LIBTYPE_SUFFIX = dll | |
112 | endif | |
113 | ifeq ($(MONOLITHIC),0) | |
114 | EXTRALIBS_FOR_BASE = | |
115 | endif | |
116 | ifeq ($(MONOLITHIC),1) | |
117 | EXTRALIBS_FOR_BASE = | |
118 | endif | |
119 | ifeq ($(SHARED),1) | |
120 | __deprecateddll___depname = \ | |
121 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll | |
122 | endif | |
123 | ifeq ($(WXUNIV),1) | |
124 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
125 | endif | |
126 | ifeq ($(BUILD),debug) | |
127 | ifeq ($(DEBUG_FLAG),default) | |
128 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
129 | endif | |
130 | endif | |
131 | ifeq ($(DEBUG_FLAG),1) | |
132 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
133 | endif | |
134 | ifeq ($(USE_EXCEPTIONS),0) | |
135 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
136 | endif | |
137 | ifeq ($(USE_RTTI),0) | |
138 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
139 | endif | |
140 | ifeq ($(USE_THREADS),0) | |
141 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
142 | endif | |
143 | ifeq ($(UNICODE),1) | |
144 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
145 | endif | |
146 | ifeq ($(MONOLITHIC),1) | |
147 | __WXLIB_MONO_p = \ | |
148 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
149 | endif | |
150 | ifeq ($(USE_GUI),1) | |
151 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
152 | endif | |
153 | ifeq ($(USE_GUI),1) | |
154 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
155 | endif | |
156 | ifeq ($(USE_GUI),1) | |
157 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
158 | endif | |
159 | ifeq ($(MSLU),1) | |
160 | __UNICOWS_LIB_p = -lunicows | |
161 | endif | |
162 | ifeq ($(MONOLITHIC),0) | |
163 | __WXLIB_CORE_p = \ | |
164 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
165 | endif | |
166 | ifeq ($(MONOLITHIC),0) | |
167 | __WXLIB_BASE_p = \ | |
168 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
169 | endif | |
170 | ifeq ($(SHARED),0) | |
171 | __deprecatedlib___depname = \ | |
172 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
173 | endif | |
174 | ifeq ($(BUILD),debug) | |
175 | ifeq ($(DEBUG_INFO),default) | |
176 | __DEBUGINFO = -g | |
177 | endif | |
178 | endif | |
179 | ifeq ($(BUILD),release) | |
180 | ifeq ($(DEBUG_INFO),default) | |
181 | __DEBUGINFO = | |
182 | endif | |
183 | endif | |
184 | ifeq ($(DEBUG_INFO),0) | |
185 | __DEBUGINFO = | |
186 | endif | |
187 | ifeq ($(DEBUG_INFO),1) | |
188 | __DEBUGINFO = -g | |
189 | endif | |
190 | ifeq ($(BUILD),debug) | |
191 | __OPTIMIZEFLAG = -O0 | |
192 | endif | |
193 | ifeq ($(BUILD),release) | |
194 | __OPTIMIZEFLAG = -O2 | |
195 | endif | |
196 | ifeq ($(USE_THREADS),0) | |
197 | __THREADSFLAG = | |
198 | endif | |
199 | ifeq ($(USE_THREADS),1) | |
200 | __THREADSFLAG = -mthreads | |
201 | endif | |
202 | ifeq ($(USE_RTTI),0) | |
203 | __RTTIFLAG = -fno-rtti | |
204 | endif | |
205 | ifeq ($(USE_RTTI),1) | |
206 | __RTTIFLAG = | |
207 | endif | |
208 | ifeq ($(USE_EXCEPTIONS),0) | |
209 | __EXCEPTIONSFLAG = -fno-exceptions | |
210 | endif | |
211 | ifeq ($(USE_EXCEPTIONS),1) | |
212 | __EXCEPTIONSFLAG = | |
213 | endif | |
214 | ifeq ($(WXUNIV),1) | |
215 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
216 | endif | |
217 | ifeq ($(BUILD),debug) | |
218 | ifeq ($(DEBUG_FLAG),default) | |
219 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
220 | endif | |
221 | endif | |
222 | ifeq ($(DEBUG_FLAG),1) | |
223 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
224 | endif | |
225 | ifeq ($(USE_EXCEPTIONS),0) | |
226 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
227 | endif | |
228 | ifeq ($(USE_RTTI),0) | |
229 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
230 | endif | |
231 | ifeq ($(USE_THREADS),0) | |
232 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
233 | endif | |
234 | ifeq ($(UNICODE),1) | |
235 | __UNICODE_DEFINE_p = -D_UNICODE | |
236 | endif | |
237 | ||
238 | ||
239 | all: $(OBJS) | |
240 | $(OBJS): | |
241 | -if not exist $(OBJS) mkdir $(OBJS) | |
242 | ||
243 | ### Targets: ### | |
244 | ||
245 | all: $(__deprecateddll___depname) $(__deprecatedlib___depname) | |
246 | ||
247 | clean: | |
248 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
249 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll | |
250 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
251 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a | |
252 | ||
253 | ifeq ($(SHARED),1) | |
254 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) $(OBJS)\deprecateddll_version_rc.o | |
255 | $(CXX) -shared -fPIC -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.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) | |
256 | endif | |
257 | ||
258 | ifeq ($(SHARED),0) | |
259 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS) | |
260 | if exist $@ del $@ | |
261 | ar rcu $@ $(DEPRECATEDLIB_OBJECTS) | |
262 | ranlib $@ | |
263 | endif | |
264 | ||
265 | $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp | |
266 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
267 | ||
268 | $(OBJS)\deprecateddll_version_rc.o: ../../src/deprecated/src/msw/version.rc | |
269 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ../../src/deprecated/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG) | |
270 | ||
271 | $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp | |
272 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
273 | ||
274 | $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp | |
275 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
276 | ||
277 | $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp | |
278 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
279 | ||
280 | $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp | |
281 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
282 | ||
283 | $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp | |
284 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
285 | ||
286 | $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp | |
287 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
288 | ||
289 | $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp | |
290 | $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $< | |
291 | ||
292 | $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c | |
293 | $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $< | |
294 | ||
295 | $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp | |
296 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
297 | ||
298 | $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp | |
299 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
300 | ||
301 | $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp | |
302 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
303 | ||
304 | $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp | |
305 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
306 | ||
307 | $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp | |
308 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
309 | ||
310 | $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp | |
311 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
312 | ||
313 | $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp | |
314 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
315 | ||
316 | $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp | |
317 | $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $< | |
318 | ||
319 | $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c | |
320 | $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $< | |
321 | ||
322 | .PHONY: all clean | |
323 | ||
324 |