]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.gcc
Use gsockosx.cpp from new corefoundation directory.
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
ab921f5f 16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
3f55f5b8
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
21OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
24 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
25 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
26OGLDLL_OBJECTS = \
27 $(OBJS)\ogldll_dummy.o \
28 $(OBJS)\ogldll_basic2.o \
29 $(OBJS)\ogldll_canvas.o \
30 $(OBJS)\ogldll_divided.o \
31 $(OBJS)\ogldll_mfutils.o \
32 $(OBJS)\ogldll_oglmisc.o \
33 $(OBJS)\ogldll_basic.o \
34 $(OBJS)\ogldll_composit.o \
35 $(OBJS)\ogldll_drawn.o \
36 $(OBJS)\ogldll_bmpshape.o \
37 $(OBJS)\ogldll_constrnt.o \
38 $(OBJS)\ogldll_lines.o \
39 $(OBJS)\ogldll_ogldiag.o
9bfe7ad9
VS
40OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
41 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
42 -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) -Wall \
43 -I..\..\src\ogl\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
44 $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
45OGLLIB_OBJECTS = \
46 $(OBJS)\ogllib_dummy.o \
47 $(OBJS)\ogllib_basic2.o \
48 $(OBJS)\ogllib_canvas.o \
49 $(OBJS)\ogllib_divided.o \
50 $(OBJS)\ogllib_mfutils.o \
51 $(OBJS)\ogllib_oglmisc.o \
52 $(OBJS)\ogllib_basic.o \
53 $(OBJS)\ogllib_composit.o \
54 $(OBJS)\ogllib_drawn.o \
55 $(OBJS)\ogllib_bmpshape.o \
56 $(OBJS)\ogllib_constrnt.o \
57 $(OBJS)\ogllib_lines.o \
58 $(OBJS)\ogllib_ogldiag.o
250700e4
RD
59
60### Conditionally set variables: ###
61
62ifeq ($(GCC_VERSION),2.95)
63GCCFLAGS = -fvtable-thunks
64endif
65ifeq ($(USE_GUI),0)
66PORTNAME = base
67endif
68ifeq ($(USE_GUI),1)
69PORTNAME = msw
70endif
71ifeq ($(OFFICIAL_BUILD),0)
72VENDORTAG = _$(VENDOR)
73endif
74ifeq ($(OFFICIAL_BUILD),1)
75VENDORTAG =
76endif
77ifeq ($(BUILD),debug)
3f55f5b8
VS
78ifeq ($(DEBUG_FLAG),default)
79WXDEBUGFLAG = d
80endif
81endif
82ifeq ($(DEBUG_FLAG),1)
250700e4
RD
83WXDEBUGFLAG = d
84endif
250700e4
RD
85ifeq ($(UNICODE),1)
86WXUNICODEFLAG = u
87endif
88ifeq ($(WXUNIV),1)
89WXUNIVNAME = univ
90endif
b17c1746
DE
91ifeq ($(SHARED),1)
92WXDLLFLAG = dll
93endif
dd65d8c8
RN
94ifeq ($(MONOLITHIC),0)
95EXTRALIBS_FOR_BASE =
96endif
97ifeq ($(MONOLITHIC),1)
98EXTRALIBS_FOR_BASE =
99endif
b17c1746
DE
100ifeq ($(SHARED),1)
101__ogldll___depname = \
c33fae85 102 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
b17c1746
DE
103endif
104ifeq ($(MONOLITHIC),1)
105__WXLIB_MONO_p = \
c33fae85 106 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
107endif
108ifeq ($(USE_GUI),1)
9c2d002b 109__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
110endif
111ifeq ($(USE_GUI),1)
9c2d002b 112__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
113endif
114ifeq ($(USE_GUI),1)
9c2d002b 115__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
116endif
117ifeq ($(MSLU),1)
118__UNICOWS_LIB_p = -lunicows
119endif
120ifeq ($(MONOLITHIC),0)
121__WXLIB_CORE_p = \
c33fae85 122 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
123endif
124ifeq ($(MONOLITHIC),0)
c33fae85
RN
125__WXLIB_BASE_p = \
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
127endif
128ifeq ($(SHARED),0)
129__ogllib___depname = \
c33fae85 130 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
b17c1746 131endif
250700e4 132ifeq ($(BUILD),debug)
3f55f5b8
VS
133ifeq ($(DEBUG_INFO),default)
134__DEBUGINFO = -g
135endif
250700e4
RD
136endif
137ifeq ($(BUILD),release)
3f55f5b8
VS
138ifeq ($(DEBUG_INFO),default)
139__DEBUGINFO =
140endif
141endif
142ifeq ($(DEBUG_INFO),0)
143__DEBUGINFO =
144endif
145ifeq ($(DEBUG_INFO),1)
146__DEBUGINFO = -g
250700e4
RD
147endif
148ifeq ($(BUILD),debug)
b17c1746 149__OPTIMIZEFLAG = -O0
3f55f5b8 150endif
b17c1746
DE
151ifeq ($(BUILD),release)
152__OPTIMIZEFLAG = -O2
250700e4 153endif
a4ad36cd
VS
154ifeq ($(USE_EXCEPTIONS),0)
155__EXCEPTIONSFLAG = -fno-rtti
156endif
157ifeq ($(USE_EXCEPTIONS),1)
158__EXCEPTIONSFLAG =
159endif
160ifeq ($(USE_EXCEPTIONS),0)
161__EXCEPTIONSFLAG_0 = -fno-exceptions
162endif
163ifeq ($(USE_EXCEPTIONS),1)
164__EXCEPTIONSFLAG_0 =
165endif
b17c1746
DE
166ifeq ($(WXUNIV),1)
167__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 168endif
250700e4 169ifeq ($(BUILD),debug)
b17c1746
DE
170ifeq ($(DEBUG_FLAG),default)
171__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 172endif
b17c1746
DE
173endif
174ifeq ($(DEBUG_FLAG),1)
175__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
176endif
177ifeq ($(UNICODE),1)
ec08d395 178__UNICODE_DEFINE_p = -D_UNICODE
250700e4 179endif
b17c1746
DE
180ifeq ($(SHARED),0)
181LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_lib$(CFG)
250700e4
RD
182endif
183ifeq ($(SHARED),1)
b17c1746 184LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_dll$(CFG)
250700e4
RD
185endif
186
187
188all: $(OBJS)
189$(OBJS):
190 -if not exist $(OBJS) mkdir $(OBJS)
191
192### Targets: ###
193
194all: $(__ogldll___depname) $(__ogllib___depname)
195
b17c1746
DE
196clean:
197 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
198 -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
199 -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
200 -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
b17c1746
DE
201
202ifeq ($(SHARED),1)
c33fae85 203$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
dd65d8c8 204 $(CXX) -shared -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
b17c1746
DE
205endif
206
207ifeq ($(SHARED),0)
c33fae85 208$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
b17c1746
DE
209 if exist $@ del $@
210 ar rcu $@ $(OGLLIB_OBJECTS)
211 ranlib $@
212endif
213
214$(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
250700e4
RD
215 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
216
1c3a6972 217$(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
250700e4
RD
218 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
219
b17c1746 220$(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
250700e4
RD
221 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
222
b17c1746 223$(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
250700e4
RD
224 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
225
b17c1746 226$(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
250700e4
RD
227 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
228
b17c1746 229$(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
250700e4
RD
230 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
231
b17c1746 232$(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
250700e4
RD
233 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
234
b17c1746 235$(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
250700e4
RD
236 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
237
b17c1746 238$(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
250700e4
RD
239 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
240
b17c1746 241$(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
250700e4
RD
242 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
243
b17c1746 244$(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
250700e4
RD
245 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
246
b17c1746 247$(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
250700e4
RD
248 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
249
b17c1746 250$(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
250700e4
RD
251 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
252
b17c1746 253$(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
250700e4
RD
254 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
255
1c3a6972 256$(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
250700e4
RD
257 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
258
1c3a6972 259$(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
250700e4
RD
260 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
261
b17c1746 262$(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
250700e4
RD
263 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
264
b17c1746 265$(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
250700e4
RD
266 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
267
b17c1746 268$(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
250700e4
RD
269 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
270
b17c1746 271$(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
250700e4
RD
272 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
273
b17c1746 274$(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
250700e4
RD
275 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
276
b17c1746 277$(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
250700e4
RD
278 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
279
b17c1746 280$(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
250700e4
RD
281 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
282
b17c1746 283$(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
250700e4
RD
284 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
285
b17c1746 286$(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
250700e4
RD
287 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
288
b17c1746
DE
289$(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
290 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
250700e4
RD
291
292.PHONY: all clean