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