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