]>
Commit | Line | Data |
---|---|---|
0ca4ab85 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
25bb1412 | 3 | # Bakefile 0.2.1 (http://bakefile.sourceforge.net) |
0ca4ab85 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
0ca4ab85 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
25bb1412 | 16 | WX_RELEASE_NODOT = 28 |
0ca4ab85 VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | SVGDLL_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) \ | |
3abcf424 RD |
25 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \ |
26 | -I$(SETUPHDIR) -I..\..\src\svg\..\..\..\include -W -Wall \ | |
27 | -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(__RTTIFLAG) \ | |
28 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
0ca4ab85 VS |
29 | SVGDLL_OBJECTS = \ |
30 | $(OBJS)\svgdll_dummy.o \ | |
8c9f8f91 | 31 | $(OBJS)\svgdll_version_rc.o \ |
0ca4ab85 | 32 | $(OBJS)\svgdll_dcsvg.o |
8c9f8f91 JS |
33 | SVGLIB_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) \ | |
3abcf424 RD |
36 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \ |
37 | -I$(SETUPHDIR) -I..\..\src\svg\..\..\..\include -W -Wall \ | |
38 | -I..\..\src\svg\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
39 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
0ca4ab85 VS |
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) | |
3f55f5b8 VS |
62 | ifeq ($(DEBUG_FLAG),default) |
63 | WXDEBUGFLAG = d | |
64 | endif | |
65 | endif | |
66 | ifeq ($(DEBUG_FLAG),1) | |
0ca4ab85 VS |
67 | WXDEBUGFLAG = d |
68 | endif | |
0ca4ab85 VS |
69 | ifeq ($(UNICODE),1) |
70 | WXUNICODEFLAG = u | |
71 | endif | |
72 | ifeq ($(WXUNIV),1) | |
73 | WXUNIVNAME = univ | |
74 | endif | |
b17c1746 DE |
75 | ifeq ($(SHARED),1) |
76 | WXDLLFLAG = dll | |
77 | endif | |
b14abf14 JS |
78 | ifeq ($(SHARED),0) |
79 | LIBTYPE_SUFFIX = lib | |
80 | endif | |
81 | ifeq ($(SHARED),1) | |
82 | LIBTYPE_SUFFIX = dll | |
83 | endif | |
dd65d8c8 RN |
84 | ifeq ($(MONOLITHIC),0) |
85 | EXTRALIBS_FOR_BASE = | |
86 | endif | |
87 | ifeq ($(MONOLITHIC),1) | |
88 | EXTRALIBS_FOR_BASE = | |
89 | endif | |
b17c1746 DE |
90 | ifeq ($(SHARED),1) |
91 | __svgdll___depname = \ | |
25bb1412 | 92 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll |
b17c1746 | 93 | endif |
8c9f8f91 JS |
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 | |
2113bc77 MW |
117 | ifeq ($(MSLU),1) |
118 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
119 | endif | |
3abcf424 RD |
120 | ifeq ($(USE_GDIPLUS),1) |
121 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
122 | endif | |
b17c1746 DE |
123 | ifeq ($(MONOLITHIC),1) |
124 | __WXLIB_MONO_p = \ | |
c33fae85 | 125 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
126 | endif |
127 | ifeq ($(USE_GUI),1) | |
9c2d002b | 128 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
129 | endif |
130 | ifeq ($(USE_GUI),1) | |
9c2d002b | 131 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
132 | endif |
133 | ifeq ($(USE_GUI),1) | |
9c2d002b | 134 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
135 | endif |
136 | ifeq ($(MSLU),1) | |
137 | __UNICOWS_LIB_p = -lunicows | |
138 | endif | |
3abcf424 RD |
139 | ifeq ($(USE_GDIPLUS),1) |
140 | __GDIPLUS_LIB_p = -lgdiplus | |
141 | endif | |
b17c1746 DE |
142 | ifeq ($(MONOLITHIC),0) |
143 | __WXLIB_CORE_p = \ | |
c33fae85 | 144 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
145 | endif |
146 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
147 | __WXLIB_BASE_p = \ |
148 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
149 | endif |
150 | ifeq ($(SHARED),0) | |
151 | __svglib___depname = \ | |
c33fae85 | 152 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a |
b17c1746 | 153 | endif |
0ca4ab85 | 154 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
155 | ifeq ($(DEBUG_INFO),default) |
156 | __DEBUGINFO = -g | |
157 | endif | |
0ca4ab85 VS |
158 | endif |
159 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
160 | ifeq ($(DEBUG_INFO),default) |
161 | __DEBUGINFO = | |
162 | endif | |
163 | endif | |
164 | ifeq ($(DEBUG_INFO),0) | |
165 | __DEBUGINFO = | |
166 | endif | |
167 | ifeq ($(DEBUG_INFO),1) | |
168 | __DEBUGINFO = -g | |
0ca4ab85 VS |
169 | endif |
170 | ifeq ($(BUILD),debug) | |
b17c1746 | 171 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 172 | endif |
b17c1746 DE |
173 | ifeq ($(BUILD),release) |
174 | __OPTIMIZEFLAG = -O2 | |
0ca4ab85 | 175 | endif |
8c9f8f91 JS |
176 | ifeq ($(USE_THREADS),0) |
177 | __THREADSFLAG = | |
a4ad36cd | 178 | endif |
8c9f8f91 JS |
179 | ifeq ($(USE_THREADS),1) |
180 | __THREADSFLAG = -mthreads | |
181 | endif | |
182 | ifeq ($(USE_RTTI),0) | |
183 | __RTTIFLAG = -fno-rtti | |
184 | endif | |
185 | ifeq ($(USE_RTTI),1) | |
186 | __RTTIFLAG = | |
a4ad36cd VS |
187 | endif |
188 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 189 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
190 | endif |
191 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 192 | __EXCEPTIONSFLAG = |
a4ad36cd | 193 | endif |
b17c1746 DE |
194 | ifeq ($(WXUNIV),1) |
195 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
0ca4ab85 VS |
196 | endif |
197 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
198 | ifeq ($(DEBUG_FLAG),default) |
199 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 200 | endif |
b17c1746 DE |
201 | endif |
202 | ifeq ($(DEBUG_FLAG),1) | |
203 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 204 | endif |
8c9f8f91 JS |
205 | ifeq ($(USE_EXCEPTIONS),0) |
206 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
207 | endif | |
208 | ifeq ($(USE_RTTI),0) | |
209 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
210 | endif | |
211 | ifeq ($(USE_THREADS),0) | |
212 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
213 | endif | |
0ca4ab85 | 214 | ifeq ($(UNICODE),1) |
ec08d395 | 215 | __UNICODE_DEFINE_p = -D_UNICODE |
0ca4ab85 | 216 | endif |
2113bc77 MW |
217 | ifeq ($(MSLU),1) |
218 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
219 | endif | |
3abcf424 RD |
220 | ifeq ($(USE_GDIPLUS),1) |
221 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
222 | endif | |
0ca4ab85 VS |
223 | |
224 | ||
225 | all: $(OBJS) | |
226 | $(OBJS): | |
227 | -if not exist $(OBJS) mkdir $(OBJS) | |
228 | ||
229 | ### Targets: ### | |
230 | ||
231 | all: $(__svgdll___depname) $(__svglib___depname) | |
232 | ||
0ca4ab85 VS |
233 | clean: |
234 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 235 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
25bb1412 | 236 | -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 |
c33fae85 RN |
237 | -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 |
238 | -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 | |
0ca4ab85 VS |
239 | |
240 | ifeq ($(SHARED),1) | |
25bb1412 | 241 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o |
3abcf424 | 242 | $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) |
0ca4ab85 VS |
243 | endif |
244 | ||
245 | ifeq ($(SHARED),0) | |
c33fae85 | 246 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS) |
0ca4ab85 VS |
247 | if exist $@ del $@ |
248 | ar rcu $@ $(SVGLIB_OBJECTS) | |
249 | ranlib $@ | |
250 | endif | |
251 | ||
66b9f7f7 | 252 | $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/common/dummy.cpp |
0d90d6ea | 253 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 254 | |
102d46f3 | 255 | $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc |
25bb1412 | 256 | 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) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/svg/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG) |
8c9f8f91 | 257 | |
b17c1746 | 258 | $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp |
0d90d6ea | 259 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 260 | |
66b9f7f7 | 261 | $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/common/dummy.cpp |
0d90d6ea | 262 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
263 | |
264 | $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp | |
0d90d6ea | 265 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 266 | |
0ca4ab85 | 267 | .PHONY: all clean |
b14abf14 | 268 | |
8c9f8f91 | 269 | |
0d90d6ea JS |
270 | # Dependencies tracking: |
271 | -include $(OBJS)/*.d |