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