]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/deprecated/makefile.gcc
cleanup: define events correctly, define type-safe event macros, reformatted
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
8c9f8f91 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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)
15e8daec
VS
37DEPRECATEDDLL_OBJECTS = \
38 $(OBJS)\deprecateddll_dummy.o \
8c9f8f91 39 $(OBJS)\deprecateddll_version_rc.o \
15e8daec
VS
40 $(OBJS)\deprecateddll_prop.o \
41 $(OBJS)\deprecateddll_propform.o \
42 $(OBJS)\deprecateddll_proplist.o \
43 $(OBJS)\deprecateddll_resource.o \
8a82c9ec 44 $(OBJS)\deprecateddll_tbarsmpl.o \
15e8daec
VS
45 $(OBJS)\deprecateddll_treelay.o \
46 $(OBJS)\deprecateddll_wxexpr.o \
47 $(OBJS)\deprecateddll_dosyacc.o
8c9f8f91
JS
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)
15e8daec
VS
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 \
8a82c9ec 68 $(OBJS)\deprecatedlib_tbarsmpl.o \
15e8daec
VS
69 $(OBJS)\deprecatedlib_treelay.o \
70 $(OBJS)\deprecatedlib_wxexpr.o \
71 $(OBJS)\deprecatedlib_dosyacc.o
15e8daec
VS
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
15e8daec
VS
98ifeq ($(UNICODE),1)
99WXUNICODEFLAG = u
100endif
101ifeq ($(WXUNIV),1)
102WXUNIVNAME = univ
103endif
b17c1746
DE
104ifeq ($(SHARED),1)
105WXDLLFLAG = dll
106endif
b14abf14
JS
107ifeq ($(SHARED),0)
108LIBTYPE_SUFFIX = lib
109endif
110ifeq ($(SHARED),1)
111LIBTYPE_SUFFIX = dll
112endif
dd65d8c8
RN
113ifeq ($(MONOLITHIC),0)
114EXTRALIBS_FOR_BASE =
115endif
116ifeq ($(MONOLITHIC),1)
117EXTRALIBS_FOR_BASE =
118endif
b17c1746
DE
119ifeq ($(SHARED),1)
120__deprecateddll___depname = \
c33fae85 121 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll
b17c1746 122endif
8c9f8f91
JS
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
b17c1746
DE
146ifeq ($(MONOLITHIC),1)
147__WXLIB_MONO_p = \
c33fae85 148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
149endif
150ifeq ($(USE_GUI),1)
9c2d002b 151__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
152endif
153ifeq ($(USE_GUI),1)
9c2d002b 154__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
155endif
156ifeq ($(USE_GUI),1)
9c2d002b 157__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
158endif
159ifeq ($(MSLU),1)
160__UNICOWS_LIB_p = -lunicows
161endif
162ifeq ($(MONOLITHIC),0)
163__WXLIB_CORE_p = \
c33fae85 164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
165endif
166ifeq ($(MONOLITHIC),0)
c33fae85
RN
167__WXLIB_BASE_p = \
168 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
169endif
170ifeq ($(SHARED),0)
171__deprecatedlib___depname = \
c33fae85 172 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
b17c1746 173endif
15e8daec
VS
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)
b17c1746 191__OPTIMIZEFLAG = -O0
15e8daec 192endif
b17c1746
DE
193ifeq ($(BUILD),release)
194__OPTIMIZEFLAG = -O2
15e8daec 195endif
8c9f8f91
JS
196ifeq ($(USE_THREADS),0)
197__THREADSFLAG =
a4ad36cd 198endif
8c9f8f91
JS
199ifeq ($(USE_THREADS),1)
200__THREADSFLAG = -mthreads
201endif
202ifeq ($(USE_RTTI),0)
203__RTTIFLAG = -fno-rtti
204endif
205ifeq ($(USE_RTTI),1)
206__RTTIFLAG =
a4ad36cd
VS
207endif
208ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 209__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
210endif
211ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 212__EXCEPTIONSFLAG =
a4ad36cd 213endif
b17c1746
DE
214ifeq ($(WXUNIV),1)
215__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec
VS
216endif
217ifeq ($(BUILD),debug)
b17c1746
DE
218ifeq ($(DEBUG_FLAG),default)
219__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 220endif
b17c1746
DE
221endif
222ifeq ($(DEBUG_FLAG),1)
223__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 224endif
8c9f8f91
JS
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
15e8daec 234ifeq ($(UNICODE),1)
ec08d395 235__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 236endif
15e8daec
VS
237
238
239all: $(OBJS)
240$(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
245all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
246
b17c1746
DE
247clean:
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
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
b17c1746
DE
252
253ifeq ($(SHARED),1)
8c9f8f91
JS
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)
b17c1746
DE
256endif
257
258ifeq ($(SHARED),0)
c33fae85 259$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
b17c1746
DE
260 if exist $@ del $@
261 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
262 ranlib $@
263endif
15e8daec 264
1c3a6972 265$(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
15e8daec
VS
266 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
267
8c9f8f91
JS
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
1c3a6972 271$(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
15e8daec
VS
272 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
273
1c3a6972 274$(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
15e8daec
VS
275 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
276
1c3a6972 277$(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
15e8daec
VS
278 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
279
1c3a6972 280$(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
15e8daec
VS
281 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
282
1c3a6972 283$(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
8a82c9ec
JS
284 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
285
1c3a6972 286$(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
15e8daec
VS
287 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
288
1c3a6972 289$(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
15e8daec
VS
290 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
291
b17c1746
DE
292$(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
293 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $<
15e8daec 294
1c3a6972 295$(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
15e8daec
VS
296 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
297
1c3a6972 298$(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
15e8daec
VS
299 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
300
1c3a6972 301$(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
15e8daec
VS
302 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
303
1c3a6972 304$(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
15e8daec
VS
305 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
306
1c3a6972 307$(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
15e8daec
VS
308 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
309
1c3a6972 310$(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
8a82c9ec
JS
311 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
312
1c3a6972 313$(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
15e8daec
VS
314 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
315
1c3a6972 316$(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
15e8daec
VS
317 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
318
b17c1746
DE
319$(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
320 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $<
15e8daec
VS
321
322.PHONY: all clean
b14abf14 323
8c9f8f91 324