]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.bcc
bakefile time!! (Mainly stuff for wxCocoa)
[wxWidgets.git] / contrib / build / ogl / makefile.bcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
250700e4 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
250700e4
RD
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
250700e4
RD
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
250700e4
RD
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
ab921f5f 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
250700e4
RD
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
30OGLDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
33 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL -Hu \
34 -H=$(OBJS)\wxprec_ogldll.csm $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
35OGLDLL_OBJECTS = \
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
9bfe7ad9
VS
49OGLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
50 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
51 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(SETUPHDIR) \
52 -I..\..\src\ogl\..\..\include -Hu -H=$(OBJS)\wxprec_ogllib.csm $(CPPFLAGS) \
53 $(CXXFLAGS)
3f55f5b8
VS
54OGLLIB_OBJECTS = \
55 $(OBJS)\ogllib_dummy.obj \
56 $(OBJS)\ogllib_basic2.obj \
57 $(OBJS)\ogllib_canvas.obj \
58 $(OBJS)\ogllib_divided.obj \
59 $(OBJS)\ogllib_mfutils.obj \
60 $(OBJS)\ogllib_oglmisc.obj \
61 $(OBJS)\ogllib_basic.obj \
62 $(OBJS)\ogllib_composit.obj \
63 $(OBJS)\ogllib_drawn.obj \
64 $(OBJS)\ogllib_bmpshape.obj \
65 $(OBJS)\ogllib_constrnt.obj \
66 $(OBJS)\ogllib_lines.obj \
67 $(OBJS)\ogllib_ogldiag.obj
250700e4
RD
68
69### Conditionally set variables: ###
70
71!if "$(USE_GUI)" == "0"
72PORTNAME = base
73!endif
74!if "$(USE_GUI)" == "1"
75PORTNAME = msw
76!endif
77!if "$(OFFICIAL_BUILD)" == "0"
78VENDORTAG = _$(VENDOR)
79!endif
80!if "$(OFFICIAL_BUILD)" == "1"
81VENDORTAG =
82!endif
3f55f5b8
VS
83!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84WXDEBUGFLAG = d
85!endif
86!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
87WXDEBUGFLAG = d
88!endif
250700e4
RD
89!if "$(UNICODE)" == "1"
90WXUNICODEFLAG = u
91!endif
92!if "$(WXUNIV)" == "1"
93WXUNIVNAME = univ
94!endif
b17c1746
DE
95!if "$(SHARED)" == "1"
96WXDLLFLAG = dll
250700e4 97!endif
b17c1746
DE
98!if "$(SHARED)" == "1"
99__ogldll___depname = \
c33fae85 100 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll
250700e4 101!endif
b17c1746 102!if "$(RUNTIME_LIBS)" == "dynamic"
c4839ccf 103__RUNTIME_LIBS_8 = i
3f55f5b8 104!endif
b17c1746 105!if "$(RUNTIME_LIBS)" == "static"
c4839ccf 106__RUNTIME_LIBS_8 =
3f55f5b8 107!endif
b17c1746
DE
108!if "$(MONOLITHIC)" == "1"
109__WXLIB_MONO_p = \
c33fae85 110 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
250700e4 111!endif
b17c1746 112!if "$(USE_GUI)" == "1"
c33fae85 113__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
3f55f5b8
VS
114!endif
115!if "$(USE_GUI)" == "1"
c33fae85 116__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
3f55f5b8
VS
117!endif
118!if "$(USE_GUI)" == "1"
c33fae85 119__LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
3f55f5b8 120!endif
b17c1746
DE
121!if "$(MSLU)" == "1"
122__UNICOWS_LIB_p = unicows.lib
123!endif
124!if "$(MONOLITHIC)" == "0"
125__WXLIB_CORE_p = \
c33fae85 126 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
127!endif
128!if "$(MONOLITHIC)" == "0"
c33fae85
RN
129__WXLIB_BASE_p = \
130 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
131!endif
132!if "$(SHARED)" == "0"
133__ogllib___depname = \
c33fae85 134 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib
b17c1746
DE
135!endif
136!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
137__DEBUGINFO = -v
138!endif
139!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
140__DEBUGINFO = -v-
141!endif
142!if "$(DEBUG_INFO)" == "0"
143__DEBUGINFO = -v-
144!endif
145!if "$(DEBUG_INFO)" == "1"
146__DEBUGINFO = -v
3f55f5b8 147!endif
250700e4
RD
148!if "$(BUILD)" == "debug"
149__OPTIMIZEFLAG = -Od
150!endif
151!if "$(BUILD)" == "release"
152__OPTIMIZEFLAG = -O2
153!endif
154!if "$(RUNTIME_LIBS)" == "dynamic"
155__RUNTIME_LIBS = -tWR
156!endif
157!if "$(RUNTIME_LIBS)" == "static"
158__RUNTIME_LIBS =
159!endif
b17c1746
DE
160!if "$(WXUNIV)" == "1"
161__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
250700e4 162!endif
b17c1746
DE
163!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
164__DEBUG_DEFINE_p = -D__WXDEBUG__
165!endif
166!if "$(DEBUG_FLAG)" == "1"
167__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
168!endif
169!if "$(UNICODE)" == "1"
ec08d395 170__UNICODE_DEFINE_p = -D_UNICODE
250700e4 171!endif
b17c1746
DE
172!if "$(SHARED)" == "0"
173LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
250700e4
RD
174!endif
175!if "$(SHARED)" == "1"
b17c1746 176LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
250700e4
RD
177!endif
178
179
180all: $(OBJS)
181$(OBJS):
182 -if not exist $(OBJS) mkdir $(OBJS)
183
184### Targets: ###
185
186all: $(__ogldll___depname) $(__ogllib___depname)
187
b17c1746
DE
188clean:
189 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
190 -if exist $(OBJS)\*.res del $(OBJS)\*.res
c33fae85
RN
191 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll
192 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).tds
193 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ilc
194 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ild
195 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ilf
196 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).ils
197 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib
198 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib
b17c1746
DE
199
200!if "$(SHARED)" == "1"
c33fae85 201$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
b17c1746 202 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
c33fae85 203 c0d32.obj $(OGLDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_8).lib,,
b17c1746 204|
c33fae85 205 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl $@
b17c1746
DE
206!endif
207
208!if "$(SHARED)" == "0"
c33fae85 209$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
b17c1746
DE
210 if exist $@ del $@
211 tlib /a /p4096 $@ @&&|
212 $(OGLLIB_OBJECTS)
213|
214!endif
215
216$(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
217 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
250700e4
RD
218
219$(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
220 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
221
b17c1746 222$(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
250700e4
RD
223 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
224
b17c1746 225$(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
250700e4
RD
226 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
227
b17c1746 228$(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
250700e4
RD
229 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
230
b17c1746 231$(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
250700e4
RD
232 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
233
b17c1746
DE
234$(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
235 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
236
237$(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
250700e4
RD
238 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
239
240$(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
241 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
242
b17c1746
DE
243$(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
244 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
250700e4 245
b17c1746 246$(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
250700e4
RD
247 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
248
b17c1746 249$(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
250700e4
RD
250 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
251
252$(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
253 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
254
b17c1746
DE
255$(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
256 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
250700e4 257
b17c1746 258$(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
250700e4
RD
259 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
260
b17c1746 261$(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
250700e4
RD
262 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
263
b17c1746 264$(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
250700e4
RD
265 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
266
b17c1746 267$(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
250700e4
RD
268 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
269
b17c1746 270$(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
250700e4
RD
271 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
272
b17c1746 273$(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
250700e4
RD
274 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
275
b17c1746 276$(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
250700e4
RD
277 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
278
279$(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
280 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
281
b17c1746 282$(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
250700e4
RD
283 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
284
b17c1746 285$(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
250700e4
RD
286 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
287
b17c1746 288$(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
250700e4
RD
289 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
290
b17c1746 291$(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
250700e4 292 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**