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