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