1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 -I$(SETUPHDIR) -I.\..\include -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
35 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\test_dummy.obj \
38 $(OBJS)\test_test.obj \
39 $(OBJS)\test_archivetest.obj \
40 $(OBJS)\test_ziptest.obj \
41 $(OBJS)\test_arrays.obj \
42 $(OBJS)\test_datetimetest.obj \
43 $(OBJS)\test_fileconftest.obj \
44 $(OBJS)\test_filekind.obj \
45 $(OBJS)\test_filenametest.obj \
46 $(OBJS)\test_filesystest.obj \
47 $(OBJS)\test_fontmaptest.obj \
48 $(OBJS)\test_formatconvertertest.obj \
49 $(OBJS)\test_hashes.obj \
50 $(OBJS)\test_lists.obj \
51 $(OBJS)\test_longlongtest.obj \
52 $(OBJS)\test_convautotest.obj \
53 $(OBJS)\test_mbconvtest.obj \
54 $(OBJS)\test_regextest.obj \
55 $(OBJS)\test_wxregextest.obj \
56 $(OBJS)\test_scopeguardtest.obj \
57 $(OBJS)\test_strings.obj \
58 $(OBJS)\test_stdstrings.obj \
59 $(OBJS)\test_tokenizer.obj \
60 $(OBJS)\test_unicode.obj \
61 $(OBJS)\test_crt.obj \
62 $(OBJS)\test_bstream.obj \
63 $(OBJS)\test_datastreamtest.obj \
64 $(OBJS)\test_ffilestream.obj \
65 $(OBJS)\test_filestream.obj \
66 $(OBJS)\test_largefile.obj \
67 $(OBJS)\test_memstream.obj \
68 $(OBJS)\test_sstream.obj \
69 $(OBJS)\test_tempfile.obj \
70 $(OBJS)\test_textstreamtest.obj \
71 $(OBJS)\test_zlibstream.obj \
72 $(OBJS)\test_textfiletest.obj \
74 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
75 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
76 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
77 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
78 -I$(SETUPHDIR) -I.\..\include -I. $(__DLLFLAG_p) -I.\..\samples -DNOPCH \
79 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) \
82 $(OBJS)\test_gui_dummy.obj \
83 $(OBJS)\test_gui_test.obj \
84 $(OBJS)\test_gui_rect.obj \
85 $(OBJS)\test_gui_size.obj \
86 $(OBJS)\test_gui_point.obj
88 ### Conditionally set variables: ###
90 !if "$(USE_GUI)" == "0"
93 !if "$(USE_GUI)" == "1"
96 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
99 !if "$(DEBUG_FLAG)" == "1"
102 !if "$(UNICODE)" == "1"
105 !if "$(WXUNIV)" == "1"
108 !if "$(SHARED)" == "1"
111 !if "$(SHARED)" == "0"
114 !if "$(SHARED)" == "1"
117 !if "$(MONOLITHIC)" == "0"
120 !if "$(MONOLITHIC)" == "1"
123 !if "$(MONOLITHIC)" == "0"
125 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
127 !if "$(USE_GUI)" == "1"
128 __test_gui___depname = $(OBJS)\test_gui.exe
130 !if "$(WXUNIV)" == "1"
131 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
133 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
134 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
136 !if "$(DEBUG_FLAG)" == "1"
137 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
139 !if "$(USE_EXCEPTIONS)" == "0"
140 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
142 !if "$(USE_RTTI)" == "0"
143 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
145 !if "$(USE_THREADS)" == "0"
146 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
148 !if "$(UNICODE)" == "1"
149 __UNICODE_DEFINE_p_3 = -d_UNICODE
152 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
154 !if "$(SHARED)" == "1"
155 __DLLFLAG_p_3 = -dWXUSINGDLL
157 !if "$(MONOLITHIC)" == "0"
159 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
161 !if "$(BUILD)" == "debug"
164 !if "$(BUILD)" == "release"
167 !if "$(USE_THREADS)" == "0"
170 !if "$(USE_THREADS)" == "1"
173 !if "$(USE_THREADS)" == "0"
176 !if "$(USE_THREADS)" == "1"
177 __THREADSFLAG_0 = -tWM
179 !if "$(RUNTIME_LIBS)" == "dynamic"
180 __RUNTIME_LIBS = -tWR
182 !if "$(RUNTIME_LIBS)" == "static"
185 !if "$(RUNTIME_LIBS)" == "dynamic"
188 !if "$(RUNTIME_LIBS)" == "static"
191 !if "$(WXUNIV)" == "1"
192 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
194 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
195 __DEBUG_DEFINE_p = -D__WXDEBUG__
197 !if "$(DEBUG_FLAG)" == "1"
198 __DEBUG_DEFINE_p = -D__WXDEBUG__
200 !if "$(USE_EXCEPTIONS)" == "0"
201 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
203 !if "$(USE_RTTI)" == "0"
204 __RTTI_DEFINE_p = -DwxNO_RTTI
206 !if "$(USE_THREADS)" == "0"
207 __THREAD_DEFINE_p = -DwxNO_THREADS
209 !if "$(UNICODE)" == "1"
210 __UNICODE_DEFINE_p = -D_UNICODE
213 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
215 !if "$(SHARED)" == "1"
216 __DLLFLAG_p = -DWXUSINGDLL
218 !if "$(MONOLITHIC)" == "0"
220 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 !if "$(MONOLITHIC)" == "1"
224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
226 !if "$(USE_GUI)" == "1"
227 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
229 !if "$(USE_GUI)" == "1"
230 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
232 !if "$(USE_GUI)" == "1"
233 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
236 __UNICOWS_LIB_p = unicows.lib
238 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
241 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
244 !if "$(DEBUG_INFO)" == "0"
247 !if "$(DEBUG_INFO)" == "1"
254 -if not exist $(OBJS) mkdir $(OBJS)
258 all: $(OBJS)\test.exe $(__test_gui___depname) data
261 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
262 -if exist $(OBJS)\*.res del $(OBJS)\*.res
263 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
264 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
265 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
266 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
267 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
268 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
269 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
270 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
271 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
272 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
273 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
274 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
275 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
277 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
278 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
279 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,,
282 !if "$(USE_GUI)" == "1"
283 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
284 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
285 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
290 if not exist $(OBJS) mkdir $(OBJS)
291 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
293 $(OBJS)\test_dummy.obj: .\dummy.cpp
294 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
296 $(OBJS)\test_test.obj: .\test.cpp
297 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
299 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
300 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
302 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
303 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
305 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
306 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
308 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
309 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
311 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
312 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
314 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
315 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
317 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
318 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
320 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
321 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
323 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
324 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
326 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
327 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
329 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
330 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
332 $(OBJS)\test_lists.obj: .\lists\lists.cpp
333 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
335 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
336 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
338 $(OBJS)\test_convautotest.obj: .\mbconv\convautotest.cpp
339 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
341 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
342 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
344 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
345 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
347 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
348 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
350 $(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
351 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
353 $(OBJS)\test_strings.obj: .\strings\strings.cpp
354 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
356 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
357 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
359 $(OBJS)\test_tokenizer.obj: .\strings\tokenizer.cpp
360 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
362 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
363 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
365 $(OBJS)\test_crt.obj: .\strings\crt.cpp
366 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
368 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
369 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
371 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
372 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
374 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
375 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
377 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
378 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
380 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
381 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
383 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
384 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
386 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
387 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
389 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
390 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
392 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
393 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
395 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
396 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
398 $(OBJS)\test_textfiletest.obj: .\textfile\textfiletest.cpp
399 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
401 $(OBJS)\test_uris.obj: .\uris\uris.cpp
402 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
404 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
405 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\include -i. $(__DLLFLAG_p_3) -i.\..\samples $**
407 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
408 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
410 $(OBJS)\test_gui_test.obj: .\test.cpp
411 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
413 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
414 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
416 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
417 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
419 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
420 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**