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