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