1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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_mbconvtest.obj \
53 $(OBJS)\test_regextest.obj \
54 $(OBJS)\test_wxregextest.obj \
55 $(OBJS)\test_scopeguardtest.obj \
56 $(OBJS)\test_strings.obj \
57 $(OBJS)\test_stdstrings.obj \
58 $(OBJS)\test_tokenizer.obj \
59 $(OBJS)\test_unicode.obj \
60 $(OBJS)\test_crt.obj \
61 $(OBJS)\test_bstream.obj \
62 $(OBJS)\test_datastreamtest.obj \
63 $(OBJS)\test_ffilestream.obj \
64 $(OBJS)\test_filestream.obj \
65 $(OBJS)\test_largefile.obj \
66 $(OBJS)\test_memstream.obj \
67 $(OBJS)\test_sstream.obj \
68 $(OBJS)\test_tempfile.obj \
69 $(OBJS)\test_textstreamtest.obj \
70 $(OBJS)\test_zlibstream.obj \
72 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
73 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
74 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
75 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
76 -I$(SETUPHDIR) -I.\..\include -I. $(__DLLFLAG_p) -I.\..\samples -DNOPCH \
77 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) \
80 $(OBJS)\test_gui_dummy.obj \
81 $(OBJS)\test_gui_test.obj \
82 $(OBJS)\test_gui_rect.obj \
83 $(OBJS)\test_gui_size.obj \
84 $(OBJS)\test_gui_point.obj
86 ### Conditionally set variables: ###
88 !if "$(USE_GUI)" == "0"
91 !if "$(USE_GUI)" == "1"
94 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
97 !if "$(DEBUG_FLAG)" == "1"
100 !if "$(UNICODE)" == "1"
103 !if "$(WXUNIV)" == "1"
106 !if "$(SHARED)" == "1"
109 !if "$(SHARED)" == "0"
112 !if "$(SHARED)" == "1"
115 !if "$(MONOLITHIC)" == "0"
118 !if "$(MONOLITHIC)" == "1"
121 !if "$(MONOLITHIC)" == "0"
123 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
125 !if "$(USE_GUI)" == "1"
126 __test_gui___depname = $(OBJS)\test_gui.exe
128 !if "$(WXUNIV)" == "1"
129 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
131 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
134 !if "$(DEBUG_FLAG)" == "1"
135 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
137 !if "$(USE_EXCEPTIONS)" == "0"
138 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
140 !if "$(USE_RTTI)" == "0"
141 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
143 !if "$(USE_THREADS)" == "0"
144 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
146 !if "$(UNICODE)" == "1"
147 __UNICODE_DEFINE_p_3 = -d_UNICODE
150 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
152 !if "$(SHARED)" == "1"
153 __DLLFLAG_p_3 = -dWXUSINGDLL
155 !if "$(MONOLITHIC)" == "0"
157 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
159 !if "$(BUILD)" == "debug"
162 !if "$(BUILD)" == "release"
165 !if "$(USE_THREADS)" == "0"
168 !if "$(USE_THREADS)" == "1"
171 !if "$(USE_THREADS)" == "0"
174 !if "$(USE_THREADS)" == "1"
175 __THREADSFLAG_0 = -tWM
177 !if "$(RUNTIME_LIBS)" == "dynamic"
178 __RUNTIME_LIBS = -tWR
180 !if "$(RUNTIME_LIBS)" == "static"
183 !if "$(RUNTIME_LIBS)" == "dynamic"
186 !if "$(RUNTIME_LIBS)" == "static"
189 !if "$(WXUNIV)" == "1"
190 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
192 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
193 __DEBUG_DEFINE_p = -D__WXDEBUG__
195 !if "$(DEBUG_FLAG)" == "1"
196 __DEBUG_DEFINE_p = -D__WXDEBUG__
198 !if "$(USE_EXCEPTIONS)" == "0"
199 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
201 !if "$(USE_RTTI)" == "0"
202 __RTTI_DEFINE_p = -DwxNO_RTTI
204 !if "$(USE_THREADS)" == "0"
205 __THREAD_DEFINE_p = -DwxNO_THREADS
207 !if "$(UNICODE)" == "1"
208 __UNICODE_DEFINE_p = -D_UNICODE
211 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
213 !if "$(SHARED)" == "1"
214 __DLLFLAG_p = -DWXUSINGDLL
216 !if "$(MONOLITHIC)" == "0"
218 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
220 !if "$(MONOLITHIC)" == "1"
222 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
224 !if "$(USE_GUI)" == "1"
225 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
227 !if "$(USE_GUI)" == "1"
228 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
230 !if "$(USE_GUI)" == "1"
231 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
234 __UNICOWS_LIB_p = unicows.lib
236 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
239 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
242 !if "$(DEBUG_INFO)" == "0"
245 !if "$(DEBUG_INFO)" == "1"
252 -if not exist $(OBJS) mkdir $(OBJS)
256 all: $(OBJS)\test.exe $(__test_gui___depname) data
259 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
260 -if exist $(OBJS)\*.res del $(OBJS)\*.res
261 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
262 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
263 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
264 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
265 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
266 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
267 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
268 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
269 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
270 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
271 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
272 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
273 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
275 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
276 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
277 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,,
280 !if "$(USE_GUI)" == "1"
281 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
282 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
283 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
288 if not exist $(OBJS) mkdir $(OBJS)
289 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
291 $(OBJS)\test_dummy.obj: .\dummy.cpp
292 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
294 $(OBJS)\test_test.obj: .\test.cpp
295 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
297 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
298 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
300 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
301 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
303 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
304 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
306 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
307 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
309 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
310 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
312 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
313 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
315 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
316 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
318 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
319 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
321 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
322 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
324 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
325 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
327 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
328 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
330 $(OBJS)\test_lists.obj: .\lists\lists.cpp
331 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
333 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
334 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
336 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
337 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
339 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
340 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
342 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
343 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
345 $(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
346 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
348 $(OBJS)\test_strings.obj: .\strings\strings.cpp
349 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
351 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
352 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
354 $(OBJS)\test_tokenizer.obj: .\strings\tokenizer.cpp
355 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
357 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
358 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
360 $(OBJS)\test_crt.obj: .\strings\crt.cpp
361 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
363 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
364 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
366 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
367 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
369 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
370 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
372 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
373 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
375 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
376 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
378 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
379 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
381 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
382 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
384 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
385 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
387 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
388 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
390 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
391 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
393 $(OBJS)\test_uris.obj: .\uris\uris.cpp
394 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
396 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
397 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 $**
399 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
400 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
402 $(OBJS)\test_gui_test.obj: .\test.cpp
403 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
405 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
406 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
408 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
409 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
411 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
412 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**