]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/deprecated/makefile.gcc
Rebake after MSLU and other changes
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 26
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) $(__MSLU_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) $(__MSLU_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) $(__MSLU_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) $(__MSLU_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_RELEASE_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 ($(MSLU),1)
147 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
148 endif
149 ifeq ($(MONOLITHIC),1)
150 __WXLIB_MONO_p = \
151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152 endif
153 ifeq ($(USE_GUI),1)
154 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
155 endif
156 ifeq ($(USE_GUI),1)
157 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
158 endif
159 ifeq ($(USE_GUI),1)
160 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
161 endif
162 ifeq ($(MSLU),1)
163 __UNICOWS_LIB_p = -lunicows
164 endif
165 ifeq ($(MONOLITHIC),0)
166 __WXLIB_CORE_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
168 endif
169 ifeq ($(MONOLITHIC),0)
170 __WXLIB_BASE_p = \
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172 endif
173 ifeq ($(SHARED),0)
174 __deprecatedlib___depname = \
175 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
176 endif
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_INFO),default)
179 __DEBUGINFO = -g
180 endif
181 endif
182 ifeq ($(BUILD),release)
183 ifeq ($(DEBUG_INFO),default)
184 __DEBUGINFO =
185 endif
186 endif
187 ifeq ($(DEBUG_INFO),0)
188 __DEBUGINFO =
189 endif
190 ifeq ($(DEBUG_INFO),1)
191 __DEBUGINFO = -g
192 endif
193 ifeq ($(BUILD),debug)
194 __OPTIMIZEFLAG = -O0
195 endif
196 ifeq ($(BUILD),release)
197 __OPTIMIZEFLAG = -O2
198 endif
199 ifeq ($(USE_THREADS),0)
200 __THREADSFLAG =
201 endif
202 ifeq ($(USE_THREADS),1)
203 __THREADSFLAG = -mthreads
204 endif
205 ifeq ($(USE_RTTI),0)
206 __RTTIFLAG = -fno-rtti
207 endif
208 ifeq ($(USE_RTTI),1)
209 __RTTIFLAG =
210 endif
211 ifeq ($(USE_EXCEPTIONS),0)
212 __EXCEPTIONSFLAG = -fno-exceptions
213 endif
214 ifeq ($(USE_EXCEPTIONS),1)
215 __EXCEPTIONSFLAG =
216 endif
217 ifeq ($(WXUNIV),1)
218 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
219 endif
220 ifeq ($(BUILD),debug)
221 ifeq ($(DEBUG_FLAG),default)
222 __DEBUG_DEFINE_p = -D__WXDEBUG__
223 endif
224 endif
225 ifeq ($(DEBUG_FLAG),1)
226 __DEBUG_DEFINE_p = -D__WXDEBUG__
227 endif
228 ifeq ($(USE_EXCEPTIONS),0)
229 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
230 endif
231 ifeq ($(USE_RTTI),0)
232 __RTTI_DEFINE_p = -DwxNO_RTTI
233 endif
234 ifeq ($(USE_THREADS),0)
235 __THREAD_DEFINE_p = -DwxNO_THREADS
236 endif
237 ifeq ($(UNICODE),1)
238 __UNICODE_DEFINE_p = -D_UNICODE
239 endif
240 ifeq ($(MSLU),1)
241 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
242 endif
243
244
245 all: $(OBJS)
246 $(OBJS):
247 -if not exist $(OBJS) mkdir $(OBJS)
248
249 ### Targets: ###
250
251 all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
252
253 clean:
254 -if exist $(OBJS)\*.o del $(OBJS)\*.o
255 -if exist $(OBJS)\*.d del $(OBJS)\*.d
256 -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
257 -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
258 -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
259
260 ifeq ($(SHARED),1)
261 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS) $(OBJS)\deprecateddll_version_rc.o
262 $(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)
263 endif
264
265 ifeq ($(SHARED),0)
266 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
267 if exist $@ del $@
268 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
269 ranlib $@
270 endif
271
272 $(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
273 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
274
275 $(OBJS)\deprecateddll_version_rc.o: ../../src/deprecated/../../../src/msw/version.rc
276 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) $(__MSLU_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)
277
278 $(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
279 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
280
281 $(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
282 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
283
284 $(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
285 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
286
287 $(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
288 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
289
290 $(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
291 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
292
293 $(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
294 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
295
296 $(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
297 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $(CPPDEPS) $<
298
299 $(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
300 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $(CPPDEPS) $<
301
302 $(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
303 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
304
305 $(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
306 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
307
308 $(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
309 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
310
311 $(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
312 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
313
314 $(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
315 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
316
317 $(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
318 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
319
320 $(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
321 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
322
323 $(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
324 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $(CPPDEPS) $<
325
326 $(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
327 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $(CPPDEPS) $<
328
329 .PHONY: all clean
330
331
332 # Dependencies tracking:
333 -include $(OBJS)/*.d