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