]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/svg/makefile.gcc
overseeing the obvious, there is already a perfect scroll call for HIView...
[wxWidgets.git] / contrib / build / svg / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.3 (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
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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)
24SVGDLL_OBJECTS = \
25 $(OBJS)\svgdll_dummy.o \
26 $(OBJS)\svgdll_dcsvg.o
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)
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)
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
59WXDEBUGFLAG = d
60endif
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
69endif
70ifeq ($(SHARED),1)
71__svgdll___depname = \
72 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
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
101ifeq ($(BUILD),debug)
102ifeq ($(DEBUG_INFO),default)
103__DEBUGINFO = -g
104endif
105endif
106ifeq ($(BUILD),release)
107ifeq ($(DEBUG_INFO),default)
108__DEBUGINFO =
109endif
110endif
111ifeq ($(DEBUG_INFO),0)
112__DEBUGINFO =
113endif
114ifeq ($(DEBUG_INFO),1)
115__DEBUGINFO = -g
116endif
117ifeq ($(BUILD),debug)
118__OPTIMIZEFLAG = -O0
119endif
120ifeq ($(BUILD),release)
121__OPTIMIZEFLAG = -O2
122endif
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
135ifeq ($(WXUNIV),1)
136__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
137endif
138ifeq ($(BUILD),debug)
139ifeq ($(DEBUG_FLAG),default)
140__DEBUG_DEFINE_p = -D__WXDEBUG__
141endif
142endif
143ifeq ($(DEBUG_FLAG),1)
144__DEBUG_DEFINE_p = -D__WXDEBUG__
145endif
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p = -D_UNICODE
148endif
149ifeq ($(SHARED),0)
150LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_lib$(CFG)
151endif
152ifeq ($(SHARED),1)
153LIBDIRNAME = ..\..\src\svg\..\..\..\lib\gcc_dll$(CFG)
154endif
155
156
157all: $(OBJS)
158$(OBJS):
159 -if not exist $(OBJS) mkdir $(OBJS)
160
161### Targets: ###
162
163all: $(__svgdll___depname) $(__svglib___depname)
164
165clean:
166 -if exist $(OBJS)\*.o del $(OBJS)\*.o
167 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll
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)
172$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_gcc$(VENDORTAG).dll: $(SVGDLL_OBJECTS)
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)
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
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
195.PHONY: all clean