]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/deprecated/makefile.gcc
wxString and wxChar* access for file functions. Source cleaning.
[wxWidgets.git] / contrib / build / deprecated / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (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)3
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21DEPRECATEDDLL_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
24 -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \
25 -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS)
26DEPRECATEDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
27 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
28 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
29 -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include -DWXUSINGDLL \
30 -DWXMAKINGDLL_DEPRECATED -I..\..\src\deprecated $(__EXCEPTIONSFLAG) \
31 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
32DEPRECATEDDLL_OBJECTS = \
33 $(OBJS)\deprecateddll_dummy.o \
34 $(OBJS)\deprecateddll_prop.o \
35 $(OBJS)\deprecateddll_propform.o \
36 $(OBJS)\deprecateddll_proplist.o \
37 $(OBJS)\deprecateddll_resource.o \
38 $(OBJS)\deprecateddll_tbarsmpl.o \
39 $(OBJS)\deprecateddll_treelay.o \
40 $(OBJS)\deprecateddll_wxexpr.o \
41 $(OBJS)\deprecateddll_dosyacc.o
42DEPRECATEDLIB_CFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
43 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
45 -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \
46 -I..\..\src\deprecated $(CPPFLAGS) $(CFLAGS)
47DEPRECATEDLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
48 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
49 $(__UNICODE_DEFINE_p) -I..\..\src\deprecated\..\..\..\include \
50 -I$(SETUPHDIR) -Wall -I..\..\src\deprecated\..\..\include \
51 -I..\..\src\deprecated $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
52 $(CPPFLAGS) $(CXXFLAGS)
53DEPRECATEDLIB_OBJECTS = \
54 $(OBJS)\deprecatedlib_dummy.o \
55 $(OBJS)\deprecatedlib_prop.o \
56 $(OBJS)\deprecatedlib_propform.o \
57 $(OBJS)\deprecatedlib_proplist.o \
58 $(OBJS)\deprecatedlib_resource.o \
59 $(OBJS)\deprecatedlib_tbarsmpl.o \
60 $(OBJS)\deprecatedlib_treelay.o \
61 $(OBJS)\deprecatedlib_wxexpr.o \
62 $(OBJS)\deprecatedlib_dosyacc.o
63
64### Conditionally set variables: ###
65
66ifeq ($(GCC_VERSION),2.95)
67GCCFLAGS = -fvtable-thunks
68endif
69ifeq ($(USE_GUI),0)
70PORTNAME = base
71endif
72ifeq ($(USE_GUI),1)
73PORTNAME = msw
74endif
75ifeq ($(OFFICIAL_BUILD),0)
76VENDORTAG = _$(VENDOR)
77endif
78ifeq ($(OFFICIAL_BUILD),1)
79VENDORTAG =
80endif
81ifeq ($(BUILD),debug)
82ifeq ($(DEBUG_FLAG),default)
83WXDEBUGFLAG = d
84endif
85endif
86ifeq ($(DEBUG_FLAG),1)
87WXDEBUGFLAG = d
88endif
89ifeq ($(UNICODE),1)
90WXUNICODEFLAG = u
91endif
92ifeq ($(WXUNIV),1)
93WXUNIVNAME = univ
94endif
95ifeq ($(SHARED),1)
96WXDLLFLAG = dll
97endif
98ifeq ($(MONOLITHIC),0)
99EXTRALIBS_FOR_BASE =
100endif
101ifeq ($(MONOLITHIC),1)
102EXTRALIBS_FOR_BASE =
103endif
104ifeq ($(SHARED),1)
105__deprecateddll___depname = \
106 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll
107endif
108ifeq ($(MONOLITHIC),1)
109__WXLIB_MONO_p = \
110 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
111endif
112ifeq ($(USE_GUI),1)
113__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
114endif
115ifeq ($(USE_GUI),1)
116__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
117endif
118ifeq ($(USE_GUI),1)
119__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
120endif
121ifeq ($(MSLU),1)
122__UNICOWS_LIB_p = -lunicows
123endif
124ifeq ($(MONOLITHIC),0)
125__WXLIB_CORE_p = \
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
127endif
128ifeq ($(MONOLITHIC),0)
129__WXLIB_BASE_p = \
130 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131endif
132ifeq ($(SHARED),0)
133__deprecatedlib___depname = \
134 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a
135endif
136ifeq ($(BUILD),debug)
137ifeq ($(DEBUG_INFO),default)
138__DEBUGINFO = -g
139endif
140endif
141ifeq ($(BUILD),release)
142ifeq ($(DEBUG_INFO),default)
143__DEBUGINFO =
144endif
145endif
146ifeq ($(DEBUG_INFO),0)
147__DEBUGINFO =
148endif
149ifeq ($(DEBUG_INFO),1)
150__DEBUGINFO = -g
151endif
152ifeq ($(BUILD),debug)
153__OPTIMIZEFLAG = -O0
154endif
155ifeq ($(BUILD),release)
156__OPTIMIZEFLAG = -O2
157endif
158ifeq ($(USE_EXCEPTIONS),0)
159__EXCEPTIONSFLAG = -fno-rtti
160endif
161ifeq ($(USE_EXCEPTIONS),1)
162__EXCEPTIONSFLAG =
163endif
164ifeq ($(USE_EXCEPTIONS),0)
165__EXCEPTIONSFLAG_0 = -fno-exceptions
166endif
167ifeq ($(USE_EXCEPTIONS),1)
168__EXCEPTIONSFLAG_0 =
169endif
170ifeq ($(WXUNIV),1)
171__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
172endif
173ifeq ($(BUILD),debug)
174ifeq ($(DEBUG_FLAG),default)
175__DEBUG_DEFINE_p = -D__WXDEBUG__
176endif
177endif
178ifeq ($(DEBUG_FLAG),1)
179__DEBUG_DEFINE_p = -D__WXDEBUG__
180endif
181ifeq ($(UNICODE),1)
182__UNICODE_DEFINE_p = -D_UNICODE
183endif
184ifeq ($(SHARED),0)
185LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_lib$(CFG)
186endif
187ifeq ($(SHARED),1)
188LIBDIRNAME = ..\..\src\deprecated\..\..\..\lib\gcc_dll$(CFG)
189endif
190
191
192all: $(OBJS)
193$(OBJS):
194 -if not exist $(OBJS) mkdir $(OBJS)
195
196### Targets: ###
197
198all: $(__deprecateddll___depname) $(__deprecatedlib___depname)
199
200clean:
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -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
203 -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
204 -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
205
206ifeq ($(SHARED),1)
207$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated_gcc$(VENDORTAG).dll: $(DEPRECATEDDLL_OBJECTS)
208 $(CXX) -shared -o $@ $(DEPRECATEDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
209endif
210
211ifeq ($(SHARED),0)
212$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.a: $(DEPRECATEDLIB_OBJECTS)
213 if exist $@ del $@
214 ar rcu $@ $(DEPRECATEDLIB_OBJECTS)
215 ranlib $@
216endif
217
218$(OBJS)\deprecateddll_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
219 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
220
221$(OBJS)\deprecateddll_prop.o: ../../src/deprecated/prop.cpp
222 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
223
224$(OBJS)\deprecateddll_propform.o: ../../src/deprecated/propform.cpp
225 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
226
227$(OBJS)\deprecateddll_proplist.o: ../../src/deprecated/proplist.cpp
228 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
229
230$(OBJS)\deprecateddll_resource.o: ../../src/deprecated/resource.cpp
231 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
232
233$(OBJS)\deprecateddll_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
234 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
235
236$(OBJS)\deprecateddll_treelay.o: ../../src/deprecated/treelay.cpp
237 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
238
239$(OBJS)\deprecateddll_wxexpr.o: ../../src/deprecated/wxexpr.cpp
240 $(CXX) -c -o $@ $(DEPRECATEDDLL_CXXFLAGS) $<
241
242$(OBJS)\deprecateddll_dosyacc.o: ../../src/deprecated/dosyacc.c
243 $(CC) -c -o $@ $(DEPRECATEDDLL_CFLAGS) $<
244
245$(OBJS)\deprecatedlib_dummy.o: ../../src/deprecated/../../../src/msw/dummy.cpp
246 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
247
248$(OBJS)\deprecatedlib_prop.o: ../../src/deprecated/prop.cpp
249 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
250
251$(OBJS)\deprecatedlib_propform.o: ../../src/deprecated/propform.cpp
252 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
253
254$(OBJS)\deprecatedlib_proplist.o: ../../src/deprecated/proplist.cpp
255 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
256
257$(OBJS)\deprecatedlib_resource.o: ../../src/deprecated/resource.cpp
258 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
259
260$(OBJS)\deprecatedlib_tbarsmpl.o: ../../src/deprecated/tbarsmpl.cpp
261 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
262
263$(OBJS)\deprecatedlib_treelay.o: ../../src/deprecated/treelay.cpp
264 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
265
266$(OBJS)\deprecatedlib_wxexpr.o: ../../src/deprecated/wxexpr.cpp
267 $(CXX) -c -o $@ $(DEPRECATEDLIB_CXXFLAGS) $<
268
269$(OBJS)\deprecatedlib_dosyacc.o: ../../src/deprecated/dosyacc.c
270 $(CC) -c -o $@ $(DEPRECATEDLIB_CFLAGS) $<
271
272.PHONY: all clean