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