1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 OGLDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
31 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL -Hu \
32 -H=$(OBJS)\wxprec_ogldll.csm $(CPPFLAGS) $(CXXFLAGS)
34 $(OBJS)\ogldll_dummy.obj \
35 $(OBJS)\ogldll_basic2.obj \
36 $(OBJS)\ogldll_canvas.obj \
37 $(OBJS)\ogldll_divided.obj \
38 $(OBJS)\ogldll_mfutils.obj \
39 $(OBJS)\ogldll_oglmisc.obj \
40 $(OBJS)\ogldll_basic.obj \
41 $(OBJS)\ogldll_composit.obj \
42 $(OBJS)\ogldll_drawn.obj \
43 $(OBJS)\ogldll_bmpshape.obj \
44 $(OBJS)\ogldll_constrnt.obj \
45 $(OBJS)\ogldll_lines.obj \
46 $(OBJS)\ogldll_ogldiag.obj
47 OGLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
48 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
49 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
50 -I..\..\src\ogl\..\..\include -Hu -H=$(OBJS)\wxprec_ogllib.csm $(CPPFLAGS) \
53 $(OBJS)\ogllib_dummy.obj \
54 $(OBJS)\ogllib_basic2.obj \
55 $(OBJS)\ogllib_canvas.obj \
56 $(OBJS)\ogllib_divided.obj \
57 $(OBJS)\ogllib_mfutils.obj \
58 $(OBJS)\ogllib_oglmisc.obj \
59 $(OBJS)\ogllib_basic.obj \
60 $(OBJS)\ogllib_composit.obj \
61 $(OBJS)\ogllib_drawn.obj \
62 $(OBJS)\ogllib_bmpshape.obj \
63 $(OBJS)\ogllib_constrnt.obj \
64 $(OBJS)\ogllib_lines.obj \
65 $(OBJS)\ogllib_ogldiag.obj
67 ### Conditionally set variables: ###
69 !if "$(USE_GUI)" == "0"
72 !if "$(USE_GUI)" == "1"
75 !if "$(OFFICIAL_BUILD)" == "0"
76 VENDORTAG = _$(VENDOR)
78 !if "$(OFFICIAL_BUILD)" == "1"
81 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84 !if "$(DEBUG_FLAG)" == "1"
87 !if "$(UNICODE)" == "1"
90 !if "$(WXUNIV)" == "1"
93 !if "$(SHARED)" == "1"
96 !if "$(SHARED)" == "1"
97 __ogldll___depname = \
98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
100 !if "$(RUNTIME_LIBS)" == "dynamic"
103 !if "$(RUNTIME_LIBS)" == "static"
106 !if "$(MONOLITHIC)" == "1"
108 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
110 !if "$(USE_GUI)" == "1"
111 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
113 !if "$(USE_GUI)" == "1"
114 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
116 !if "$(USE_GUI)" == "1"
117 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
120 __UNICOWS_LIB_p = unicows.lib
122 !if "$(MONOLITHIC)" == "0"
124 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
126 !if "$(MONOLITHIC)" == "0"
127 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
129 !if "$(SHARED)" == "0"
130 __ogllib___depname = \
131 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
133 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
136 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
139 !if "$(DEBUG_INFO)" == "0"
142 !if "$(DEBUG_INFO)" == "1"
145 !if "$(BUILD)" == "debug"
148 !if "$(BUILD)" == "release"
151 !if "$(RUNTIME_LIBS)" == "dynamic"
152 __RUNTIME_LIBS = -tWR
154 !if "$(RUNTIME_LIBS)" == "static"
157 !if "$(WXUNIV)" == "1"
158 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
161 __DEBUG_DEFINE_p = -D__WXDEBUG__
163 !if "$(DEBUG_FLAG)" == "1"
164 __DEBUG_DEFINE_p = -D__WXDEBUG__
166 !if "$(UNICODE)" == "1"
167 __UNICODE_DEFINE_p = -D_UNICODE
169 !if "$(SHARED)" == "0"
170 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
172 !if "$(SHARED)" == "1"
173 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
179 -if not exist $(OBJS) mkdir $(OBJS)
183 all: $(__ogldll___depname) $(__ogllib___depname)
186 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
187 -if exist $(OBJS)\*.res del $(OBJS)\*.res
188 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
189 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).tds
190 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilc
191 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ild
192 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ilf
193 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).ils
194 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
195 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
197 !if "$(SHARED)" == "1"
198 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
199 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
200 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_8).lib,,
202 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
205 !if "$(SHARED)" == "0"
206 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
208 tlib /a /p4096 $@ @&&|
213 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
214 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
216 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
217 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
219 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
220 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
222 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
223 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
225 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
226 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
228 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
229 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
231 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
232 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
234 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
235 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
237 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
238 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
240 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
241 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
243 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
244 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
246 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
247 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
249 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
250 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
252 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
253 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
255 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
256 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
258 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
259 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
261 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
262 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
264 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
265 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
267 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
268 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
270 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
271 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
273 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
274 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
276 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
277 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
279 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
280 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
282 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
283 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
285 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
286 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
288 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
289 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**