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