1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \
22 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG $(CXXFLAGS) \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0)
25 $(OBJS)\svgdll_dummy.o \
26 $(OBJS)\svgdll_dcsvg.o
27 SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
28 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \
30 -I..\..\src\svg\..\..\include $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
33 $(OBJS)\svglib_dummy.o \
34 $(OBJS)\svglib_dcsvg.o
36 ### Conditionally set variables: ###
38 ifeq ($(GCC_VERSION),2.95)
39 GCCFLAGS = -fvtable-thunks
42 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_lib$(CFG)
45 LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_dll$(CFG)
53 ifeq ($(OFFICIAL_BUILD),0)
54 VENDORTAG = _$(VENDOR)
56 ifeq ($(OFFICIAL_BUILD),1)
60 ifeq ($(DEBUG_FLAG),default)
64 ifeq ($(DEBUG_FLAG),1)
77 ifeq ($(DEBUG_INFO),default)
81 ifeq ($(BUILD),release)
82 ifeq ($(DEBUG_INFO),default)
86 ifeq ($(DEBUG_INFO),0)
89 ifeq ($(DEBUG_INFO),1)
93 ifeq ($(DEBUG_FLAG),default)
94 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 ifeq ($(DEBUG_FLAG),1)
98 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(USE_EXCEPTIONS),0)
101 __EXCEPTIONSFLAG = -fno-rtti
103 ifeq ($(USE_EXCEPTIONS),1)
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_0 = -fno-exceptions
109 ifeq ($(USE_EXCEPTIONS),1)
113 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
116 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
119 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
121 ifeq ($(BUILD),debug)
124 ifeq ($(BUILD),release)
128 __UNICODE_DEFINE_p = -D_UNICODE
131 __UNICOWS_LIB_p = -lunicows
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
140 ifeq ($(MONOLITHIC),1)
142 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
148 __svgdll___depname = \
149 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
152 __svglib___depname = \
153 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
159 -if not exist $(OBJS) mkdir $(OBJS)
163 all: $(__svgdll___depname) $(__svglib___depname)
165 $(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
166 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
168 $(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
169 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
171 $(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
172 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
174 $(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
175 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
178 -if exist $(OBJS)\*.o del $(OBJS)\*.o
179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
180 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
181 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
184 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS)
185 $(CXX) -shared -o $@ $(SVGDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
189 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS)
191 ar rcu $@ $(SVGLIB_OBJECTS)