1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 SVGDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -W \
25 -Wall -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG \
26 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(OBJS)\svgdll_dummy.o \
30 $(OBJS)\svgdll_version_rc.o \
31 $(OBJS)\svgdll_dcsvg.o
32 SVGLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -W \
36 -Wall -I..\..\src\svg\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
37 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\svglib_dummy.o \
40 $(OBJS)\svglib_dcsvg.o
42 ### Conditionally set variables: ###
44 ifeq ($(GCC_VERSION),2.95)
45 GCCFLAGS = -fvtable-thunks
53 ifeq ($(OFFICIAL_BUILD),0)
54 VENDORTAG = _$(VENDOR)
56 ifeq ($(OFFICIAL_BUILD),1)
60 ifeq ($(DEBUG_FLAG),default)
64 ifeq ($(DEBUG_FLAG),1)
82 ifeq ($(MONOLITHIC),0)
85 ifeq ($(MONOLITHIC),1)
89 __svgdll___depname = \
90 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
93 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103 ifeq ($(USE_EXCEPTIONS),0)
104 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
107 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
109 ifeq ($(USE_THREADS),0)
110 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
113 __UNICODE_DEFINE_p_1 = --define _UNICODE
115 ifeq ($(MONOLITHIC),1)
117 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
120 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
123 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
126 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
129 __UNICOWS_LIB_p = -lunicows
131 ifeq ($(MONOLITHIC),0)
133 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
135 ifeq ($(MONOLITHIC),0)
137 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
140 __svglib___depname = \
141 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
143 ifeq ($(BUILD),debug)
144 ifeq ($(DEBUG_INFO),default)
148 ifeq ($(BUILD),release)
149 ifeq ($(DEBUG_INFO),default)
153 ifeq ($(DEBUG_INFO),0)
156 ifeq ($(DEBUG_INFO),1)
159 ifeq ($(BUILD),debug)
162 ifeq ($(BUILD),release)
165 ifeq ($(USE_THREADS),0)
168 ifeq ($(USE_THREADS),1)
169 __THREADSFLAG = -mthreads
172 __RTTIFLAG = -fno-rtti
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONSFLAG = -fno-exceptions
180 ifeq ($(USE_EXCEPTIONS),1)
184 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
186 ifeq ($(BUILD),debug)
187 ifeq ($(DEBUG_FLAG),default)
188 __DEBUG_DEFINE_p = -D__WXDEBUG__
191 ifeq ($(DEBUG_FLAG),1)
192 __DEBUG_DEFINE_p = -D__WXDEBUG__
194 ifeq ($(USE_EXCEPTIONS),0)
195 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
198 __RTTI_DEFINE_p = -DwxNO_RTTI
200 ifeq ($(USE_THREADS),0)
201 __THREAD_DEFINE_p = -DwxNO_THREADS
204 __UNICODE_DEFINE_p = -D_UNICODE
210 -if not exist $(OBJS) mkdir $(OBJS)
214 all: $(__svgdll___depname) $(__svglib___depname)
217 -if exist $(OBJS)\*.o del $(OBJS)\*.o
218 -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
219 -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
220 -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
223 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
224 $(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)
228 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
230 ar rcu $@ $(SVGLIB_OBJECTS)
234 $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
235 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
237 $(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
238 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)
240 $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
241 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
243 $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
244 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
246 $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
247 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<