]>
Commit | Line | Data |
---|---|---|
0ca4ab85 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (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 | ||
4818141b | 15 | WX_RELEASE_NODOT = 26 |
0ca4ab85 VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) | |
0ca4ab85 VS |
28 | SVGDLL_OBJECTS = \ |
29 | $(OBJS)\svgdll_dummy.o \ | |
8c9f8f91 | 30 | $(OBJS)\svgdll_version_rc.o \ |
0ca4ab85 | 31 | $(OBJS)\svgdll_dcsvg.o |
8c9f8f91 JS |
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) \ | |
b14abf14 | 37 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
0ca4ab85 VS |
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) | |
3f55f5b8 VS |
60 | ifeq ($(DEBUG_FLAG),default) |
61 | WXDEBUGFLAG = d | |
62 | endif | |
63 | endif | |
64 | ifeq ($(DEBUG_FLAG),1) | |
0ca4ab85 VS |
65 | WXDEBUGFLAG = d |
66 | endif | |
0ca4ab85 VS |
67 | ifeq ($(UNICODE),1) |
68 | WXUNICODEFLAG = u | |
69 | endif | |
70 | ifeq ($(WXUNIV),1) | |
71 | WXUNIVNAME = univ | |
72 | endif | |
b17c1746 DE |
73 | ifeq ($(SHARED),1) |
74 | WXDLLFLAG = dll | |
75 | endif | |
b14abf14 JS |
76 | ifeq ($(SHARED),0) |
77 | LIBTYPE_SUFFIX = lib | |
78 | endif | |
79 | ifeq ($(SHARED),1) | |
80 | LIBTYPE_SUFFIX = dll | |
81 | endif | |
dd65d8c8 RN |
82 | ifeq ($(MONOLITHIC),0) |
83 | EXTRALIBS_FOR_BASE = | |
84 | endif | |
85 | ifeq ($(MONOLITHIC),1) | |
86 | EXTRALIBS_FOR_BASE = | |
87 | endif | |
b17c1746 DE |
88 | ifeq ($(SHARED),1) |
89 | __svgdll___depname = \ | |
4818141b | 90 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll |
b17c1746 | 91 | endif |
8c9f8f91 JS |
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 | |
b17c1746 DE |
115 | ifeq ($(MONOLITHIC),1) |
116 | __WXLIB_MONO_p = \ | |
c33fae85 | 117 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
118 | endif |
119 | ifeq ($(USE_GUI),1) | |
9c2d002b | 120 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
121 | endif |
122 | ifeq ($(USE_GUI),1) | |
9c2d002b | 123 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
124 | endif |
125 | ifeq ($(USE_GUI),1) | |
9c2d002b | 126 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
127 | endif |
128 | ifeq ($(MSLU),1) | |
129 | __UNICOWS_LIB_p = -lunicows | |
130 | endif | |
131 | ifeq ($(MONOLITHIC),0) | |
132 | __WXLIB_CORE_p = \ | |
c33fae85 | 133 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
134 | endif |
135 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
136 | __WXLIB_BASE_p = \ |
137 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
138 | endif |
139 | ifeq ($(SHARED),0) | |
140 | __svglib___depname = \ | |
c33fae85 | 141 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a |
b17c1746 | 142 | endif |
0ca4ab85 | 143 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
144 | ifeq ($(DEBUG_INFO),default) |
145 | __DEBUGINFO = -g | |
146 | endif | |
0ca4ab85 VS |
147 | endif |
148 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
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 | |
0ca4ab85 VS |
158 | endif |
159 | ifeq ($(BUILD),debug) | |
b17c1746 | 160 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 161 | endif |
b17c1746 DE |
162 | ifeq ($(BUILD),release) |
163 | __OPTIMIZEFLAG = -O2 | |
0ca4ab85 | 164 | endif |
8c9f8f91 JS |
165 | ifeq ($(USE_THREADS),0) |
166 | __THREADSFLAG = | |
a4ad36cd | 167 | endif |
8c9f8f91 JS |
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 = | |
a4ad36cd VS |
176 | endif |
177 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 178 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
179 | endif |
180 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 181 | __EXCEPTIONSFLAG = |
a4ad36cd | 182 | endif |
b17c1746 DE |
183 | ifeq ($(WXUNIV),1) |
184 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
0ca4ab85 VS |
185 | endif |
186 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
187 | ifeq ($(DEBUG_FLAG),default) |
188 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 189 | endif |
b17c1746 DE |
190 | endif |
191 | ifeq ($(DEBUG_FLAG),1) | |
192 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 193 | endif |
8c9f8f91 JS |
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 | |
0ca4ab85 | 203 | ifeq ($(UNICODE),1) |
ec08d395 | 204 | __UNICODE_DEFINE_p = -D_UNICODE |
0ca4ab85 | 205 | endif |
0ca4ab85 VS |
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 | ||
0ca4ab85 VS |
216 | clean: |
217 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
4818141b | 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 |
c33fae85 RN |
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 | |
0ca4ab85 VS |
221 | |
222 | ifeq ($(SHARED),1) | |
4818141b | 223 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o |
8c9f8f91 | 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) |
0ca4ab85 VS |
225 | endif |
226 | ||
227 | ifeq ($(SHARED),0) | |
c33fae85 | 228 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS) |
0ca4ab85 VS |
229 | if exist $@ del $@ |
230 | ar rcu $@ $(SVGLIB_OBJECTS) | |
231 | ranlib $@ | |
232 | endif | |
233 | ||
b17c1746 DE |
234 | $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp |
235 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $< | |
236 | ||
102d46f3 | 237 | $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc |
4818141b | 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) |
8c9f8f91 | 239 | |
b17c1746 DE |
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 | ||
0ca4ab85 | 249 | .PHONY: all clean |
b14abf14 | 250 | |
8c9f8f91 | 251 |