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