1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I..\..\src\svg\..\..\..\include -W -Wall \
28 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(__RTTIFLAG) \
29 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\svgdll_dummy.o \
32 $(OBJS)\svgdll_version_rc.o \
33 $(OBJS)\svgdll_dcsvg.o
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) \
37 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
38 -I$(SETUPHDIR) -I..\..\src\svg\..\..\..\include -W -Wall \
39 -I..\..\src\svg\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
40 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\svglib_dummy.o \
43 $(OBJS)\svglib_dcsvg.o
45 ### Conditionally set variables: ###
47 ifeq ($(GCC_VERSION),2.95)
48 GCCFLAGS = -fvtable-thunks
56 ifeq ($(OFFICIAL_BUILD),0)
57 VENDORTAG = _$(VENDOR)
59 ifeq ($(OFFICIAL_BUILD),1)
63 ifeq ($(DEBUG_FLAG),default)
67 ifeq ($(DEBUG_FLAG),1)
85 ifeq ($(MONOLITHIC),0)
88 ifeq ($(MONOLITHIC),1)
92 __svgdll___depname = \
93 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
96 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
110 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
112 ifeq ($(USE_THREADS),0)
113 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
116 __UNICODE_DEFINE_p_1 = --define _UNICODE
119 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
121 ifeq ($(USE_GDIPLUS),1)
122 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
124 ifeq ($(MONOLITHIC),1)
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
132 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
135 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
138 __UNICOWS_LIB_p = -lunicows
140 ifeq ($(USE_GDIPLUS),1)
141 __GDIPLUS_LIB_p = -lgdiplus
143 ifeq ($(MONOLITHIC),0)
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
147 ifeq ($(MONOLITHIC),0)
149 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
152 __svglib___depname = \
153 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
155 ifeq ($(BUILD),debug)
156 ifeq ($(DEBUG_INFO),default)
160 ifeq ($(BUILD),release)
161 ifeq ($(DEBUG_INFO),default)
165 ifeq ($(DEBUG_INFO),0)
168 ifeq ($(DEBUG_INFO),1)
171 ifeq ($(BUILD),debug)
174 ifeq ($(BUILD),release)
177 ifeq ($(USE_THREADS),0)
180 ifeq ($(USE_THREADS),1)
181 __THREADSFLAG = -mthreads
184 __RTTIFLAG = -fno-rtti
189 ifeq ($(USE_EXCEPTIONS),0)
190 __EXCEPTIONSFLAG = -fno-exceptions
192 ifeq ($(USE_EXCEPTIONS),1)
196 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
198 ifeq ($(BUILD),debug)
199 ifeq ($(DEBUG_FLAG),default)
200 __DEBUG_DEFINE_p = -D__WXDEBUG__
203 ifeq ($(DEBUG_FLAG),1)
204 __DEBUG_DEFINE_p = -D__WXDEBUG__
206 ifeq ($(USE_EXCEPTIONS),0)
207 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
210 __RTTI_DEFINE_p = -DwxNO_RTTI
212 ifeq ($(USE_THREADS),0)
213 __THREAD_DEFINE_p = -DwxNO_THREADS
216 __UNICODE_DEFINE_p = -D_UNICODE
219 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
221 ifeq ($(USE_GDIPLUS),1)
222 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
228 -if not exist $(OBJS) mkdir $(OBJS)
232 all: $(__svgdll___depname) $(__svglib___depname)
235 -if exist $(OBJS)\*.o del $(OBJS)\*.o
236 -if exist $(OBJS)\*.d del $(OBJS)\*.d
237 -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
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
239 -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
242 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
243 $(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)
247 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
249 ar rcu $@ $(SVGLIB_OBJECTS)
253 $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/common/dummy.cpp
254 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
256 $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
257 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG)
259 $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
260 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
262 $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/common/dummy.cpp
263 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
266 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
271 # Dependencies tracking: