]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.bcc
Common code for the same handling of wxSL_INVERSE.
[wxWidgets.git] / tests / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 LIBDIRNAME = .\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28 SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 TEST_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) \
34 $(CXXFLAGS)
35 TEST_OBJECTS = \
36 $(OBJS)\test_dummy.obj \
37 $(OBJS)\test_test.obj \
38 $(OBJS)\test_archivetest.obj \
39 $(OBJS)\test_ziptest.obj \
40 $(OBJS)\test_arrays.obj \
41 $(OBJS)\test_datetimetest.obj \
42 $(OBJS)\test_fileconftest.obj \
43 $(OBJS)\test_filekind.obj \
44 $(OBJS)\test_filenametest.obj \
45 $(OBJS)\test_filesystest.obj \
46 $(OBJS)\test_fontmaptest.obj \
47 $(OBJS)\test_formatconvertertest.obj \
48 $(OBJS)\test_hashes.obj \
49 $(OBJS)\test_lists.obj \
50 $(OBJS)\test_longlongtest.obj \
51 $(OBJS)\test_mbconvtest.obj \
52 $(OBJS)\test_regextest.obj \
53 $(OBJS)\test_wxregextest.obj \
54 $(OBJS)\test_strings.obj \
55 $(OBJS)\test_stdstrings.obj \
56 $(OBJS)\test_unicode.obj \
57 $(OBJS)\test_crt.obj \
58 $(OBJS)\test_bstream.obj \
59 $(OBJS)\test_datastreamtest.obj \
60 $(OBJS)\test_ffilestream.obj \
61 $(OBJS)\test_filestream.obj \
62 $(OBJS)\test_largefile.obj \
63 $(OBJS)\test_memstream.obj \
64 $(OBJS)\test_sstream.obj \
65 $(OBJS)\test_textstreamtest.obj \
66 $(OBJS)\test_zlibstream.obj \
67 $(OBJS)\test_uris.obj
68 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
69 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
70 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
71 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) -Hu \
72 -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) $(CXXFLAGS)
73 TEST_GUI_OBJECTS = \
74 $(OBJS)\test_gui_dummy.obj \
75 $(OBJS)\test_gui_test.obj \
76 $(OBJS)\test_gui_rect.obj \
77 $(OBJS)\test_gui_size.obj \
78 $(OBJS)\test_gui_point.obj
79
80 ### Conditionally set variables: ###
81
82 !if "$(USE_GUI)" == "0"
83 PORTNAME = base
84 !endif
85 !if "$(USE_GUI)" == "1"
86 PORTNAME = msw
87 !endif
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 WXDEBUGFLAG = d
90 !endif
91 !if "$(DEBUG_FLAG)" == "1"
92 WXDEBUGFLAG = d
93 !endif
94 !if "$(UNICODE)" == "1"
95 WXUNICODEFLAG = u
96 !endif
97 !if "$(WXUNIV)" == "1"
98 WXUNIVNAME = univ
99 !endif
100 !if "$(SHARED)" == "1"
101 WXDLLFLAG = dll
102 !endif
103 !if "$(SHARED)" == "0"
104 LIBTYPE_SUFFIX = lib
105 !endif
106 !if "$(SHARED)" == "1"
107 LIBTYPE_SUFFIX = dll
108 !endif
109 !if "$(MONOLITHIC)" == "0"
110 EXTRALIBS_FOR_BASE =
111 !endif
112 !if "$(MONOLITHIC)" == "1"
113 EXTRALIBS_FOR_BASE =
114 !endif
115 !if "$(MONOLITHIC)" == "0"
116 __WXLIB_NET_p = \
117 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
118 !endif
119 !if "$(USE_GUI)" == "1"
120 __test_gui___depname = $(OBJS)\test_gui.exe
121 !endif
122 !if "$(WXUNIV)" == "1"
123 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
124 !endif
125 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
127 !endif
128 !if "$(DEBUG_FLAG)" == "1"
129 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
130 !endif
131 !if "$(UNICODE)" == "1"
132 __UNICODE_DEFINE_p_3 = -d_UNICODE
133 !endif
134 !if "$(SHARED)" == "1"
135 __DLLFLAG_p_3 = -dWXUSINGDLL
136 !endif
137 !if "$(MONOLITHIC)" == "0"
138 __WXLIB_CORE_p = \
139 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
140 !endif
141 !if "$(BUILD)" == "debug"
142 __OPTIMIZEFLAG = -Od
143 !endif
144 !if "$(BUILD)" == "release"
145 __OPTIMIZEFLAG = -O2
146 !endif
147 !if "$(RUNTIME_LIBS)" == "dynamic"
148 __RUNTIME_LIBS = -tWR
149 !endif
150 !if "$(RUNTIME_LIBS)" == "static"
151 __RUNTIME_LIBS =
152 !endif
153 !if "$(RUNTIME_LIBS)" == "dynamic"
154 __RUNTIME_LIBS_0 = i
155 !endif
156 !if "$(RUNTIME_LIBS)" == "static"
157 __RUNTIME_LIBS_0 =
158 !endif
159 !if "$(WXUNIV)" == "1"
160 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
161 !endif
162 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
163 __DEBUG_DEFINE_p = -D__WXDEBUG__
164 !endif
165 !if "$(DEBUG_FLAG)" == "1"
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
167 !endif
168 !if "$(UNICODE)" == "1"
169 __UNICODE_DEFINE_p = -D_UNICODE
170 !endif
171 !if "$(SHARED)" == "1"
172 __DLLFLAG_p = -DWXUSINGDLL
173 !endif
174 !if "$(MONOLITHIC)" == "0"
175 __WXLIB_BASE_p = \
176 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
177 !endif
178 !if "$(MONOLITHIC)" == "1"
179 __WXLIB_MONO_p = \
180 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
181 !endif
182 !if "$(USE_GUI)" == "1"
183 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
184 !endif
185 !if "$(USE_GUI)" == "1"
186 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
187 !endif
188 !if "$(USE_GUI)" == "1"
189 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
190 !endif
191 !if "$(MSLU)" == "1"
192 __UNICOWS_LIB_p = unicows.lib
193 !endif
194 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
195 __DEBUGINFO = -v
196 !endif
197 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
198 __DEBUGINFO = -v-
199 !endif
200 !if "$(DEBUG_INFO)" == "0"
201 __DEBUGINFO = -v-
202 !endif
203 !if "$(DEBUG_INFO)" == "1"
204 __DEBUGINFO = -v
205 !endif
206
207
208 all: $(OBJS)
209 $(OBJS):
210 -if not exist $(OBJS) mkdir $(OBJS)
211
212 ### Targets: ###
213
214 all: $(OBJS)\test.exe $(__test_gui___depname) data
215
216 clean:
217 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
218 -if exist $(OBJS)\*.res del $(OBJS)\*.res
219 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
220 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
221 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
222 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
223 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
224 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
225 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
226 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
227 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
228 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
229 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
230 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
231 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
232
233 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
234 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
235 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,,
236 |
237
238 !if "$(USE_GUI)" == "1"
239 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
240 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
241 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
242 |
243 !endif
244
245 data:
246 if not exist $(OBJS) mkdir $(OBJS)
247 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
248
249 $(OBJS)\test_dummy.obj: .\dummy.cpp
250 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
251
252 $(OBJS)\test_test.obj: .\test.cpp
253 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
254
255 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
256 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
257
258 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
259 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
260
261 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
262 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
263
264 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
265 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
266
267 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
268 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
269
270 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
271 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
272
273 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
274 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
275
276 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
277 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
278
279 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
280 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
281
282 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
283 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
284
285 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
286 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
287
288 $(OBJS)\test_lists.obj: .\lists\lists.cpp
289 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
290
291 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
292 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
293
294 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
295 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
296
297 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
298 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
299
300 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
301 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
302
303 $(OBJS)\test_strings.obj: .\strings\strings.cpp
304 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
305
306 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
307 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
308
309 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
310 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
311
312 $(OBJS)\test_crt.obj: .\strings\crt.cpp
313 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
314
315 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
316 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
317
318 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
319 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
320
321 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
322 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
323
324 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
325 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
326
327 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
328 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
329
330 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
331 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
332
333 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
334 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
335
336 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
337 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
338
339 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
340 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
341
342 $(OBJS)\test_uris.obj: .\uris\uris.cpp
343 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
344
345 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
346 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 $**
347
348 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
349 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
350
351 $(OBJS)\test_gui_test.obj: .\test.cpp
352 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
353
354 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
355 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
356
357 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
358 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
359
360 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
361 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
362