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