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
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) $(__MSLU_DEFINE_p) -I..\..\src\svg\..\..\..\include \
26 -I$(SETUPHDIR) -W -Wall -I..\..\src\svg\..\..\include -DWXUSINGDLL \
27 -DWXMAKINGDLL_SVG $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\svgdll_dummy.o \
31 $(OBJS)\svgdll_version_rc.o \
32 $(OBJS)\svgdll_dcsvg.o
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) $(__MSLU_DEFINE_p) -I..\..\src\svg\..\..\..\include \
37 -I$(SETUPHDIR) -W -Wall -I..\..\src\svg\..\..\include $(__RTTIFLAG) \
38 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
40 $(OBJS)\svglib_dummy.o \
41 $(OBJS)\svglib_dcsvg.o
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
54 ifeq ($(OFFICIAL_BUILD),0)
55 VENDORTAG = _$(VENDOR)
57 ifeq ($(OFFICIAL_BUILD),1)
61 ifeq ($(DEBUG_FLAG),default)
65 ifeq ($(DEBUG_FLAG),1)
83 ifeq ($(MONOLITHIC),0)
86 ifeq ($(MONOLITHIC),1)
90 __svgdll___depname = \
91 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
94 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
97 ifeq ($(DEBUG_FLAG),default)
98 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
101 ifeq ($(DEBUG_FLAG),1)
102 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
104 ifeq ($(USE_EXCEPTIONS),0)
105 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
108 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
110 ifeq ($(USE_THREADS),0)
111 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
114 __UNICODE_DEFINE_p_1 = --define _UNICODE
117 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
119 ifeq ($(MONOLITHIC),1)
121 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
124 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
127 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
130 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
133 __UNICOWS_LIB_p = -lunicows
135 ifeq ($(MONOLITHIC),0)
137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
139 ifeq ($(MONOLITHIC),0)
141 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
144 __svglib___depname = \
145 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
147 ifeq ($(BUILD),debug)
148 ifeq ($(DEBUG_INFO),default)
152 ifeq ($(BUILD),release)
153 ifeq ($(DEBUG_INFO),default)
157 ifeq ($(DEBUG_INFO),0)
160 ifeq ($(DEBUG_INFO),1)
163 ifeq ($(BUILD),debug)
166 ifeq ($(BUILD),release)
169 ifeq ($(USE_THREADS),0)
172 ifeq ($(USE_THREADS),1)
173 __THREADSFLAG = -mthreads
176 __RTTIFLAG = -fno-rtti
181 ifeq ($(USE_EXCEPTIONS),0)
182 __EXCEPTIONSFLAG = -fno-exceptions
184 ifeq ($(USE_EXCEPTIONS),1)
188 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
190 ifeq ($(BUILD),debug)
191 ifeq ($(DEBUG_FLAG),default)
192 __DEBUG_DEFINE_p = -D__WXDEBUG__
195 ifeq ($(DEBUG_FLAG),1)
196 __DEBUG_DEFINE_p = -D__WXDEBUG__
198 ifeq ($(USE_EXCEPTIONS),0)
199 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
202 __RTTI_DEFINE_p = -DwxNO_RTTI
204 ifeq ($(USE_THREADS),0)
205 __THREAD_DEFINE_p = -DwxNO_THREADS
208 __UNICODE_DEFINE_p = -D_UNICODE
211 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
217 -if not exist $(OBJS) mkdir $(OBJS)
221 all: $(__svgdll___depname) $(__svglib___depname)
224 -if exist $(OBJS)\*.o del $(OBJS)\*.o
225 -if exist $(OBJS)\*.d del $(OBJS)\*.d
226 -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
227 -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
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
231 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
232 $(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)
236 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
238 ar rcu $@ $(SVGLIB_OBJECTS)
242 $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
243 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
245 $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
246 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_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG)
248 $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
249 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
251 $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
252 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
254 $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
255 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
260 # Dependencies tracking: