]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/deprecated/makefile.gcc
cleanup: define events correctly, define type-safe event macros, reformatted
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
... / ...
CommitLineData
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
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15WX_RELEASE_NODOT = 25
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22DEPRECATEDDLL_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)
29DEPRECATEDDLL_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)
37DEPRECATEDDLL_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
48DEPRECATEDLIB_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)
55DEPRECATEDLIB_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)
62DEPRECATEDLIB_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
75ifeq ($(GCC_VERSION),2.95)
76GCCFLAGS = -fvtable-thunks
77endif
78ifeq ($(USE_GUI),0)
79PORTNAME = base
80endif
81ifeq ($(USE_GUI),1)
82PORTNAME = msw
83endif
84ifeq ($(OFFICIAL_BUILD),0)
85VENDORTAG = _$(VENDOR)
86endif
87ifeq ($(OFFICIAL_BUILD),1)
88VENDORTAG =
89endif
90ifeq ($(BUILD),debug)
91ifeq ($(DEBUG_FLAG),default)
92WXDEBUGFLAG = d
93endif
94endif
95ifeq ($(DEBUG_FLAG),1)
96WXDEBUGFLAG = d
97endif
98ifeq ($(UNICODE),1)
99WXUNICODEFLAG = u
100endif
101ifeq ($(WXUNIV),1)
102WXUNIVNAME = univ
103endif
104ifeq ($(SHARED),1)
105WXDLLFLAG = dll
106endif
107ifeq ($(SHARED),0)
108LIBTYPE_SUFFIX = lib
109endif
110ifeq ($(SHARED),1)
111LIBTYPE_SUFFIX = dll
112endif
113ifeq ($(MONOLITHIC),0)
114EXTRALIBS_FOR_BASE =
115endif
116ifeq ($(MONOLITHIC),1)
117EXTRALIBS_FOR_BASE =
118endif
119ifeq ($(SHARED),1)
120__deprecateddll___depname = \
121 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll
122endif
123ifeq ($(WXUNIV),1)
124__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
125endif
126ifeq ($(BUILD),debug)
127ifeq ($(DEBUG_FLAG),default)
128__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129endif
130endif
131ifeq ($(DEBUG_FLAG),1)
132__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
133endif
134ifeq ($(USE_EXCEPTIONS),0)
135__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
136endif
137ifeq ($(USE_RTTI),0)
138__RTTI_DEFINE_p_1 = --define wxNO_RTTI
139endif
140ifeq ($(USE_THREADS),0)
141__THREAD_DEFINE_p_1 = --define wxNO_THREADS
142endif
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p_1 = --define _UNICODE
145endif
146ifeq ($(MONOLITHIC),1)
147__WXLIB_MONO_p = \
148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
149endif
150ifeq ($(USE_GUI),1)
151__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
152endif
153ifeq ($(USE_GUI),1)
154__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
155endif
156ifeq ($(USE_GUI),1)
157__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
158endif
159ifeq ($(MSLU),1)
160__UNICOWS_LIB_p = -lunicows
161endif
162ifeq ($(MONOLITHIC),0)
163__WXLIB_CORE_p = \
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
165endif
166ifeq ($(MONOLITHIC),0)
167__WXLIB_BASE_p = \
168 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169endif
170ifeq ($(SHARED),0)
171__deprecatedlib___depname = \
172 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
173endif
174ifeq ($(BUILD),debug)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO = -g
177endif
178endif
179ifeq ($(BUILD),release)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO =
182endif
183endif
184ifeq ($(DEBUG_INFO),0)
185__DEBUGINFO =
186endif
187ifeq ($(DEBUG_INFO),1)
188__DEBUGINFO = -g
189endif
190ifeq ($(BUILD),debug)
191__OPTIMIZEFLAG = -O0
192endif
193ifeq ($(BUILD),release)
194__OPTIMIZEFLAG = -O2
195endif
196ifeq ($(USE_THREADS),0)
197__THREADSFLAG =
198endif
199ifeq ($(USE_THREADS),1)
200__THREADSFLAG = -mthreads
201endif
202ifeq ($(USE_RTTI),0)
203__RTTIFLAG = -fno-rtti
204endif
205ifeq ($(USE_RTTI),1)
206__RTTIFLAG =
207endif
208ifeq ($(USE_EXCEPTIONS),0)
209__EXCEPTIONSFLAG = -fno-exceptions
210endif
211ifeq ($(USE_EXCEPTIONS),1)
212__EXCEPTIONSFLAG =
213endif
214ifeq ($(WXUNIV),1)
215__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
216endif
217ifeq ($(BUILD),debug)
218ifeq ($(DEBUG_FLAG),default)
219__DEBUG_DEFINE_p = -D__WXDEBUG__
220endif
221endif
222ifeq ($(DEBUG_FLAG),1)
223__DEBUG_DEFINE_p = -D__WXDEBUG__
224endif
225ifeq ($(USE_EXCEPTIONS),0)
226__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
227endif
228ifeq ($(USE_RTTI),0)
229__RTTI_DEFINE_p = -DwxNO_RTTI
230endif
231ifeq ($(USE_THREADS),0)
232__THREAD_DEFINE_p = -DwxNO_THREADS
233endif
234ifeq ($(UNICODE),1)
235__UNICODE_DEFINE_p = -D_UNICODE
236endif
237
238
239all: $(OBJS)
240$(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
245all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
246
247clean:
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
253ifeq ($(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)
256endif
257
258ifeq ($(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 $@
263endif
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