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