]>
Commit | Line | Data |
---|---|---|
0ca4ab85 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
0d90d6ea | 3 | # Bakefile 0.1.9 (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) \ | |
2113bc77 MW |
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) | |
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) \ | |
2113bc77 MW |
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) | |
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 = \ | |
4cbcfb73 | 92 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_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 | |
b17c1746 DE |
120 | ifeq ($(MONOLITHIC),1) |
121 | __WXLIB_MONO_p = \ | |
c33fae85 | 122 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
123 | endif |
124 | ifeq ($(USE_GUI),1) | |
9c2d002b | 125 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
126 | endif |
127 | ifeq ($(USE_GUI),1) | |
9c2d002b | 128 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
129 | endif |
130 | ifeq ($(USE_GUI),1) | |
9c2d002b | 131 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
132 | endif |
133 | ifeq ($(MSLU),1) | |
134 | __UNICOWS_LIB_p = -lunicows | |
135 | endif | |
136 | ifeq ($(MONOLITHIC),0) | |
137 | __WXLIB_CORE_p = \ | |
c33fae85 | 138 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
139 | endif |
140 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
141 | __WXLIB_BASE_p = \ |
142 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
143 | endif |
144 | ifeq ($(SHARED),0) | |
145 | __svglib___depname = \ | |
c33fae85 | 146 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a |
b17c1746 | 147 | endif |
0ca4ab85 | 148 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
149 | ifeq ($(DEBUG_INFO),default) |
150 | __DEBUGINFO = -g | |
151 | endif | |
0ca4ab85 VS |
152 | endif |
153 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
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 | |
0ca4ab85 VS |
163 | endif |
164 | ifeq ($(BUILD),debug) | |
b17c1746 | 165 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 166 | endif |
b17c1746 DE |
167 | ifeq ($(BUILD),release) |
168 | __OPTIMIZEFLAG = -O2 | |
0ca4ab85 | 169 | endif |
8c9f8f91 JS |
170 | ifeq ($(USE_THREADS),0) |
171 | __THREADSFLAG = | |
a4ad36cd | 172 | endif |
8c9f8f91 JS |
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 = | |
a4ad36cd VS |
181 | endif |
182 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 183 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
184 | endif |
185 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 186 | __EXCEPTIONSFLAG = |
a4ad36cd | 187 | endif |
b17c1746 DE |
188 | ifeq ($(WXUNIV),1) |
189 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
0ca4ab85 VS |
190 | endif |
191 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
192 | ifeq ($(DEBUG_FLAG),default) |
193 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 194 | endif |
b17c1746 DE |
195 | endif |
196 | ifeq ($(DEBUG_FLAG),1) | |
197 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
0ca4ab85 | 198 | endif |
8c9f8f91 JS |
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 | |
0ca4ab85 | 208 | ifeq ($(UNICODE),1) |
ec08d395 | 209 | __UNICODE_DEFINE_p = -D_UNICODE |
0ca4ab85 | 210 | endif |
2113bc77 MW |
211 | ifeq ($(MSLU),1) |
212 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
213 | endif | |
0ca4ab85 VS |
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 | ||
0ca4ab85 VS |
224 | clean: |
225 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 226 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
4cbcfb73 | 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 |
c33fae85 RN |
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 | |
0ca4ab85 VS |
230 | |
231 | ifeq ($(SHARED),1) | |
4cbcfb73 | 232 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o |
8c9f8f91 | 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) |
0ca4ab85 VS |
234 | endif |
235 | ||
236 | ifeq ($(SHARED),0) | |
c33fae85 | 237 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS) |
0ca4ab85 VS |
238 | if exist $@ del $@ |
239 | ar rcu $@ $(SVGLIB_OBJECTS) | |
240 | ranlib $@ | |
241 | endif | |
242 | ||
b17c1746 | 243 | $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp |
0d90d6ea | 244 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 245 | |
102d46f3 | 246 | $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc |
4cbcfb73 | 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) |
8c9f8f91 | 248 | |
b17c1746 | 249 | $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp |
0d90d6ea | 250 | $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
251 | |
252 | $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp | |
0d90d6ea | 253 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
254 | |
255 | $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp | |
0d90d6ea | 256 | $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 | 257 | |
0ca4ab85 | 258 | .PHONY: all clean |
b14abf14 | 259 | |
8c9f8f91 | 260 | |
0d90d6ea JS |
261 | # Dependencies tracking: |
262 | -include $(OBJS)/*.d |