]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.bcc
wxString and wxChar* access for file functions. Source cleaning.
[wxWidgets.git] / contrib / build / ogl / makefile.bcc
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
13 BCCDIR = $(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
24 WX_RELEASE_NODOT = 25
25 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
26 OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 OGLDLL_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)
35 OGLDLL_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
49 OGLLIB_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)
54 OGLLIB_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"
72 PORTNAME = base
73 !endif
74 !if "$(USE_GUI)" == "1"
75 PORTNAME = msw
76 !endif
77 !if "$(OFFICIAL_BUILD)" == "0"
78 VENDORTAG = _$(VENDOR)
79 !endif
80 !if "$(OFFICIAL_BUILD)" == "1"
81 VENDORTAG =
82 !endif
83 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84 WXDEBUGFLAG = d
85 !endif
86 !if "$(DEBUG_FLAG)" == "1"
87 WXDEBUGFLAG = d
88 !endif
89 !if "$(UNICODE)" == "1"
90 WXUNICODEFLAG = u
91 !endif
92 !if "$(WXUNIV)" == "1"
93 WXUNIVNAME = univ
94 !endif
95 !if "$(SHARED)" == "1"
96 WXDLLFLAG = dll
97 !endif
98 !if "$(MONOLITHIC)" == "0"
99 EXTRALIBS_FOR_BASE =
100 !endif
101 !if "$(MONOLITHIC)" == "1"
102 EXTRALIBS_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"
179 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
180 !endif
181 !if "$(SHARED)" == "1"
182 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
183 !endif
184
185
186 all: $(OBJS)
187 $(OBJS):
188 -if not exist $(OBJS) mkdir $(OBJS)
189
190 ### Targets: ###
191
192 all: $(__ogldll___depname) $(__ogllib___depname)
193
194 clean:
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) $**