]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.gcc
Defaults in wxWinCE documented.
[wxWidgets.git] / contrib / build / svg / makefile.gcc
CommitLineData
0ca4ab85
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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
4818141b 15WX_RELEASE_NODOT = 26
0ca4ab85
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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)
0ca4ab85
VS
28SVGDLL_OBJECTS = \
29 $(OBJS)\svgdll_dummy.o \
8c9f8f91 30 $(OBJS)\svgdll_version_rc.o \
0ca4ab85 31 $(OBJS)\svgdll_dcsvg.o
8c9f8f91
JS
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) \
b14abf14 37 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
0ca4ab85
VS
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)
3f55f5b8
VS
60ifeq ($(DEBUG_FLAG),default)
61WXDEBUGFLAG = d
62endif
63endif
64ifeq ($(DEBUG_FLAG),1)
0ca4ab85
VS
65WXDEBUGFLAG = d
66endif
0ca4ab85
VS
67ifeq ($(UNICODE),1)
68WXUNICODEFLAG = u
69endif
70ifeq ($(WXUNIV),1)
71WXUNIVNAME = univ
72endif
b17c1746
DE
73ifeq ($(SHARED),1)
74WXDLLFLAG = dll
75endif
b14abf14
JS
76ifeq ($(SHARED),0)
77LIBTYPE_SUFFIX = lib
78endif
79ifeq ($(SHARED),1)
80LIBTYPE_SUFFIX = dll
81endif
dd65d8c8
RN
82ifeq ($(MONOLITHIC),0)
83EXTRALIBS_FOR_BASE =
84endif
85ifeq ($(MONOLITHIC),1)
86EXTRALIBS_FOR_BASE =
87endif
b17c1746
DE
88ifeq ($(SHARED),1)
89__svgdll___depname = \
4818141b 90 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
b17c1746 91endif
8c9f8f91
JS
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
b17c1746
DE
115ifeq ($(MONOLITHIC),1)
116__WXLIB_MONO_p = \
c33fae85 117 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
118endif
119ifeq ($(USE_GUI),1)
9c2d002b 120__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
121endif
122ifeq ($(USE_GUI),1)
9c2d002b 123__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
124endif
125ifeq ($(USE_GUI),1)
9c2d002b 126__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
127endif
128ifeq ($(MSLU),1)
129__UNICOWS_LIB_p = -lunicows
130endif
131ifeq ($(MONOLITHIC),0)
132__WXLIB_CORE_p = \
c33fae85 133 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
134endif
135ifeq ($(MONOLITHIC),0)
c33fae85
RN
136__WXLIB_BASE_p = \
137 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
138endif
139ifeq ($(SHARED),0)
140__svglib___depname = \
c33fae85 141 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
b17c1746 142endif
0ca4ab85 143ifeq ($(BUILD),debug)
3f55f5b8
VS
144ifeq ($(DEBUG_INFO),default)
145__DEBUGINFO = -g
146endif
0ca4ab85
VS
147endif
148ifeq ($(BUILD),release)
3f55f5b8
VS
149ifeq ($(DEBUG_INFO),default)
150__DEBUGINFO =
151endif
152endif
153ifeq ($(DEBUG_INFO),0)
154__DEBUGINFO =
155endif
156ifeq ($(DEBUG_INFO),1)
157__DEBUGINFO = -g
0ca4ab85
VS
158endif
159ifeq ($(BUILD),debug)
b17c1746 160__OPTIMIZEFLAG = -O0
3f55f5b8 161endif
b17c1746
DE
162ifeq ($(BUILD),release)
163__OPTIMIZEFLAG = -O2
0ca4ab85 164endif
8c9f8f91
JS
165ifeq ($(USE_THREADS),0)
166__THREADSFLAG =
a4ad36cd 167endif
8c9f8f91
JS
168ifeq ($(USE_THREADS),1)
169__THREADSFLAG = -mthreads
170endif
171ifeq ($(USE_RTTI),0)
172__RTTIFLAG = -fno-rtti
173endif
174ifeq ($(USE_RTTI),1)
175__RTTIFLAG =
a4ad36cd
VS
176endif
177ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 178__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
179endif
180ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 181__EXCEPTIONSFLAG =
a4ad36cd 182endif
b17c1746
DE
183ifeq ($(WXUNIV),1)
184__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
0ca4ab85
VS
185endif
186ifeq ($(BUILD),debug)
b17c1746
DE
187ifeq ($(DEBUG_FLAG),default)
188__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 189endif
b17c1746
DE
190endif
191ifeq ($(DEBUG_FLAG),1)
192__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 193endif
8c9f8f91
JS
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
0ca4ab85 203ifeq ($(UNICODE),1)
ec08d395 204__UNICODE_DEFINE_p = -D_UNICODE
0ca4ab85 205endif
0ca4ab85
VS
206
207
208all: $(OBJS)
209$(OBJS):
210 -if not exist $(OBJS) mkdir $(OBJS)
211
212### Targets: ###
213
214all: $(__svgdll___depname) $(__svglib___depname)
215
0ca4ab85
VS
216clean:
217 -if exist $(OBJS)\*.o del $(OBJS)\*.o
4818141b 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
c33fae85
RN
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
0ca4ab85
VS
221
222ifeq ($(SHARED),1)
4818141b 223$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
8c9f8f91 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)
0ca4ab85
VS
225endif
226
227ifeq ($(SHARED),0)
c33fae85 228$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
0ca4ab85
VS
229 if exist $@ del $@
230 ar rcu $@ $(SVGLIB_OBJECTS)
231 ranlib $@
232endif
233
b17c1746
DE
234$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
235 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
236
102d46f3 237$(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
4818141b 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)
8c9f8f91 239
b17c1746
DE
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
0ca4ab85 249.PHONY: all clean
b14abf14 250
8c9f8f91 251