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