]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/ogl/makefile.gcc
regenerated after last changes
[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)2
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) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
28 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(__RTTIFLAG) \
29 $(__EXCEPTIONSFLAG) -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) $(__GFXCTX_DEFINE_p) \
49 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include -W -Wall \
50 -I..\..\src\ogl\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
51 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(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 ($(USE_GDIPLUS),1)
144__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
145endif
146ifeq ($(MONOLITHIC),1)
147__WXLIB_MONO_p = \
148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
149endif
150ifeq ($(USE_GUI),1)
151__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
152endif
153ifeq ($(USE_GUI),1)
154__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
155endif
156ifeq ($(USE_GUI),1)
157__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
158endif
159ifeq ($(MSLU),1)
160__UNICOWS_LIB_p = -lunicows
161endif
162ifeq ($(USE_GDIPLUS),1)
163__GDIPLUS_LIB_p = -lgdiplus
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_CORE_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
168endif
169ifeq ($(MONOLITHIC),0)
170__WXLIB_BASE_p = \
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172endif
173ifeq ($(SHARED),0)
174__ogllib___depname = \
175 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
176endif
177ifeq ($(BUILD),debug)
178ifeq ($(DEBUG_INFO),default)
179__DEBUGINFO = -g
180endif
181endif
182ifeq ($(BUILD),release)
183ifeq ($(DEBUG_INFO),default)
184__DEBUGINFO =
185endif
186endif
187ifeq ($(DEBUG_INFO),0)
188__DEBUGINFO =
189endif
190ifeq ($(DEBUG_INFO),1)
191__DEBUGINFO = -g
192endif
193ifeq ($(BUILD),debug)
194__OPTIMIZEFLAG = -O0
195endif
196ifeq ($(BUILD),release)
197__OPTIMIZEFLAG = -O2
198endif
199ifeq ($(USE_THREADS),0)
200__THREADSFLAG =
201endif
202ifeq ($(USE_THREADS),1)
203__THREADSFLAG = -mthreads
204endif
205ifeq ($(USE_RTTI),0)
206__RTTIFLAG = -fno-rtti
207endif
208ifeq ($(USE_RTTI),1)
209__RTTIFLAG =
210endif
211ifeq ($(USE_EXCEPTIONS),0)
212__EXCEPTIONSFLAG = -fno-exceptions
213endif
214ifeq ($(USE_EXCEPTIONS),1)
215__EXCEPTIONSFLAG =
216endif
217ifeq ($(WXUNIV),1)
218__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
219endif
220ifeq ($(BUILD),debug)
221ifeq ($(DEBUG_FLAG),default)
222__DEBUG_DEFINE_p = -D__WXDEBUG__
223endif
224endif
225ifeq ($(DEBUG_FLAG),1)
226__DEBUG_DEFINE_p = -D__WXDEBUG__
227endif
228ifeq ($(USE_EXCEPTIONS),0)
229__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
230endif
231ifeq ($(USE_RTTI),0)
232__RTTI_DEFINE_p = -DwxNO_RTTI
233endif
234ifeq ($(USE_THREADS),0)
235__THREAD_DEFINE_p = -DwxNO_THREADS
236endif
237ifeq ($(UNICODE),1)
238__UNICODE_DEFINE_p = -D_UNICODE
239endif
240ifeq ($(MSLU),1)
241__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
242endif
243ifeq ($(USE_GDIPLUS),1)
244__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
245endif
246
247
248all: $(OBJS)
249$(OBJS):
250 -if not exist $(OBJS) mkdir $(OBJS)
251
252### Targets: ###
253
254all: $(__ogldll___depname) $(__ogllib___depname)
255
256clean:
257 -if exist $(OBJS)\*.o del $(OBJS)\*.o
258 -if exist $(OBJS)\*.d del $(OBJS)\*.d
259 -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
260 -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
261 -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
262
263ifeq ($(SHARED),1)
264$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
265 $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
266endif
267
268ifeq ($(SHARED),0)
269$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
270 if exist $@ del $@
271 ar rcu $@ $(OGLLIB_OBJECTS)
272 ranlib $@
273endif
274
275$(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
276 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
277
278$(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
279 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) $(__GFXCTX_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)
280
281$(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
282 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
283
284$(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
285 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
286
287$(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
288 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
289
290$(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
291 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
292
293$(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
294 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
295
296$(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
297 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
298
299$(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
300 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
301
302$(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
303 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
304
305$(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
306 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
307
308$(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
309 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
310
311$(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
312 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
313
314$(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
315 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
316
317$(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/common/dummy.cpp
318 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
319
320$(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
321 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
322
323$(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
324 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
325
326$(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
327 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
328
329$(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
330 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
331
332$(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
333 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
334
335$(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
336 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
337
338$(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
339 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
340
341$(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
342 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
343
344$(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
345 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
346
347$(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
348 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
349
350$(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
351 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
352
353$(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
354 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
355
356.PHONY: all clean
357
358
359# Dependencies tracking:
360-include $(OBJS)/*.d