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