]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.gcc
Elliptic arc fix for getting bounds
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b14abf14 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
3f55f5b8
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
22OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
b14abf14 24 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
9bfe7ad9 25 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
b14abf14
JS
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
28OGLDLL_OBJECTS = \
29 $(OBJS)\ogldll_dummy.o \
30 $(OBJS)\ogldll_basic2.o \
31 $(OBJS)\ogldll_canvas.o \
32 $(OBJS)\ogldll_divided.o \
33 $(OBJS)\ogldll_mfutils.o \
34 $(OBJS)\ogldll_oglmisc.o \
35 $(OBJS)\ogldll_basic.o \
36 $(OBJS)\ogldll_composit.o \
37 $(OBJS)\ogldll_drawn.o \
38 $(OBJS)\ogldll_bmpshape.o \
39 $(OBJS)\ogldll_constrnt.o \
40 $(OBJS)\ogldll_lines.o \
41 $(OBJS)\ogldll_ogldiag.o
9bfe7ad9
VS
42OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
43 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
b14abf14 44 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -W -Wall \
9bfe7ad9 45 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
b14abf14 46 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
47OGLLIB_OBJECTS = \
48 $(OBJS)\ogllib_dummy.o \
49 $(OBJS)\ogllib_basic2.o \
50 $(OBJS)\ogllib_canvas.o \
51 $(OBJS)\ogllib_divided.o \
52 $(OBJS)\ogllib_mfutils.o \
53 $(OBJS)\ogllib_oglmisc.o \
54 $(OBJS)\ogllib_basic.o \
55 $(OBJS)\ogllib_composit.o \
56 $(OBJS)\ogllib_drawn.o \
57 $(OBJS)\ogllib_bmpshape.o \
58 $(OBJS)\ogllib_constrnt.o \
59 $(OBJS)\ogllib_lines.o \
60 $(OBJS)\ogllib_ogldiag.o
250700e4
RD
61
62### Conditionally set variables: ###
63
64ifeq ($(GCC_VERSION),2.95)
65GCCFLAGS = -fvtable-thunks
66endif
67ifeq ($(USE_GUI),0)
68PORTNAME = base
69endif
70ifeq ($(USE_GUI),1)
71PORTNAME = msw
72endif
73ifeq ($(OFFICIAL_BUILD),0)
74VENDORTAG = _$(VENDOR)
75endif
76ifeq ($(OFFICIAL_BUILD),1)
77VENDORTAG =
78endif
79ifeq ($(BUILD),debug)
3f55f5b8
VS
80ifeq ($(DEBUG_FLAG),default)
81WXDEBUGFLAG = d
82endif
83endif
84ifeq ($(DEBUG_FLAG),1)
250700e4
RD
85WXDEBUGFLAG = d
86endif
250700e4
RD
87ifeq ($(UNICODE),1)
88WXUNICODEFLAG = u
89endif
90ifeq ($(WXUNIV),1)
91WXUNIVNAME = univ
92endif
b17c1746
DE
93ifeq ($(SHARED),1)
94WXDLLFLAG = dll
95endif
b14abf14
JS
96ifeq ($(SHARED),0)
97LIBTYPE_SUFFIX = lib
98endif
99ifeq ($(SHARED),1)
100LIBTYPE_SUFFIX = dll
101endif
dd65d8c8
RN
102ifeq ($(MONOLITHIC),0)
103EXTRALIBS_FOR_BASE =
104endif
105ifeq ($(MONOLITHIC),1)
106EXTRALIBS_FOR_BASE =
107endif
b17c1746
DE
108ifeq ($(SHARED),1)
109__ogldll___depname = \
c33fae85 110 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
b17c1746
DE
111endif
112ifeq ($(MONOLITHIC),1)
113__WXLIB_MONO_p = \
c33fae85 114 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
115endif
116ifeq ($(USE_GUI),1)
9c2d002b 117__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
118endif
119ifeq ($(USE_GUI),1)
9c2d002b 120__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
121endif
122ifeq ($(USE_GUI),1)
9c2d002b 123__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
124endif
125ifeq ($(MSLU),1)
126__UNICOWS_LIB_p = -lunicows
127endif
128ifeq ($(MONOLITHIC),0)
129__WXLIB_CORE_p = \
c33fae85 130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
131endif
132ifeq ($(MONOLITHIC),0)
c33fae85
RN
133__WXLIB_BASE_p = \
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
135endif
136ifeq ($(SHARED),0)
137__ogllib___depname = \
c33fae85 138 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
b17c1746 139endif
250700e4 140ifeq ($(BUILD),debug)
3f55f5b8
VS
141ifeq ($(DEBUG_INFO),default)
142__DEBUGINFO = -g
143endif
250700e4
RD
144endif
145ifeq ($(BUILD),release)
3f55f5b8
VS
146ifeq ($(DEBUG_INFO),default)
147__DEBUGINFO =
148endif
149endif
150ifeq ($(DEBUG_INFO),0)
151__DEBUGINFO =
152endif
153ifeq ($(DEBUG_INFO),1)
154__DEBUGINFO = -g
250700e4
RD
155endif
156ifeq ($(BUILD),debug)
b17c1746 157__OPTIMIZEFLAG = -O0
3f55f5b8 158endif
b17c1746
DE
159ifeq ($(BUILD),release)
160__OPTIMIZEFLAG = -O2
250700e4 161endif
a4ad36cd
VS
162ifeq ($(USE_EXCEPTIONS),0)
163__EXCEPTIONSFLAG = -fno-rtti
164endif
165ifeq ($(USE_EXCEPTIONS),1)
166__EXCEPTIONSFLAG =
167endif
168ifeq ($(USE_EXCEPTIONS),0)
169__EXCEPTIONSFLAG_0 = -fno-exceptions
170endif
171ifeq ($(USE_EXCEPTIONS),1)
172__EXCEPTIONSFLAG_0 =
173endif
b17c1746
DE
174ifeq ($(WXUNIV),1)
175__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 176endif
250700e4 177ifeq ($(BUILD),debug)
b17c1746
DE
178ifeq ($(DEBUG_FLAG),default)
179__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 180endif
b17c1746
DE
181endif
182ifeq ($(DEBUG_FLAG),1)
183__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
184endif
185ifeq ($(UNICODE),1)
ec08d395 186__UNICODE_DEFINE_p = -D_UNICODE
250700e4 187endif
250700e4
RD
188
189
190all: $(OBJS)
191$(OBJS):
192 -if not exist $(OBJS) mkdir $(OBJS)
193
194### Targets: ###
195
196all: $(__ogldll___depname) $(__ogllib___depname)
197
b17c1746
DE
198clean:
199 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
200 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
201 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
202 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
b17c1746
DE
203
204ifeq ($(SHARED),1)
c33fae85 205$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
b14abf14 206 $(CXX) -shared -fPIC -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.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)
b17c1746
DE
207endif
208
209ifeq ($(SHARED),0)
c33fae85 210$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
b17c1746
DE
211 if exist $@ del $@
212 ar rcu $@ $(OGLLIB_OBJECTS)
213 ranlib $@
214endif
215
216$(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
250700e4
RD
217 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
218
1c3a6972 219$(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
250700e4
RD
220 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
221
b17c1746 222$(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
250700e4
RD
223 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
224
b17c1746 225$(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
250700e4
RD
226 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
227
b17c1746 228$(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
250700e4
RD
229 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
230
b17c1746 231$(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
250700e4
RD
232 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
233
b17c1746 234$(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
250700e4
RD
235 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
236
b17c1746 237$(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
250700e4
RD
238 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
239
b17c1746 240$(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
250700e4
RD
241 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
242
b17c1746 243$(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
250700e4
RD
244 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
245
b17c1746 246$(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
250700e4
RD
247 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
248
b17c1746 249$(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
250700e4
RD
250 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
251
b17c1746 252$(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
250700e4
RD
253 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
254
b17c1746 255$(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
250700e4
RD
256 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
257
1c3a6972 258$(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
250700e4
RD
259 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
260
1c3a6972 261$(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
250700e4
RD
262 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
263
b17c1746 264$(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
250700e4
RD
265 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
266
b17c1746 267$(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
250700e4
RD
268 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
269
b17c1746 270$(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
250700e4
RD
271 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
272
b17c1746 273$(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
250700e4
RD
274 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
275
b17c1746 276$(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
250700e4
RD
277 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
278
b17c1746 279$(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
250700e4
RD
280 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
281
b17c1746 282$(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
250700e4
RD
283 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
284
b17c1746 285$(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
250700e4
RD
286 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
287
b17c1746 288$(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
250700e4
RD
289 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
290
b17c1746
DE
291$(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
292 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
250700e4
RD
293
294.PHONY: all clean
b14abf14 295