]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/svg/makefile.gcc
Deleting void is undefined.
[wxWidgets.git] / contrib / build / svg / makefile.gcc
CommitLineData
0ca4ab85
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (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
0ca4ab85
VS
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
19SVGDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \
22 -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
0ca4ab85
VS
24SVGDLL_OBJECTS = \
25 $(OBJS)\svgdll_dummy.o \
26 $(OBJS)\svgdll_dcsvg.o
9bfe7ad9
VS
27SVGLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
28 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
29 -I..\..\src\svg\..\..\..\include -I$(SETUPHDIR) -Wall \
30 -I..\..\src\svg\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
31 $(CPPFLAGS) $(CXXFLAGS)
0ca4ab85
VS
32SVGLIB_OBJECTS = \
33 $(OBJS)\svglib_dummy.o \
34 $(OBJS)\svglib_dcsvg.o
35
36### Conditionally set variables: ###
37
38ifeq ($(GCC_VERSION),2.95)
39GCCFLAGS = -fvtable-thunks
40endif
41ifeq ($(USE_GUI),0)
42PORTNAME = base
43endif
44ifeq ($(USE_GUI),1)
45PORTNAME = msw
46endif
47ifeq ($(OFFICIAL_BUILD),0)
48VENDORTAG = _$(VENDOR)
49endif
50ifeq ($(OFFICIAL_BUILD),1)
51VENDORTAG =
52endif
53ifeq ($(BUILD),debug)
3f55f5b8
VS
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
0ca4ab85
VS
59WXDEBUGFLAG = d
60endif
0ca4ab85
VS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
69endif
70ifeq ($(SHARED),1)
71__svgdll___depname = \
c4839ccf 72 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
b17c1746
DE
73endif
74ifeq ($(MONOLITHIC),1)
75__WXLIB_MONO_p = \
76 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
77endif
78ifeq ($(USE_GUI),1)
79__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
80endif
81ifeq ($(USE_GUI),1)
82__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
83endif
84ifeq ($(USE_GUI),1)
85__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
86endif
87ifeq ($(MSLU),1)
88__UNICOWS_LIB_p = -lunicows
89endif
90ifeq ($(MONOLITHIC),0)
91__WXLIB_CORE_p = \
92 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
93endif
94ifeq ($(MONOLITHIC),0)
95__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
96endif
97ifeq ($(SHARED),0)
98__svglib___depname = \
99 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
100endif
0ca4ab85 101ifeq ($(BUILD),debug)
3f55f5b8
VS
102ifeq ($(DEBUG_INFO),default)
103__DEBUGINFO = -g
104endif
0ca4ab85
VS
105endif
106ifeq ($(BUILD),release)
3f55f5b8
VS
107ifeq ($(DEBUG_INFO),default)
108__DEBUGINFO =
109endif
110endif
111ifeq ($(DEBUG_INFO),0)
112__DEBUGINFO =
113endif
114ifeq ($(DEBUG_INFO),1)
115__DEBUGINFO = -g
0ca4ab85
VS
116endif
117ifeq ($(BUILD),debug)
b17c1746 118__OPTIMIZEFLAG = -O0
3f55f5b8 119endif
b17c1746
DE
120ifeq ($(BUILD),release)
121__OPTIMIZEFLAG = -O2
0ca4ab85 122endif
a4ad36cd
VS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONSFLAG = -fno-rtti
125endif
126ifeq ($(USE_EXCEPTIONS),1)
127__EXCEPTIONSFLAG =
128endif
129ifeq ($(USE_EXCEPTIONS),0)
130__EXCEPTIONSFLAG_0 = -fno-exceptions
131endif
132ifeq ($(USE_EXCEPTIONS),1)
133__EXCEPTIONSFLAG_0 =
134endif
b17c1746
DE
135ifeq ($(WXUNIV),1)
136__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
0ca4ab85
VS
137endif
138ifeq ($(BUILD),debug)
b17c1746
DE
139ifeq ($(DEBUG_FLAG),default)
140__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85 141endif
b17c1746
DE
142endif
143ifeq ($(DEBUG_FLAG),1)
144__DEBUG_DEFINE_p = -D__WXDEBUG__
0ca4ab85
VS
145endif
146ifeq ($(UNICODE),1)
ec08d395 147__UNICODE_DEFINE_p = -D_UNICODE
0ca4ab85 148endif
b17c1746
DE
149ifeq ($(SHARED),0)
150LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_lib$(CFG)
0ca4ab85
VS
151endif
152ifeq ($(SHARED),1)
b17c1746 153LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_dll$(CFG)
0ca4ab85
VS
154endif
155
156
157all: $(OBJS)
158$(OBJS):
159 -if not exist $(OBJS) mkdir $(OBJS)
160
161### Targets: ###
162
163all: $(__svgdll___depname) $(__svglib___depname)
164
0ca4ab85
VS
165clean:
166 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c4839ccf 167 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
0ca4ab85
VS
168 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
169 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a
170
171ifeq ($(SHARED),1)
c4839ccf 172$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS)
b92ca8cf 173 $(CXX) -shared -o $@ $(SVGDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__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
174endif
175
176ifeq ($(SHARED),0)
177$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.a: $(SVGLIB_OBJECTS)
178 if exist $@ del $@
179 ar rcu $@ $(SVGLIB_OBJECTS)
180 ranlib $@
181endif
182
b17c1746
DE
183$(OBJS)\svgdll_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
184 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
185
186$(OBJS)\svgdll_dcsvg.o: ../../src/svg/dcsvg.cpp
187 $(CXX) -c -o $@ $(SVGDLL_CXXFLAGS) $<
188
189$(OBJS)\svglib_dummy.o: ../../src/svg/../../../src/msw/dummy.cpp
190 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
191
192$(OBJS)\svglib_dcsvg.o: ../../src/svg/dcsvg.cpp
193 $(CXX) -c -o $@ $(SVGLIB_CXXFLAGS) $<
194
0ca4ab85 195.PHONY: all clean