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