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 ..\..\src\ogl\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 OGLDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
28 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
30 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
31 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
32 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
33 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(CXXFLAGS) -Hu \
34 -H=$(OBJS)\wxprec_ogldll.csm
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 = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
50 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
51 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
52 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
53 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
54 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
55 -I..\..\src\ogl\..\..\include $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_ogllib.csm
57 $(OBJS)\ogllib_dummy.obj \
58 $(OBJS)\ogllib_basic2.obj \
59 $(OBJS)\ogllib_canvas.obj \
60 $(OBJS)\ogllib_divided.obj \
61 $(OBJS)\ogllib_mfutils.obj \
62 $(OBJS)\ogllib_oglmisc.obj \
63 $(OBJS)\ogllib_basic.obj \
64 $(OBJS)\ogllib_composit.obj \
65 $(OBJS)\ogllib_drawn.obj \
66 $(OBJS)\ogllib_bmpshape.obj \
67 $(OBJS)\ogllib_constrnt.obj \
68 $(OBJS)\ogllib_lines.obj \
69 $(OBJS)\ogllib_ogldiag.obj
71 ### Conditionally set variables: ###
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
148 !if "$(MONOLITHIC)" == "0"
149 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
151 !if "$(MONOLITHIC)" == "0"
153 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
155 !if "$(MONOLITHIC)" == "1"
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
159 !if "$(WXUNIV)" == "1"
160 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
162 !if "$(SHARED)" == "1"
163 __ogldll___depname = \
164 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
166 !if "$(SHARED)" == "0"
167 __ogllib___depname = \
168 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
171 MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DVENDOR=$(VENDOR) -DWXUNIV=$(WXUNIV)
176 -if not exist $(OBJS) mkdir $(OBJS)
180 all: $(__ogldll___depname) $(__ogllib___depname)
182 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
183 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
185 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
186 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
188 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
189 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
191 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
192 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
194 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
195 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
197 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
198 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
200 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
201 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
203 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
204 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
206 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
207 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
209 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
210 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
212 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
213 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
215 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
216 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
218 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
219 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
221 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
222 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
224 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
225 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
227 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
228 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
230 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
231 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
233 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
234 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
236 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
237 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
239 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
240 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
242 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
243 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
245 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
246 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
248 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
249 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
251 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
252 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
254 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
255 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
257 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
258 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
261 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
262 -if exist $(OBJS)\*.res del $(OBJS)\*.res
263 -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
264 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
265 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
267 !if "$(SHARED)" == "1"
268 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_dummy.obj
269 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
270 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 import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
272 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
275 !if "$(SHARED)" == "0"
276 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OGLLIB_OBJECTS) $(OBJS)\ogllib_dummy.obj
278 tlib /a /p2048 $@ @&&|