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