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