1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !include ../../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
24 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 OGLDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
26 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
28 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(CXXFLAGS) -Hu \
29 -H=$(OBJS)\wxprec_ogldll.csm
31 $(OBJS)\ogldll_dummy.obj \
32 $(OBJS)\ogldll_basic2.obj \
33 $(OBJS)\ogldll_canvas.obj \
34 $(OBJS)\ogldll_divided.obj \
35 $(OBJS)\ogldll_mfutils.obj \
36 $(OBJS)\ogldll_oglmisc.obj \
37 $(OBJS)\ogldll_basic.obj \
38 $(OBJS)\ogldll_composit.obj \
39 $(OBJS)\ogldll_drawn.obj \
40 $(OBJS)\ogldll_bmpshape.obj \
41 $(OBJS)\ogldll_constrnt.obj \
42 $(OBJS)\ogldll_lines.obj \
43 $(OBJS)\ogldll_ogldiag.obj
44 OGLLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
45 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
46 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
47 -I..\..\src\ogl\..\..\include $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_ogllib.csm
49 $(OBJS)\ogllib_dummy.obj \
50 $(OBJS)\ogllib_basic2.obj \
51 $(OBJS)\ogllib_canvas.obj \
52 $(OBJS)\ogllib_divided.obj \
53 $(OBJS)\ogllib_mfutils.obj \
54 $(OBJS)\ogllib_oglmisc.obj \
55 $(OBJS)\ogllib_basic.obj \
56 $(OBJS)\ogllib_composit.obj \
57 $(OBJS)\ogllib_drawn.obj \
58 $(OBJS)\ogllib_bmpshape.obj \
59 $(OBJS)\ogllib_constrnt.obj \
60 $(OBJS)\ogllib_lines.obj \
61 $(OBJS)\ogllib_ogldiag.obj
63 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
65 ### Conditionally set variables: ###
67 !if "$(SHARED)" == "0"
68 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
70 !if "$(SHARED)" == "1"
71 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
73 !if "$(USE_GUI)" == "0"
76 !if "$(USE_GUI)" == "1"
79 !if "$(OFFICIAL_BUILD)" == "0"
80 VENDORTAG = _$(VENDOR)
82 !if "$(OFFICIAL_BUILD)" == "1"
85 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
88 !if "$(DEBUG_FLAG)" == "1"
91 !if "$(SHARED)" == "1"
94 !if "$(UNICODE)" == "1"
97 !if "$(WXUNIV)" == "1"
100 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
103 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
106 !if "$(DEBUG_INFO)" == "0"
109 !if "$(DEBUG_INFO)" == "1"
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p = -D__WXDEBUG__
118 !if "$(USE_GUI)" == "1"
119 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
121 !if "$(USE_GUI)" == "1"
122 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
124 !if "$(USE_GUI)" == "1"
125 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
127 !if "$(BUILD)" == "debug"
130 !if "$(BUILD)" == "release"
133 !if "$(RUNTIME_LIBS)" == "dynamic"
134 __RUNTIME_LIBS = -tWR
136 !if "$(RUNTIME_LIBS)" == "static"
139 !if "$(RUNTIME_LIBS)" == "dynamic"
142 !if "$(RUNTIME_LIBS)" == "static"
145 !if "$(UNICODE)" == "1"
146 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
149 __UNICOWS_LIB_p = unicows.lib
151 !if "$(MONOLITHIC)" == "0"
152 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
154 !if "$(MONOLITHIC)" == "0"
156 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
158 !if "$(MONOLITHIC)" == "1"
160 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165 !if "$(SHARED)" == "1"
166 __ogldll___depname = \
167 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
169 !if "$(SHARED)" == "0"
170 __ogllib___depname = \
171 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
177 -if not exist $(OBJS) mkdir $(OBJS)
181 all: $(__ogldll___depname) $(__ogllib___depname)
183 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
184 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
186 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
187 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
189 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
190 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
192 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
193 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
195 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
196 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
198 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
199 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
201 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
202 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
204 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
205 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
207 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
208 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
210 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
211 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
213 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
214 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
216 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
217 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
219 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
220 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
222 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
223 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
225 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
226 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
228 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
229 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
231 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
232 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
234 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
235 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
237 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
238 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
240 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
241 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
243 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
244 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
246 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
247 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
249 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
250 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
252 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
253 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
255 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
256 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
258 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
259 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
262 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
263 -if exist $(OBJS)\*.res del $(OBJS)\*.res
264 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
265 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
266 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
268 !if "$(SHARED)" == "1"
269 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
270 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
271 c0d32.obj $(OGLDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
273 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
276 !if "$(SHARED)" == "0"
277 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
279 tlib /a /p2048 $@ @&&|