]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/svg/makefile.gcc
To -> From
[wxWidgets.git] / contrib / build / svg / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (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
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
18OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
27 -I..\..\src\svg\..\..\..\include -W -Wall -I..\..\src\svg\..\..\include \
28 -DWXUSINGDLL -DWXMAKINGDLL_SVG $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30SVGDLL_OBJECTS = \
31 $(OBJS)\svgdll_dummy.o \
32 $(OBJS)\svgdll_version_rc.o \
33 $(OBJS)\svgdll_dcsvg.o
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) \
37 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
38 -I..\..\src\svg\..\..\..\include -W -Wall -I..\..\src\svg\..\..\include \
39 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
40 $(CXXFLAGS)
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)
63ifeq ($(DEBUG_FLAG),default)
64WXDEBUGFLAG = d
65endif
66endif
67ifeq ($(DEBUG_FLAG),1)
68WXDEBUGFLAG = d
69endif
70ifeq ($(UNICODE),1)
71WXUNICODEFLAG = u
72endif
73ifeq ($(WXUNIV),1)
74WXUNIVNAME = univ
75endif
76ifeq ($(SHARED),1)
77WXDLLFLAG = dll
78endif
79ifeq ($(SHARED),0)
80LIBTYPE_SUFFIX = lib
81endif
82ifeq ($(SHARED),1)
83LIBTYPE_SUFFIX = dll
84endif
85ifeq ($(MONOLITHIC),0)
86EXTRALIBS_FOR_BASE =
87endif
88ifeq ($(MONOLITHIC),1)
89EXTRALIBS_FOR_BASE =
90endif
91ifeq ($(SHARED),1)
92__svgdll___depname = \
93 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll
94endif
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
118ifeq ($(MSLU),1)
119__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
120endif
121ifeq ($(MONOLITHIC),1)
122__WXLIB_MONO_p = \
123 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
124endif
125ifeq ($(USE_GUI),1)
126__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
127endif
128ifeq ($(USE_GUI),1)
129__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
130endif
131ifeq ($(USE_GUI),1)
132__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
133endif
134ifeq ($(MSLU),1)
135__UNICOWS_LIB_p = -lunicows
136endif
137ifeq ($(MONOLITHIC),0)
138__WXLIB_CORE_p = \
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
140endif
141ifeq ($(MONOLITHIC),0)
142__WXLIB_BASE_p = \
143 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
144endif
145ifeq ($(SHARED),0)
146__svglib___depname = \
147 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
148endif
149ifeq ($(BUILD),debug)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO = -g
152endif
153endif
154ifeq ($(BUILD),release)
155ifeq ($(DEBUG_INFO),default)
156__DEBUGINFO =
157endif
158endif
159ifeq ($(DEBUG_INFO),0)
160__DEBUGINFO =
161endif
162ifeq ($(DEBUG_INFO),1)
163__DEBUGINFO = -g
164endif
165ifeq ($(BUILD),debug)
166__OPTIMIZEFLAG = -O0
167endif
168ifeq ($(BUILD),release)
169__OPTIMIZEFLAG = -O2
170endif
171ifeq ($(USE_THREADS),0)
172__THREADSFLAG =
173endif
174ifeq ($(USE_THREADS),1)
175__THREADSFLAG = -mthreads
176endif
177ifeq ($(USE_RTTI),0)
178__RTTIFLAG = -fno-rtti
179endif
180ifeq ($(USE_RTTI),1)
181__RTTIFLAG =
182endif
183ifeq ($(USE_EXCEPTIONS),0)
184__EXCEPTIONSFLAG = -fno-exceptions
185endif
186ifeq ($(USE_EXCEPTIONS),1)
187__EXCEPTIONSFLAG =
188endif
189ifeq ($(WXUNIV),1)
190__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
191endif
192ifeq ($(BUILD),debug)
193ifeq ($(DEBUG_FLAG),default)
194__DEBUG_DEFINE_p = -D__WXDEBUG__
195endif
196endif
197ifeq ($(DEBUG_FLAG),1)
198__DEBUG_DEFINE_p = -D__WXDEBUG__
199endif
200ifeq ($(USE_EXCEPTIONS),0)
201__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
202endif
203ifeq ($(USE_RTTI),0)
204__RTTI_DEFINE_p = -DwxNO_RTTI
205endif
206ifeq ($(USE_THREADS),0)
207__THREAD_DEFINE_p = -DwxNO_THREADS
208endif
209ifeq ($(UNICODE),1)
210__UNICODE_DEFINE_p = -D_UNICODE
211endif
212ifeq ($(MSLU),1)
213__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
214endif
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(__svgdll___depname) $(__svglib___depname)
224
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\*.d del $(OBJS)\*.d
228 -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
229 -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
230 -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
231
232ifeq ($(SHARED),1)
233$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
234 $(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)
235endif
236
237ifeq ($(SHARED),0)
238$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
239 if exist $@ del $@
240 ar rcu $@ $(SVGLIB_OBJECTS)
241 ranlib $@
242endif
243
244$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
245 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
246
247$(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
248 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 $(SETUPHDIR) --include-dir ../../src/svg/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG)
249
250$(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
251 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
252
253$(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
254 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
255
256$(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
257 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
258
259.PHONY: all clean
260
261
262# Dependencies tracking:
263-include $(OBJS)/*.d