]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.bcc
Applied patch [ 795491 ] Multimon sample compatibility with various conditions
[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
23OBJS = \
24 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
1c3a6972
VS
25OGLDLL_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
3f55f5b8
VS
30OGLDLL_OBJECTS = \
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
1c3a6972
VS
44OGLLIB_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
3f55f5b8
VS
49OGLLIB_OBJECTS = \
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
75a0a7b7
VS
63SETUPHDIR = \
64 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4
RD
65
66### Conditionally set variables: ###
67
75a0a7b7
VS
68!if "$(SHARED)" == "0"
69LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
70!endif
71!if "$(SHARED)" == "1"
72LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
73!endif
250700e4
RD
74!if "$(USE_GUI)" == "0"
75PORTNAME = base
76!endif
77!if "$(USE_GUI)" == "1"
78PORTNAME = msw
79!endif
80!if "$(OFFICIAL_BUILD)" == "0"
81VENDORTAG = _$(VENDOR)
82!endif
83!if "$(OFFICIAL_BUILD)" == "1"
84VENDORTAG =
85!endif
3f55f5b8
VS
86!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
87WXDEBUGFLAG = d
88!endif
89!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
90WXDEBUGFLAG = d
91!endif
92!if "$(SHARED)" == "1"
93WXDLLFLAG = dll
94!endif
95!if "$(UNICODE)" == "1"
96WXUNICODEFLAG = u
97!endif
98!if "$(WXUNIV)" == "1"
99WXUNIVNAME = univ
100!endif
3f55f5b8
VS
101!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
102__DEBUGINFO = -v
250700e4 103!endif
3f55f5b8
VS
104!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
105__DEBUGINFO = -v-
250700e4 106!endif
3f55f5b8
VS
107!if "$(DEBUG_INFO)" == "0"
108__DEBUGINFO = -v-
109!endif
110!if "$(DEBUG_INFO)" == "1"
111__DEBUGINFO = -v
112!endif
113!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
250700e4
RD
114__DEBUG_DEFINE_p = -D__WXDEBUG__
115!endif
3f55f5b8
VS
116!if "$(DEBUG_FLAG)" == "1"
117__DEBUG_DEFINE_p = -D__WXDEBUG__
118!endif
119!if "$(USE_GUI)" == "1"
120__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
121!endif
122!if "$(USE_GUI)" == "1"
123__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
124!endif
125!if "$(USE_GUI)" == "1"
126__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
127!endif
250700e4
RD
128!if "$(BUILD)" == "debug"
129__OPTIMIZEFLAG = -Od
130!endif
131!if "$(BUILD)" == "release"
132__OPTIMIZEFLAG = -O2
133!endif
134!if "$(RUNTIME_LIBS)" == "dynamic"
135__RUNTIME_LIBS = -tWR
136!endif
137!if "$(RUNTIME_LIBS)" == "static"
138__RUNTIME_LIBS =
139!endif
140!if "$(RUNTIME_LIBS)" == "dynamic"
141__RUNTIME_LIBS_7 = i
142!endif
143!if "$(RUNTIME_LIBS)" == "static"
144__RUNTIME_LIBS_7 =
145!endif
146!if "$(UNICODE)" == "1"
147__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
148!endif
2265a2d5
VS
149!if "$(MSLU)" == "1"
150__UNICOWS_LIB_p = unicows.lib
151!endif
250700e4
RD
152!if "$(MONOLITHIC)" == "0"
153__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
154!endif
155!if "$(MONOLITHIC)" == "0"
156__WXLIB_CORE_p = \
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
158!endif
159!if "$(MONOLITHIC)" == "1"
160__WXLIB_MONO_p = \
161 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
162!endif
163!if "$(WXUNIV)" == "1"
164__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165!endif
166!if "$(SHARED)" == "1"
167__ogldll___depname = \
3f55f5b8 168 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
250700e4
RD
169!endif
170!if "$(SHARED)" == "0"
171__ogllib___depname = \
3f55f5b8 172 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
173!endif
174
175
176all: $(OBJS)
177$(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180### Targets: ###
181
182all: $(__ogldll___depname) $(__ogllib___depname)
183
184$(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
185 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
186
187$(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
188 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
189
190$(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
191 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
192
193$(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
194 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
195
196$(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
197 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
198
199$(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
200 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
201
202$(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
203 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
204
205$(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
206 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
207
208$(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
209 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) -H $**
210
211$(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
212 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
213
214$(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
215 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
216
217$(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
218 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
219
220$(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
221 $(CXX) -q -c -P -o$@ $(OGLDLL_CXXFLAGS) $**
222
223$(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
224 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
225
226$(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
227 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
228
229$(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
230 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
231
232$(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
233 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
234
235$(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
236 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
237
238$(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
239 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
240
241$(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
242 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
243
244$(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
245 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
246
247$(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
248 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) -H $**
249
250$(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
251 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
252
253$(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
254 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
255
256$(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
257 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
258
259$(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
260 $(CXX) -q -c -P -o$@ $(OGLLIB_CXXFLAGS) $**
261
262clean:
263 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
264 -if exist $(OBJS)\*.res del $(OBJS)\*.res
3f55f5b8
VS
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
250700e4
RD
268
269!if "$(SHARED)" == "1"
75a0a7b7 270$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OGLDLL_OBJECTS)
1c3a6972 271 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
2265a2d5 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,,
250700e4 273|
3f55f5b8 274 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
250700e4
RD
275!endif
276
277!if "$(SHARED)" == "0"
75a0a7b7 278$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OGLLIB_OBJECTS)
250700e4
RD
279 if exist $@ del $@
280 tlib /a /p2048 $@ @&&|
3f55f5b8 281 $(OGLLIB_OBJECTS)
250700e4
RD
282|
283!endif