]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.bcc
As per the docs, the value returned is -1 if the value entered is out of range [patch...
[wxWidgets.git] / tests / makefile.bcc
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 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 25
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
29 TEST_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
30 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
32 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) $(CXXFLAGS)
33 TEST_OBJECTS = \
34 $(OBJS)\test_dummy.obj \
35 $(OBJS)\test_test.obj \
36 $(OBJS)\test_archivetest.obj \
37 $(OBJS)\test_arrays.obj \
38 $(OBJS)\test_datetimetest.obj \
39 $(OBJS)\test_fileconftest.obj \
40 $(OBJS)\test_filenametest.obj \
41 $(OBJS)\test_filesystest.obj \
42 $(OBJS)\test_fontmaptest.obj \
43 $(OBJS)\test_formatconvertertest.obj \
44 $(OBJS)\test_hashes.obj \
45 $(OBJS)\test_lists.obj \
46 $(OBJS)\test_longlongtest.obj \
47 $(OBJS)\test_mbconvtest.obj \
48 $(OBJS)\test_regextest.obj \
49 $(OBJS)\test_wxregextest.obj \
50 $(OBJS)\test_strings.obj \
51 $(OBJS)\test_stdstrings.obj \
52 $(OBJS)\test_unicode.obj \
53 $(OBJS)\test_crt.obj \
54 $(OBJS)\test_bstream.obj \
55 $(OBJS)\test_datastreamtest.obj \
56 $(OBJS)\test_ffilestream.obj \
57 $(OBJS)\test_filestream.obj \
58 $(OBJS)\test_memstream.obj \
59 $(OBJS)\test_sstream.obj \
60 $(OBJS)\test_textstreamtest.obj \
61 $(OBJS)\test_zlibstream.obj \
62 $(OBJS)\test_uris.obj
63 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
64 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
65 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
66 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) -Hu \
67 -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) $(CXXFLAGS)
68 TEST_GUI_OBJECTS = \
69 $(OBJS)\test_gui_dummy.obj \
70 $(OBJS)\test_gui_test.obj \
71 $(OBJS)\test_gui_rect.obj
72
73 ### Conditionally set variables: ###
74
75 !if "$(USE_GUI)" == "0"
76 PORTNAME = base
77 !endif
78 !if "$(USE_GUI)" == "1"
79 PORTNAME = msw
80 !endif
81 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82 WXDEBUGFLAG = d
83 !endif
84 !if "$(DEBUG_FLAG)" == "1"
85 WXDEBUGFLAG = d
86 !endif
87 !if "$(UNICODE)" == "1"
88 WXUNICODEFLAG = u
89 !endif
90 !if "$(WXUNIV)" == "1"
91 WXUNIVNAME = univ
92 !endif
93 !if "$(SHARED)" == "1"
94 WXDLLFLAG = dll
95 !endif
96 !if "$(MONOLITHIC)" == "0"
97 EXTRALIBS_FOR_BASE =
98 !endif
99 !if "$(MONOLITHIC)" == "1"
100 EXTRALIBS_FOR_BASE =
101 !endif
102 !if "$(MONOLITHIC)" == "0"
103 __WXLIB_NET_p = \
104 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
105 !endif
106 !if "$(USE_GUI)" == "1"
107 __test_gui___depname = $(OBJS)\test_gui.exe
108 !endif
109 !if "$(WXUNIV)" == "1"
110 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
111 !endif
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
114 !endif
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
117 !endif
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p_3 = -d_UNICODE
120 !endif
121 !if "$(SHARED)" == "1"
122 __DLLFLAG_p_3 = -dWXUSINGDLL
123 !endif
124 !if "$(MONOLITHIC)" == "0"
125 __WXLIB_CORE_p = \
126 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.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_0 = i
142 !endif
143 !if "$(RUNTIME_LIBS)" == "static"
144 __RUNTIME_LIBS_0 =
145 !endif
146 !if "$(WXUNIV)" == "1"
147 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
148 !endif
149 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
150 __DEBUG_DEFINE_p = -D__WXDEBUG__
151 !endif
152 !if "$(DEBUG_FLAG)" == "1"
153 __DEBUG_DEFINE_p = -D__WXDEBUG__
154 !endif
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p = -D_UNICODE
157 !endif
158 !if "$(SHARED)" == "0"
159 LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
160 !endif
161 !if "$(SHARED)" == "1"
162 LIBDIRNAME = .\..\lib\bcc_dll$(CFG)
163 !endif
164 !if "$(SHARED)" == "1"
165 __DLLFLAG_p = -DWXUSINGDLL
166 !endif
167 !if "$(MONOLITHIC)" == "0"
168 __WXLIB_BASE_p = \
169 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
170 !endif
171 !if "$(MONOLITHIC)" == "1"
172 __WXLIB_MONO_p = \
173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
174 !endif
175 !if "$(USE_GUI)" == "1"
176 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
177 !endif
178 !if "$(USE_GUI)" == "1"
179 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
180 !endif
181 !if "$(USE_GUI)" == "1"
182 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
183 !endif
184 !if "$(MSLU)" == "1"
185 __UNICOWS_LIB_p = unicows.lib
186 !endif
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
188 __DEBUGINFO = -v
189 !endif
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
191 __DEBUGINFO = -v-
192 !endif
193 !if "$(DEBUG_INFO)" == "0"
194 __DEBUGINFO = -v-
195 !endif
196 !if "$(DEBUG_INFO)" == "1"
197 __DEBUGINFO = -v
198 !endif
199
200
201 all: $(OBJS)
202 $(OBJS):
203 -if not exist $(OBJS) mkdir $(OBJS)
204
205 ### Targets: ###
206
207 all: $(OBJS)\test.exe $(__test_gui___depname) data
208
209 clean:
210 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
211 -if exist $(OBJS)\*.res del $(OBJS)\*.res
212 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
213 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
214 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
215 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
216 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
217 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
218 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
219 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
220 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
221 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
222 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
223 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
224
225 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
226 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
227 c0x32.obj $(TEST_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
228 |
229
230 !if "$(USE_GUI)" == "1"
231 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
232 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
233 c0x32.obj $(TEST_GUI_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\test_gui_sample.res
234 |
235 !endif
236
237 data:
238 if not exist $(OBJS) mkdir $(OBJS)
239 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
240
241 $(OBJS)\test_dummy.obj: .\dummy.cpp
242 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
243
244 $(OBJS)\test_test.obj: .\test.cpp
245 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
246
247 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
249
250 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
251 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
252
253 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
254 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
255
256 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
257 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
258
259 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
260 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
261
262 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
263 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
264
265 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
266 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
267
268 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
269 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
270
271 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
272 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
273
274 $(OBJS)\test_lists.obj: .\lists\lists.cpp
275 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
276
277 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
278 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
279
280 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
281 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
282
283 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
285
286 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
288
289 $(OBJS)\test_strings.obj: .\strings\strings.cpp
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
291
292 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
294
295 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
297
298 $(OBJS)\test_crt.obj: .\strings\crt.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
300
301 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
303
304 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
306
307 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
309
310 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
312
313 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
315
316 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
318
319 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
321
322 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
324
325 $(OBJS)\test_uris.obj: .\uris\uris.cpp
326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
327
328 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
329 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) -i.\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\samples $**
330
331 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
333
334 $(OBJS)\test_gui_test.obj: .\test.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
336
337 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
338 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**