]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/svg/makefile.gcc
Document wxTextCtrl::XYToPosition, PositionToXY and GetLineLength change
[wxWidgets.git] / contrib / build / svg / makefile.gcc
... / ...
CommitLineData
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
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 26
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22SVGDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -W \
26 -Wall -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG \
27 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
28 $(CXXFLAGS)
29SVGDLL_OBJECTS = \
30 $(OBJS)\svgdll_dummy.o \
31 $(OBJS)\svgdll_version_rc.o \
32 $(OBJS)\svgdll_dcsvg.o
33SVGLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -W \
37 -Wall -I..\..\src\svg\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
38 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
39SVGLIB_OBJECTS = \
40 $(OBJS)\svglib_dummy.o \
41 $(OBJS)\svglib_dcsvg.o
42
43### Conditionally set variables: ###
44
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(OFFICIAL_BUILD),0)
55VENDORTAG = _$(VENDOR)
56endif
57ifeq ($(OFFICIAL_BUILD),1)
58VENDORTAG =
59endif
60ifeq ($(BUILD),debug)
61ifeq ($(DEBUG_FLAG),default)
62WXDEBUGFLAG = d
63endif
64endif
65ifeq ($(DEBUG_FLAG),1)
66WXDEBUGFLAG = d
67endif
68ifeq ($(UNICODE),1)
69WXUNICODEFLAG = u
70endif
71ifeq ($(WXUNIV),1)
72WXUNIVNAME = univ
73endif
74ifeq ($(SHARED),1)
75WXDLLFLAG = dll
76endif
77ifeq ($(SHARED),0)
78LIBTYPE_SUFFIX = lib
79endif
80ifeq ($(SHARED),1)
81LIBTYPE_SUFFIX = dll
82endif
83ifeq ($(MONOLITHIC),0)
84EXTRALIBS_FOR_BASE =
85endif
86ifeq ($(MONOLITHIC),1)
87EXTRALIBS_FOR_BASE =
88endif
89ifeq ($(SHARED),1)
90__svgdll___depname = \
91 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
92endif
93ifeq ($(WXUNIV),1)
94__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
95endif
96ifeq ($(BUILD),debug)
97ifeq ($(DEBUG_FLAG),default)
98__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
99endif
100endif
101ifeq ($(DEBUG_FLAG),1)
102__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103endif
104ifeq ($(USE_EXCEPTIONS),0)
105__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
106endif
107ifeq ($(USE_RTTI),0)
108__RTTI_DEFINE_p_1 = --define wxNO_RTTI
109endif
110ifeq ($(USE_THREADS),0)
111__THREAD_DEFINE_p_1 = --define wxNO_THREADS
112endif
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p_1 = --define _UNICODE
115endif
116ifeq ($(MONOLITHIC),1)
117__WXLIB_MONO_p = \
118 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
119endif
120ifeq ($(USE_GUI),1)
121__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
122endif
123ifeq ($(USE_GUI),1)
124__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
125endif
126ifeq ($(USE_GUI),1)
127__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
128endif
129ifeq ($(MSLU),1)
130__UNICOWS_LIB_p = -lunicows
131endif
132ifeq ($(MONOLITHIC),0)
133__WXLIB_CORE_p = \
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
135endif
136ifeq ($(MONOLITHIC),0)
137__WXLIB_BASE_p = \
138 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
139endif
140ifeq ($(SHARED),0)
141__svglib___depname = \
142 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
143endif
144ifeq ($(BUILD),debug)
145ifeq ($(DEBUG_INFO),default)
146__DEBUGINFO = -g
147endif
148endif
149ifeq ($(BUILD),release)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO =
152endif
153endif
154ifeq ($(DEBUG_INFO),0)
155__DEBUGINFO =
156endif
157ifeq ($(DEBUG_INFO),1)
158__DEBUGINFO = -g
159endif
160ifeq ($(BUILD),debug)
161__OPTIMIZEFLAG = -O0
162endif
163ifeq ($(BUILD),release)
164__OPTIMIZEFLAG = -O2
165endif
166ifeq ($(USE_THREADS),0)
167__THREADSFLAG =
168endif
169ifeq ($(USE_THREADS),1)
170__THREADSFLAG = -mthreads
171endif
172ifeq ($(USE_RTTI),0)
173__RTTIFLAG = -fno-rtti
174endif
175ifeq ($(USE_RTTI),1)
176__RTTIFLAG =
177endif
178ifeq ($(USE_EXCEPTIONS),0)
179__EXCEPTIONSFLAG = -fno-exceptions
180endif
181ifeq ($(USE_EXCEPTIONS),1)
182__EXCEPTIONSFLAG =
183endif
184ifeq ($(WXUNIV),1)
185__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
186endif
187ifeq ($(BUILD),debug)
188ifeq ($(DEBUG_FLAG),default)
189__DEBUG_DEFINE_p = -D__WXDEBUG__
190endif
191endif
192ifeq ($(DEBUG_FLAG),1)
193__DEBUG_DEFINE_p = -D__WXDEBUG__
194endif
195ifeq ($(USE_EXCEPTIONS),0)
196__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
197endif
198ifeq ($(USE_RTTI),0)
199__RTTI_DEFINE_p = -DwxNO_RTTI
200endif
201ifeq ($(USE_THREADS),0)
202__THREAD_DEFINE_p = -DwxNO_THREADS
203endif
204ifeq ($(UNICODE),1)
205__UNICODE_DEFINE_p = -D_UNICODE
206endif
207
208
209all: $(OBJS)
210$(OBJS):
211 -if not exist $(OBJS) mkdir $(OBJS)
212
213### Targets: ###
214
215all: $(__svgdll___depname) $(__svglib___depname)
216
217clean:
218 -if exist $(OBJS)\*.o del $(OBJS)\*.o
219 -if exist $(OBJS)\*.d del $(OBJS)\*.d
220 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
221 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
222 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
223
224ifeq ($(SHARED),1)
225$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
226 $(CXX) -shared -fPIC -o $@ $(SVGDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.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)
227endif
228
229ifeq ($(SHARED),0)
230$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
231 if exist $@ del $@
232 ar rcu $@ $(SVGLIB_OBJECTS)
233 ranlib $@
234endif
235
236$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
237 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
238
239$(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
240 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/svg/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG)
241
242$(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
243 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
244
245$(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
246 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
247
248$(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
249 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
250
251.PHONY: all clean
252
253
254# Dependencies tracking:
255-include $(OBJS)/*.d