regenerated makefiles
[wxWidgets.git] / contrib / build / ogl / makefile.bcc
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 # =========================================================================
6
7 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../../build/msw/config.bcc
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
23 OBJS = \
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
30 OGLDLL_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
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
49 OGLLIB_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
63 SETUPHDIR = \
64         $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
65
66 ### Conditionally set variables: ###
67
68 !if "$(SHARED)" == "0"
69 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_lib$(CFG)
70 !endif
71 !if "$(SHARED)" == "1"
72 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\bcc_dll$(CFG)
73 !endif
74 !if "$(USE_GUI)" == "0"
75 PORTNAME = base
76 !endif
77 !if "$(USE_GUI)" == "1"
78 PORTNAME = msw
79 !endif
80 !if "$(OFFICIAL_BUILD)" == "0"
81 VENDORTAG = _$(VENDOR)
82 !endif
83 !if "$(OFFICIAL_BUILD)" == "1"
84 VENDORTAG = 
85 !endif
86 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
87 WXDEBUGFLAG = d
88 !endif
89 !if "$(DEBUG_FLAG)" == "1"
90 WXDEBUGFLAG = d
91 !endif
92 !if "$(SHARED)" == "1"
93 WXDLLFLAG = dll
94 !endif
95 !if "$(UNICODE)" == "1"
96 WXUNICODEFLAG = u
97 !endif
98 !if "$(WXUNIV)" == "1"
99 WXUNIVNAME = univ
100 !endif
101 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
102 __DEBUGINFO = -v
103 !endif
104 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
105 __DEBUGINFO = -v-
106 !endif
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"
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 !endif
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
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
149 !if "$(MSLU)" == "1"
150 __UNICOWS_LIB_p = unicows.lib
151 !endif
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 = \
168         $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_bcc$(VENDORTAG).dll
169 !endif
170 !if "$(SHARED)" == "0"
171 __ogllib___depname = \
172         $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
173 !endif
174
175
176 all: $(OBJS)
177 $(OBJS):
178         -if not exist $(OBJS) mkdir $(OBJS)
179
180 ### Targets: ###
181
182 all: $(__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
262 clean: 
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
268
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,,
273 |
274         implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl $@
275 !endif
276
277 !if "$(SHARED)" == "0"
278 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj  $(OGLLIB_OBJECTS)
279         if exist $@ del $@
280         tlib /a /p2048 $@ @&&|
281         $(OGLLIB_OBJECTS)
282 |
283 !endif