]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.gcc
offset version by 1 to avoid having compatibility_version of 0.0.0 under Darwin:...
[wxWidgets.git] / contrib / build / svg / makefile.gcc
CommitLineData
0ca4ab85
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
0ca4ab85
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
0ca4ab85
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
0ca4ab85
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22SVGDLL_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) \
2113bc77
MW
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)
0ca4ab85
VS
29SVGDLL_OBJECTS = \
30 $(OBJS)\svgdll_dummy.o \
8c9f8f91 31 $(OBJS)\svgdll_version_rc.o \
0ca4ab85 32 $(OBJS)\svgdll_dcsvg.o
8c9f8f91
JS
33SVGLIB_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) \
2113bc77
MW
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)
0ca4ab85
VS
39SVGLIB_OBJECTS = \
40 $(OBJS)\svglib_dummy.o \
41 $(OBJS)\svglib_dcsvg.o
42
43### Conditionally set variables: ###
44
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(OFFICIAL_BUILD),0)
55VENDORTAG = _$(VENDOR)
56endif
57ifeq ($(OFFICIAL_BUILD),1)
58VENDORTAG =
59endif
60ifeq ($(BUILD),debug)
3f55f5b8
VS
61ifeq ($(DEBUG_FLAG),default)
62WXDEBUGFLAG = d
63endif
64endif
65ifeq ($(DEBUG_FLAG),1)
0ca4ab85
VS
66WXDEBUGFLAG = d
67endif
0ca4ab85
VS
68ifeq ($(UNICODE),1)
69WXUNICODEFLAG = u
70endif
71ifeq ($(WXUNIV),1)
72WXUNIVNAME = univ
73endif
b17c1746
DE
74ifeq ($(SHARED),1)
75WXDLLFLAG = dll
76endif
b14abf14
JS
77ifeq ($(SHARED),0)
78LIBTYPE_SUFFIX = lib
79endif
80ifeq ($(SHARED),1)
81LIBTYPE_SUFFIX = dll
82endif
dd65d8c8
RN
83ifeq ($(MONOLITHIC),0)
84EXTRALIBS_FOR_BASE =
85endif
86ifeq ($(MONOLITHIC),1)
87EXTRALIBS_FOR_BASE =
88endif
b17c1746
DE
89ifeq ($(SHARED),1)
90__svgdll___depname = \
4818141b 91 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
b17c1746 92endif
8c9f8f91
JS
93ifeq ($(WXUNIV),1)
94__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
95endif
96ifeq ($(BUILD),debug)
97ifeq ($(DEBUG_FLAG),default)
98__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
99endif
100endif
101ifeq ($(DEBUG_FLAG),1)
102__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103endif
104ifeq ($(USE_EXCEPTIONS),0)
105__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
106endif
107ifeq ($(USE_RTTI),0)
108__RTTI_DEFINE_p_1 = --define wxNO_RTTI
109endif
110ifeq ($(USE_THREADS),0)
111__THREAD_DEFINE_p_1 = --define wxNO_THREADS
112endif
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p_1 = --define _UNICODE
115endif
2113bc77
MW
116ifeq ($(MSLU),1)
117__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
118endif
b17c1746
DE
119ifeq ($(MONOLITHIC),1)
120__WXLIB_MONO_p = \
c33fae85 121 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
122endif
123ifeq ($(USE_GUI),1)
9c2d002b 124__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
125endif
126ifeq ($(USE_GUI),1)
9c2d002b 127__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
128endif
129ifeq ($(USE_GUI),1)
9c2d002b 130__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
131endif
132ifeq ($(MSLU),1)
133__UNICOWS_LIB_p = -lunicows
134endif
135ifeq ($(MONOLITHIC),0)
136__WXLIB_CORE_p = \
c33fae85 137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
138endif
139ifeq ($(MONOLITHIC),0)
c33fae85
RN
140__WXLIB_BASE_p = \
141 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
142endif
143ifeq ($(SHARED),0)
144__svglib___depname = \
c33fae85 145 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
b17c1746 146endif
0ca4ab85 147ifeq ($(BUILD),debug)
3f55f5b8
VS
148ifeq ($(DEBUG_INFO),default)
149__DEBUGINFO = -g
150endif
0ca4ab85
VS
151endif
152ifeq ($(BUILD),release)
3f55f5b8
VS
153ifeq ($(DEBUG_INFO),default)
154__DEBUGINFO =
155endif
156endif
157ifeq ($(DEBUG_INFO),0)
158__DEBUGINFO =
159endif
160ifeq ($(DEBUG_INFO),1)
161__DEBUGINFO = -g
0ca4ab85
VS
162endif
163ifeq ($(BUILD),debug)
b17c1746 164__OPTIMIZEFLAG = -O0
3f55f5b8 165endif
b17c1746
DE
166ifeq ($(BUILD),release)
167__OPTIMIZEFLAG = -O2
0ca4ab85 168endif
8c9f8f91
JS
169ifeq ($(USE_THREADS),0)
170__THREADSFLAG =
a4ad36cd 171endif
8c9f8f91
JS
172ifeq ($(USE_THREADS),1)
173__THREADSFLAG = -mthreads
174endif
175ifeq ($(USE_RTTI),0)
176__RTTIFLAG = -fno-rtti
177endif
178ifeq ($(USE_RTTI),1)
179__RTTIFLAG =
a4ad36cd
VS
180endif
181ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 182__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
183endif
184ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 185__EXCEPTIONSFLAG =
a4ad36cd 186endif
b17c1746
DE
187ifeq ($(WXUNIV),1)
188__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
0ca4ab85
VS
189endif
190ifeq ($(BUILD),debug)
b17c1746
DE
191ifeq ($(DEBUG_FLAG),default)
192__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 193endif
b17c1746
DE
194endif
195ifeq ($(DEBUG_FLAG),1)
196__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 197endif
8c9f8f91
JS
198ifeq ($(USE_EXCEPTIONS),0)
199__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
200endif
201ifeq ($(USE_RTTI),0)
202__RTTI_DEFINE_p = -DwxNO_RTTI
203endif
204ifeq ($(USE_THREADS),0)
205__THREAD_DEFINE_p = -DwxNO_THREADS
206endif
0ca4ab85 207ifeq ($(UNICODE),1)
ec08d395 208__UNICODE_DEFINE_p = -D_UNICODE
0ca4ab85 209endif
2113bc77
MW
210ifeq ($(MSLU),1)
211__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
212endif
0ca4ab85
VS
213
214
215all: $(OBJS)
216$(OBJS):
217 -if not exist $(OBJS) mkdir $(OBJS)
218
219### Targets: ###
220
221all: $(__svgdll___depname) $(__svglib___depname)
222
0ca4ab85
VS
223clean:
224 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 225 -if exist $(OBJS)\*.d del $(OBJS)\*.d
4818141b 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
c33fae85
RN
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
0ca4ab85
VS
229
230ifeq ($(SHARED),1)
4818141b 231$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
8c9f8f91 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)
0ca4ab85
VS
233endif
234
235ifeq ($(SHARED),0)
c33fae85 236$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
0ca4ab85
VS
237 if exist $@ del $@
238 ar rcu $@ $(SVGLIB_OBJECTS)
239 ranlib $@
240endif
241
b17c1746 242$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
0d90d6ea 243 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746 244
102d46f3 245$(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
2113bc77 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)
8c9f8f91 247
b17c1746 248$(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
250
251$(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
0d90d6ea 252 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
253
254$(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746 256
0ca4ab85 257.PHONY: all clean
b14abf14 258
8c9f8f91 259
0d90d6ea
JS
260# Dependencies tracking:
261-include $(OBJS)/*.d