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