1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
25 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31 OGLDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include \
36 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL -Hu \
37 -H=$(OBJS)\wxprec_ogldll.csm $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\ogldll_dummy.obj \
40 $(OBJS)\ogldll_basic2.obj \
41 $(OBJS)\ogldll_canvas.obj \
42 $(OBJS)\ogldll_divided.obj \
43 $(OBJS)\ogldll_mfutils.obj \
44 $(OBJS)\ogldll_oglmisc.obj \
45 $(OBJS)\ogldll_basic.obj \
46 $(OBJS)\ogldll_composit.obj \
47 $(OBJS)\ogldll_drawn.obj \
48 $(OBJS)\ogldll_bmpshape.obj \
49 $(OBJS)\ogldll_constrnt.obj \
50 $(OBJS)\ogldll_lines.obj \
51 $(OBJS)\ogldll_ogldiag.obj
52 OGLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
53 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
56 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\ogl\..\..\..\include \
57 -I..\..\src\ogl\..\..\include -Hu -H=$(OBJS)\wxprec_ogllib.csm $(CPPFLAGS) \
60 $(OBJS)\ogllib_dummy.obj \
61 $(OBJS)\ogllib_basic2.obj \
62 $(OBJS)\ogllib_canvas.obj \
63 $(OBJS)\ogllib_divided.obj \
64 $(OBJS)\ogllib_mfutils.obj \
65 $(OBJS)\ogllib_oglmisc.obj \
66 $(OBJS)\ogllib_basic.obj \
67 $(OBJS)\ogllib_composit.obj \
68 $(OBJS)\ogllib_drawn.obj \
69 $(OBJS)\ogllib_bmpshape.obj \
70 $(OBJS)\ogllib_constrnt.obj \
71 $(OBJS)\ogllib_lines.obj \
72 $(OBJS)\ogllib_ogldiag.obj
74 ### Conditionally set variables: ###
76 !if "$(USE_GUI)" == "0"
79 !if "$(USE_GUI)" == "1"
82 !if "$(OFFICIAL_BUILD)" == "0"
83 VENDORTAG = _$(VENDOR)
85 !if "$(OFFICIAL_BUILD)" == "1"
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
91 !if "$(DEBUG_FLAG)" == "1"
94 !if "$(UNICODE)" == "1"
97 !if "$(WXUNIV)" == "1"
100 !if "$(SHARED)" == "1"
103 !if "$(SHARED)" == "0"
106 !if "$(SHARED)" == "1"
109 !if "$(MONOLITHIC)" == "0"
112 !if "$(MONOLITHIC)" == "1"
115 !if "$(SHARED)" == "1"
116 __ogldll___depname = \
117 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll
119 !if "$(USE_THREADS)" == "0"
122 !if "$(USE_THREADS)" == "1"
125 !if "$(RUNTIME_LIBS)" == "dynamic"
128 !if "$(RUNTIME_LIBS)" == "static"
131 !if "$(WXUNIV)" == "1"
132 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
134 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
135 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
137 !if "$(DEBUG_FLAG)" == "1"
138 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
140 !if "$(USE_EXCEPTIONS)" == "0"
141 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
143 !if "$(USE_RTTI)" == "0"
144 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
146 !if "$(USE_THREADS)" == "0"
147 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
149 !if "$(UNICODE)" == "1"
150 __UNICODE_DEFINE_p_1 = -d_UNICODE
153 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
155 !if "$(USE_GDIPLUS)" == "1"
156 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
158 !if "$(MONOLITHIC)" == "1"
160 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
162 !if "$(USE_GUI)" == "1"
163 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
165 !if "$(USE_GUI)" == "1"
166 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
168 !if "$(USE_GUI)" == "1"
169 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
172 __UNICOWS_LIB_p = unicows.lib
174 !if "$(USE_GDIPLUS)" == "1"
175 __GDIPLUS_LIB_p = gdiplus.lib
177 !if "$(MONOLITHIC)" == "0"
179 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
181 !if "$(MONOLITHIC)" == "0"
183 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
185 !if "$(SHARED)" == "0"
186 __ogllib___depname = \
187 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib
189 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
192 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
195 !if "$(DEBUG_INFO)" == "0"
198 !if "$(DEBUG_INFO)" == "1"
201 !if "$(BUILD)" == "debug"
204 !if "$(BUILD)" == "release"
207 !if "$(USE_THREADS)" == "0"
210 !if "$(USE_THREADS)" == "1"
213 !if "$(RUNTIME_LIBS)" == "dynamic"
214 __RUNTIME_LIBS = -tWR
216 !if "$(RUNTIME_LIBS)" == "static"
219 !if "$(WXUNIV)" == "1"
220 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
222 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
223 __DEBUG_DEFINE_p = -D__WXDEBUG__
225 !if "$(DEBUG_FLAG)" == "1"
226 __DEBUG_DEFINE_p = -D__WXDEBUG__
228 !if "$(USE_EXCEPTIONS)" == "0"
229 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
231 !if "$(USE_RTTI)" == "0"
232 __RTTI_DEFINE_p = -DwxNO_RTTI
234 !if "$(USE_THREADS)" == "0"
235 __THREAD_DEFINE_p = -DwxNO_THREADS
237 !if "$(UNICODE)" == "1"
238 __UNICODE_DEFINE_p = -D_UNICODE
241 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
243 !if "$(USE_GDIPLUS)" == "1"
244 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
250 -if not exist $(OBJS) mkdir $(OBJS)
254 all: $(__ogldll___depname) $(__ogllib___depname)
257 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
258 -if exist $(OBJS)\*.res del $(OBJS)\*.res
259 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
260 -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
261 -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
262 -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
263 -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
264 -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
265 -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
266 -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
267 -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
269 !if "$(SHARED)" == "1"
270 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version.res
271 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
272 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) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32$(__THREADSFLAG_6)$(__RUNTIME_LIBS_9).lib,, $(OBJS)\ogldll_version.res
274 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl $@
277 !if "$(SHARED)" == "0"
278 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
280 tlib /a /p4096 $@ @&&|
285 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\common\dummy.cpp
286 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
288 $(OBJS)\ogldll_version.res: ../../src/ogl\..\..\..\src\msw\version.rc
289 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i..\..\src\ogl\..\..\..\include -dWXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG) $**
291 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
292 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
294 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
295 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
297 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
298 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
300 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
301 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
303 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
304 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
306 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
307 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
309 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
310 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
312 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
313 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
315 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
316 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
318 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
319 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
321 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
322 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
324 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
325 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
327 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\common\dummy.cpp
328 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
330 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
331 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
333 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
334 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
336 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
337 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
339 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
340 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
342 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
343 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
345 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
346 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
348 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
349 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
351 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
352 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
354 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
355 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
357 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
358 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
360 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
361 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
363 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
364 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**