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