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