1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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)0
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) -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)
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) -I..\..\src\svg\..\..\..\include \
38 -I$(SETUPHDIR) -W -Wall -I..\..\src\svg\..\..\include $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\svglib_dummy.o \
42 $(OBJS)\svglib_dcsvg.o
44 ### Conditionally set variables: ###
46 ifeq ($(GCC_VERSION),2.95)
47 GCCFLAGS = -fvtable-thunks
55 ifeq ($(OFFICIAL_BUILD),0)
56 VENDORTAG = _$(VENDOR)
58 ifeq ($(OFFICIAL_BUILD),1)
62 ifeq ($(DEBUG_FLAG),default)
66 ifeq ($(DEBUG_FLAG),1)
84 ifeq ($(MONOLITHIC),0)
87 ifeq ($(MONOLITHIC),1)
91 __svgdll___depname = \
92 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
95 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 ifeq ($(USE_EXCEPTIONS),0)
106 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
109 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
111 ifeq ($(USE_THREADS),0)
112 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
115 __UNICODE_DEFINE_p_1 = --define _UNICODE
118 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
120 ifeq ($(MONOLITHIC),1)
122 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
125 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
128 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
131 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
134 __UNICOWS_LIB_p = -lunicows
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
140 ifeq ($(MONOLITHIC),0)
142 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
145 __svglib___depname = \
146 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
148 ifeq ($(BUILD),debug)
149 ifeq ($(DEBUG_INFO),default)
153 ifeq ($(BUILD),release)
154 ifeq ($(DEBUG_INFO),default)
158 ifeq ($(DEBUG_INFO),0)
161 ifeq ($(DEBUG_INFO),1)
164 ifeq ($(BUILD),debug)
167 ifeq ($(BUILD),release)
170 ifeq ($(USE_THREADS),0)
173 ifeq ($(USE_THREADS),1)
174 __THREADSFLAG = -mthreads
177 __RTTIFLAG = -fno-rtti
182 ifeq ($(USE_EXCEPTIONS),0)
183 __EXCEPTIONSFLAG = -fno-exceptions
185 ifeq ($(USE_EXCEPTIONS),1)
189 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
191 ifeq ($(BUILD),debug)
192 ifeq ($(DEBUG_FLAG),default)
193 __DEBUG_DEFINE_p = -D__WXDEBUG__
196 ifeq ($(DEBUG_FLAG),1)
197 __DEBUG_DEFINE_p = -D__WXDEBUG__
199 ifeq ($(USE_EXCEPTIONS),0)
200 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
203 __RTTI_DEFINE_p = -DwxNO_RTTI
205 ifeq ($(USE_THREADS),0)
206 __THREAD_DEFINE_p = -DwxNO_THREADS
209 __UNICODE_DEFINE_p = -D_UNICODE
212 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
218 -if not exist $(OBJS) mkdir $(OBJS)
222 all: $(__svgdll___depname) $(__svglib___depname)
225 -if exist $(OBJS)\*.o del $(OBJS)\*.o
226 -if exist $(OBJS)\*.d del $(OBJS)\*.d
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
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
232 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
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)
237 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
239 ar rcu $@ $(SVGLIB_OBJECTS)
243 $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
244 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
246 $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
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)
249 $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
250 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
252 $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
253 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
255 $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
256 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
261 # Dependencies tracking: