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 !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 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 OGLDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
27 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
28 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
29 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL -Hu \
30 -H=$(OBJS)\wxprec_ogldll.csm $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\ogldll_dummy.obj \
33 $(OBJS)\ogldll_basic2.obj \
34 $(OBJS)\ogldll_canvas.obj \
35 $(OBJS)\ogldll_divided.obj \
36 $(OBJS)\ogldll_mfutils.obj \
37 $(OBJS)\ogldll_oglmisc.obj \
38 $(OBJS)\ogldll_basic.obj \
39 $(OBJS)\ogldll_composit.obj \
40 $(OBJS)\ogldll_drawn.obj \
41 $(OBJS)\ogldll_bmpshape.obj \
42 $(OBJS)\ogldll_constrnt.obj \
43 $(OBJS)\ogldll_lines.obj \
44 $(OBJS)\ogldll_ogldiag.obj
45 OGLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
46 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
47 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
48 -I..\..\src\ogl\..\..\include -Hu -H=$(OBJS)\wxprec_ogllib.csm $(CPPFLAGS) \
51 $(OBJS)\ogllib_dummy.obj \
52 $(OBJS)\ogllib_basic2.obj \
53 $(OBJS)\ogllib_canvas.obj \
54 $(OBJS)\ogllib_divided.obj \
55 $(OBJS)\ogllib_mfutils.obj \
56 $(OBJS)\ogllib_oglmisc.obj \
57 $(OBJS)\ogllib_basic.obj \
58 $(OBJS)\ogllib_composit.obj \
59 $(OBJS)\ogllib_drawn.obj \
60 $(OBJS)\ogllib_bmpshape.obj \
61 $(OBJS)\ogllib_constrnt.obj \
62 $(OBJS)\ogllib_lines.obj \
63 $(OBJS)\ogllib_ogldiag.obj
65 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
67 ### Conditionally set variables: ###
69 !if "$(SHARED)" == "0"
70 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
72 !if "$(SHARED)" == "1"
73 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
75 !if "$(USE_GUI)" == "0"
78 !if "$(USE_GUI)" == "1"
81 !if "$(OFFICIAL_BUILD)" == "0"
82 VENDORTAG = _$(VENDOR)
84 !if "$(OFFICIAL_BUILD)" == "1"
87 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
90 !if "$(DEBUG_FLAG)" == "1"
93 !if "$(SHARED)" == "1"
96 !if "$(UNICODE)" == "1"
99 !if "$(WXUNIV)" == "1"
102 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
105 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
108 !if "$(DEBUG_INFO)" == "0"
111 !if "$(DEBUG_INFO)" == "1"
114 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
115 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 !if "$(DEBUG_FLAG)" == "1"
118 __DEBUG_DEFINE_p = -D__WXDEBUG__
120 !if "$(USE_GUI)" == "1"
121 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
123 !if "$(USE_GUI)" == "1"
124 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
126 !if "$(USE_GUI)" == "1"
127 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
129 !if "$(BUILD)" == "debug"
132 !if "$(BUILD)" == "release"
135 !if "$(RUNTIME_LIBS)" == "dynamic"
136 __RUNTIME_LIBS = -tWR
138 !if "$(RUNTIME_LIBS)" == "static"
141 !if "$(RUNTIME_LIBS)" == "dynamic"
144 !if "$(RUNTIME_LIBS)" == "static"
147 !if "$(UNICODE)" == "1"
148 __UNICODE_DEFINE_p = -D_UNICODE
151 __UNICOWS_LIB_p = unicows.lib
153 !if "$(MONOLITHIC)" == "0"
154 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
156 !if "$(MONOLITHIC)" == "0"
158 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
160 !if "$(MONOLITHIC)" == "1"
162 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
164 !if "$(WXUNIV)" == "1"
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
167 !if "$(SHARED)" == "1"
168 __ogldll___depname = \
169 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
171 !if "$(SHARED)" == "0"
172 __ogllib___depname = \
173 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
179 -if not exist $(OBJS) mkdir $(OBJS)
183 all: $(__ogldll___depname) $(__ogllib___depname)
185 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
186 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
188 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
189 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
191 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
192 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
194 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
195 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
197 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
198 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
200 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
201 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
203 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
204 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
206 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
207 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
209 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
210 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
212 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
213 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
215 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
216 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
218 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
219 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
221 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
222 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
224 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
225 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
227 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
228 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
230 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
231 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
233 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
234 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
236 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
237 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
239 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
240 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
242 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
243 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
245 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
246 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
248 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
249 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
251 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
252 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
254 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
255 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
257 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
258 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
260 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
261 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
264 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
265 -if exist $(OBJS)\*.res del $(OBJS)\*.res
266 -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
267 -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
268 -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
269 -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
270 -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
271 -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
272 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
273 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
275 !if "$(SHARED)" == "1"
276 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
277 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
278 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) ole2w32.lib oleacc.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
280 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
283 !if "$(SHARED)" == "0"
284 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
286 tlib /a /p4096 $@ @&&|