]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.bcc
Added version test
[wxWidgets.git] / contrib / build / ogl / makefile.bcc
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
9bfe7ad9
VS
7.autodepend
8
250700e4 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
250700e4
RD
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
250700e4
RD
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
250700e4
RD
22### Variables: ###
23
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
28OGLDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
31 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL -Hu \
32 -H=$(OBJS)\wxprec_ogldll.csm $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
33OGLDLL_OBJECTS = \
34 $(OBJS)\ogldll_dummy.obj \
35 $(OBJS)\ogldll_basic2.obj \
36 $(OBJS)\ogldll_canvas.obj \
37 $(OBJS)\ogldll_divided.obj \
38 $(OBJS)\ogldll_mfutils.obj \
39 $(OBJS)\ogldll_oglmisc.obj \
40 $(OBJS)\ogldll_basic.obj \
41 $(OBJS)\ogldll_composit.obj \
42 $(OBJS)\ogldll_drawn.obj \
43 $(OBJS)\ogldll_bmpshape.obj \
44 $(OBJS)\ogldll_constrnt.obj \
45 $(OBJS)\ogldll_lines.obj \
46 $(OBJS)\ogldll_ogldiag.obj
9bfe7ad9
VS
47OGLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
48 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
49 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
50 -I..\..\src\ogl\..\..\include -Hu -H=$(OBJS)\wxprec_ogllib.csm $(CPPFLAGS) \
51 $(CXXFLAGS)
3f55f5b8
VS
52OGLLIB_OBJECTS = \
53 $(OBJS)\ogllib_dummy.obj \
54 $(OBJS)\ogllib_basic2.obj \
55 $(OBJS)\ogllib_canvas.obj \
56 $(OBJS)\ogllib_divided.obj \
57 $(OBJS)\ogllib_mfutils.obj \
58 $(OBJS)\ogllib_oglmisc.obj \
59 $(OBJS)\ogllib_basic.obj \
60 $(OBJS)\ogllib_composit.obj \
61 $(OBJS)\ogllib_drawn.obj \
62 $(OBJS)\ogllib_bmpshape.obj \
63 $(OBJS)\ogllib_constrnt.obj \
64 $(OBJS)\ogllib_lines.obj \
65 $(OBJS)\ogllib_ogldiag.obj
250700e4
RD
66
67### Conditionally set variables: ###
68
69!if "$(USE_GUI)" == "0"
70PORTNAME = base
71!endif
72!if "$(USE_GUI)" == "1"
73PORTNAME = msw
74!endif
75!if "$(OFFICIAL_BUILD)" == "0"
76VENDORTAG = _$(VENDOR)
77!endif
78!if "$(OFFICIAL_BUILD)" == "1"
79VENDORTAG =
80!endif
3f55f5b8
VS
81!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82WXDEBUGFLAG = d
83!endif
84!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
85WXDEBUGFLAG = d
86!endif
250700e4
RD
87!if "$(UNICODE)" == "1"
88WXUNICODEFLAG = u
89!endif
90!if "$(WXUNIV)" == "1"
91WXUNIVNAME = univ
92!endif
b17c1746
DE
93!if "$(SHARED)" == "1"
94WXDLLFLAG = dll
250700e4 95!endif
b17c1746
DE
96!if "$(SHARED)" == "1"
97__ogldll___depname = \
98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
250700e4 99!endif
b17c1746
DE
100!if "$(RUNTIME_LIBS)" == "dynamic"
101__RUNTIME_LIBS_7 = i
3f55f5b8 102!endif
b17c1746
DE
103!if "$(RUNTIME_LIBS)" == "static"
104__RUNTIME_LIBS_7 =
3f55f5b8 105!endif
b17c1746
DE
106!if "$(MONOLITHIC)" == "1"
107__WXLIB_MONO_p = \
108 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
250700e4 109!endif
b17c1746
DE
110!if "$(USE_GUI)" == "1"
111__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
3f55f5b8
VS
112!endif
113!if "$(USE_GUI)" == "1"
114__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
115!endif
116!if "$(USE_GUI)" == "1"
117__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
118!endif
b17c1746
DE
119!if "$(MSLU)" == "1"
120__UNICOWS_LIB_p = unicows.lib
121!endif
122!if "$(MONOLITHIC)" == "0"
123__WXLIB_CORE_p = \
124 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
125!endif
126!if "$(MONOLITHIC)" == "0"
127__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
128!endif
129!if "$(SHARED)" == "0"
130__ogllib___depname = \
131 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
132!endif
133!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
134__DEBUGINFO = -v
135!endif
136!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
137__DEBUGINFO = -v-
138!endif
139!if "$(DEBUG_INFO)" == "0"
140__DEBUGINFO = -v-
141!endif
142!if "$(DEBUG_INFO)" == "1"
143__DEBUGINFO = -v
3f55f5b8 144!endif
250700e4
RD
145!if "$(BUILD)" == "debug"
146__OPTIMIZEFLAG = -Od
147!endif
148!if "$(BUILD)" == "release"
149__OPTIMIZEFLAG = -O2
150!endif
151!if "$(RUNTIME_LIBS)" == "dynamic"
152__RUNTIME_LIBS = -tWR
153!endif
154!if "$(RUNTIME_LIBS)" == "static"
155__RUNTIME_LIBS =
156!endif
b17c1746
DE
157!if "$(WXUNIV)" == "1"
158__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
250700e4 159!endif
b17c1746
DE
160!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
161__DEBUG_DEFINE_p = -D__WXDEBUG__
162!endif
163!if "$(DEBUG_FLAG)" == "1"
164__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
165!endif
166!if "$(UNICODE)" == "1"
ec08d395 167__UNICODE_DEFINE_p = -D_UNICODE
250700e4 168!endif
b17c1746
DE
169!if "$(SHARED)" == "0"
170LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
250700e4
RD
171!endif
172!if "$(SHARED)" == "1"
b17c1746 173LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
250700e4
RD
174!endif
175
176
177all: $(OBJS)
178$(OBJS):
179 -if not exist $(OBJS) mkdir $(OBJS)
180
181### Targets: ###
182
183all: $(__ogldll___depname) $(__ogllib___depname)
184
b17c1746
DE
185clean:
186 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
187 -if exist $(OBJS)\*.res del $(OBJS)\*.res
188 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
189 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).tds
190 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilc
191 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ild
192 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilf
193 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ils
194 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
195 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
196
197!if "$(SHARED)" == "1"
198$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
199 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
b92ca8cf 200 c0d32.obj $(OGLDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
b17c1746
DE
201|
202 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
203!endif
204
205!if "$(SHARED)" == "0"
206$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
207 if exist $@ del $@
208 tlib /a /p4096 $@ @&&|
209 $(OGLLIB_OBJECTS)
210|
211!endif
212
213$(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
214 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
250700e4
RD
215
216$(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
217 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
218
b17c1746 219$(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
250700e4
RD
220 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
221
b17c1746 222$(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
250700e4
RD
223 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
224
b17c1746 225$(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
250700e4
RD
226 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
227
b17c1746 228$(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
250700e4
RD
229 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
230
b17c1746
DE
231$(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
232 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
233
234$(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
250700e4
RD
235 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
236
237$(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
238 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
239
b17c1746
DE
240$(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
241 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
250700e4 242
b17c1746 243$(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
250700e4
RD
244 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
245
b17c1746 246$(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
250700e4
RD
247 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
248
249$(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
250 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
251
b17c1746
DE
252$(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
253 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
250700e4 254
b17c1746 255$(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
250700e4
RD
256 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
257
b17c1746 258$(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
250700e4
RD
259 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
260
b17c1746 261$(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
250700e4
RD
262 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
263
b17c1746 264$(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
250700e4
RD
265 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
266
b17c1746 267$(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
250700e4
RD
268 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
269
b17c1746 270$(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
250700e4
RD
271 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
272
b17c1746 273$(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
250700e4
RD
274 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
275
276$(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
277 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
278
b17c1746 279$(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
250700e4
RD
280 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
281
b17c1746 282$(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
250700e4
RD
283 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
284
b17c1746 285$(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
250700e4
RD
286 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
287
b17c1746 288$(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
250700e4 289 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**