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) -I$(BCCDIR)\include \
26 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
27 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include \
28 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL \
29 $(CXXFLAGS) -Hu -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) -I$(BCCDIR)\include \
45 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
46 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include \
47 -I$(SETUPHDIR) -I..\..\src\ogl\..\..\include $(CXXFLAGS) -Hu \
48 -H=$(OBJS)\wxprec_ogllib.csm
50 $(OBJS)\ogllib_dummy.obj \
51 $(OBJS)\ogllib_basic2.obj \
52 $(OBJS)\ogllib_canvas.obj \
53 $(OBJS)\ogllib_divided.obj \
54 $(OBJS)\ogllib_mfutils.obj \
55 $(OBJS)\ogllib_oglmisc.obj \
56 $(OBJS)\ogllib_basic.obj \
57 $(OBJS)\ogllib_composit.obj \
58 $(OBJS)\ogllib_drawn.obj \
59 $(OBJS)\ogllib_bmpshape.obj \
60 $(OBJS)\ogllib_constrnt.obj \
61 $(OBJS)\ogllib_lines.obj \
62 $(OBJS)\ogllib_ogldiag.obj
64 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
66 ### Conditionally set variables: ###
68 !if "$(SHARED)" == "0"
69 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
71 !if "$(SHARED)" == "1"
72 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
74 !if "$(USE_GUI)" == "0"
77 !if "$(USE_GUI)" == "1"
80 !if "$(OFFICIAL_BUILD)" == "0"
81 VENDORTAG = _$(VENDOR)
83 !if "$(OFFICIAL_BUILD)" == "1"
86 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 !if "$(DEBUG_FLAG)" == "1"
92 !if "$(SHARED)" == "1"
95 !if "$(UNICODE)" == "1"
98 !if "$(WXUNIV)" == "1"
101 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
104 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
107 !if "$(DEBUG_INFO)" == "0"
110 !if "$(DEBUG_INFO)" == "1"
113 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
116 !if "$(DEBUG_FLAG)" == "1"
117 __DEBUG_DEFINE_p = -D__WXDEBUG__
119 !if "$(USE_GUI)" == "1"
120 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
122 !if "$(USE_GUI)" == "1"
123 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
125 !if "$(USE_GUI)" == "1"
126 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
128 !if "$(BUILD)" == "debug"
131 !if "$(BUILD)" == "release"
134 !if "$(RUNTIME_LIBS)" == "dynamic"
135 __RUNTIME_LIBS = -tWR
137 !if "$(RUNTIME_LIBS)" == "static"
140 !if "$(RUNTIME_LIBS)" == "dynamic"
143 !if "$(RUNTIME_LIBS)" == "static"
146 !if "$(UNICODE)" == "1"
147 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
150 __UNICOWS_LIB_p = unicows.lib
152 !if "$(MONOLITHIC)" == "0"
153 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
155 !if "$(MONOLITHIC)" == "0"
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
159 !if "$(MONOLITHIC)" == "1"
161 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
163 !if "$(WXUNIV)" == "1"
164 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166 !if "$(SHARED)" == "1"
167 __ogldll___depname = \
168 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
170 !if "$(SHARED)" == "0"
171 __ogllib___depname = \
172 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
178 -if not exist $(OBJS) mkdir $(OBJS)
182 all: $(__ogldll___depname) $(__ogllib___depname)
184 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
185 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
187 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
188 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
190 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
191 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
193 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
194 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
196 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
197 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
199 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
200 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
202 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
203 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
205 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
206 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
208 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
209 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
211 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
212 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
214 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
215 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
217 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
218 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
220 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
221 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
223 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
224 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
226 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
227 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
229 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
230 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
232 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
233 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
235 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
236 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
238 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
239 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
241 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
242 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
244 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
245 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
247 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
248 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
250 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
251 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
253 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
254 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
256 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
257 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
259 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
260 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
263 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
264 -if exist $(OBJS)\*.res del $(OBJS)\*.res
265 -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
266 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
267 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
269 !if "$(SHARED)" == "1"
270 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
271 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
272 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,,
274 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
277 !if "$(SHARED)" == "0"
278 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
280 tlib /a /p2048 $@ @&&|