]> git.saurik.com Git - wxWidgets.git/blame - 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
0ca4ab85
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (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
4cbcfb73
VZ
16WX_RELEASE_NODOT = 27
17WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
0ca4ab85
VS
18OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 20LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
2113bc77
MW
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)
0ca4ab85
VS
30SVGDLL_OBJECTS = \
31 $(OBJS)\svgdll_dummy.o \
8c9f8f91 32 $(OBJS)\svgdll_version_rc.o \
0ca4ab85 33 $(OBJS)\svgdll_dcsvg.o
8c9f8f91
JS
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) \
2113bc77
MW
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)
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 = \
4cbcfb73 92 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_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
b17c1746
DE
120ifeq ($(MONOLITHIC),1)
121__WXLIB_MONO_p = \
c33fae85 122 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
123endif
124ifeq ($(USE_GUI),1)
9c2d002b 125__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
126endif
127ifeq ($(USE_GUI),1)
9c2d002b 128__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
129endif
130ifeq ($(USE_GUI),1)
9c2d002b 131__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
132endif
133ifeq ($(MSLU),1)
134__UNICOWS_LIB_p = -lunicows
135endif
136ifeq ($(MONOLITHIC),0)
137__WXLIB_CORE_p = \
c33fae85 138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
139endif
140ifeq ($(MONOLITHIC),0)
c33fae85
RN
141__WXLIB_BASE_p = \
142 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
143endif
144ifeq ($(SHARED),0)
145__svglib___depname = \
c33fae85 146 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a
b17c1746 147endif
0ca4ab85 148ifeq ($(BUILD),debug)
3f55f5b8
VS
149ifeq ($(DEBUG_INFO),default)
150__DEBUGINFO = -g
151endif
0ca4ab85
VS
152endif
153ifeq ($(BUILD),release)
3f55f5b8
VS
154ifeq ($(DEBUG_INFO),default)
155__DEBUGINFO =
156endif
157endif
158ifeq ($(DEBUG_INFO),0)
159__DEBUGINFO =
160endif
161ifeq ($(DEBUG_INFO),1)
162__DEBUGINFO = -g
0ca4ab85
VS
163endif
164ifeq ($(BUILD),debug)
b17c1746 165__OPTIMIZEFLAG = -O0
3f55f5b8 166endif
b17c1746
DE
167ifeq ($(BUILD),release)
168__OPTIMIZEFLAG = -O2
0ca4ab85 169endif
8c9f8f91
JS
170ifeq ($(USE_THREADS),0)
171__THREADSFLAG =
a4ad36cd 172endif
8c9f8f91
JS
173ifeq ($(USE_THREADS),1)
174__THREADSFLAG = -mthreads
175endif
176ifeq ($(USE_RTTI),0)
177__RTTIFLAG = -fno-rtti
178endif
179ifeq ($(USE_RTTI),1)
180__RTTIFLAG =
a4ad36cd
VS
181endif
182ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 183__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
184endif
185ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 186__EXCEPTIONSFLAG =
a4ad36cd 187endif
b17c1746
DE
188ifeq ($(WXUNIV),1)
189__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
0ca4ab85
VS
190endif
191ifeq ($(BUILD),debug)
b17c1746
DE
192ifeq ($(DEBUG_FLAG),default)
193__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 194endif
b17c1746
DE
195endif
196ifeq ($(DEBUG_FLAG),1)
197__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 198endif
8c9f8f91
JS
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
0ca4ab85 208ifeq ($(UNICODE),1)
ec08d395 209__UNICODE_DEFINE_p = -D_UNICODE
0ca4ab85 210endif
2113bc77
MW
211ifeq ($(MSLU),1)
212__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
213endif
0ca4ab85
VS
214
215
216all: $(OBJS)
217$(OBJS):
218 -if not exist $(OBJS) mkdir $(OBJS)
219
220### Targets: ###
221
222all: $(__svgdll___depname) $(__svglib___depname)
223
0ca4ab85
VS
224clean:
225 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 226 -if exist $(OBJS)\*.d del $(OBJS)\*.d
4cbcfb73 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
c33fae85
RN
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
0ca4ab85
VS
230
231ifeq ($(SHARED),1)
4cbcfb73 232$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS) $(OBJS)\svgdll_version_rc.o
8c9f8f91 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)
0ca4ab85
VS
234endif
235
236ifeq ($(SHARED),0)
c33fae85 237$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_svg.a: $(SVGLIB_OBJECTS)
0ca4ab85
VS
238 if exist $@ del $@
239 ar rcu $@ $(SVGLIB_OBJECTS)
240 ranlib $@
241endif
242
b17c1746 243$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
0d90d6ea 244 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746 245
102d46f3 246$(OBJS)\svgdll_version_rc.o: ../../src/svg/../../../src/msw/version.rc
4cbcfb73 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)
8c9f8f91 248
b17c1746 249$(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
0d90d6ea 250 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
251
252$(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
0d90d6ea 253 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
254
255$(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
0d90d6ea 256 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $(CPPDEPS) $<
b17c1746 257
0ca4ab85 258.PHONY: all clean
b14abf14 259
8c9f8f91 260
0d90d6ea
JS
261# Dependencies tracking:
262-include $(OBJS)/*.d