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