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.\..\include -I$(SETUPHDIR) -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_unicode.obj \
59 $(OBJS)\test_crt.obj \
60 $(OBJS)\test_bstream.obj \
61 $(OBJS)\test_datastreamtest.obj \
62 $(OBJS)\test_ffilestream.obj \
63 $(OBJS)\test_filestream.obj \
64 $(OBJS)\test_largefile.obj \
65 $(OBJS)\test_memstream.obj \
66 $(OBJS)\test_sstream.obj \
67 $(OBJS)\test_tempfile.obj \
68 $(OBJS)\test_textstreamtest.obj \
69 $(OBJS)\test_zlibstream.obj \
71 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
72 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
73 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
74 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
75 -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\samples -DNOPCH \
76 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) \
79 $(OBJS)\test_gui_dummy.obj \
80 $(OBJS)\test_gui_test.obj \
81 $(OBJS)\test_gui_rect.obj \
82 $(OBJS)\test_gui_size.obj \
83 $(OBJS)\test_gui_point.obj
85 ### Conditionally set variables: ###
87 !if "$(USE_GUI)" == "0"
90 !if "$(USE_GUI)" == "1"
93 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
96 !if "$(DEBUG_FLAG)" == "1"
99 !if "$(UNICODE)" == "1"
102 !if "$(WXUNIV)" == "1"
105 !if "$(SHARED)" == "1"
108 !if "$(SHARED)" == "0"
111 !if "$(SHARED)" == "1"
114 !if "$(MONOLITHIC)" == "0"
117 !if "$(MONOLITHIC)" == "1"
120 !if "$(MONOLITHIC)" == "0"
122 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
124 !if "$(USE_GUI)" == "1"
125 __test_gui___depname = $(OBJS)\test_gui.exe
127 !if "$(WXUNIV)" == "1"
128 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
130 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
131 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
133 !if "$(DEBUG_FLAG)" == "1"
134 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
136 !if "$(USE_EXCEPTIONS)" == "0"
137 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
139 !if "$(USE_RTTI)" == "0"
140 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
142 !if "$(USE_THREADS)" == "0"
143 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
145 !if "$(UNICODE)" == "1"
146 __UNICODE_DEFINE_p_3 = -d_UNICODE
149 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
151 !if "$(SHARED)" == "1"
152 __DLLFLAG_p_3 = -dWXUSINGDLL
154 !if "$(MONOLITHIC)" == "0"
156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
158 !if "$(BUILD)" == "debug"
161 !if "$(BUILD)" == "release"
164 !if "$(USE_THREADS)" == "0"
167 !if "$(USE_THREADS)" == "1"
170 !if "$(USE_THREADS)" == "0"
173 !if "$(USE_THREADS)" == "1"
174 __THREADSFLAG_0 = -tWM
176 !if "$(RUNTIME_LIBS)" == "dynamic"
177 __RUNTIME_LIBS = -tWR
179 !if "$(RUNTIME_LIBS)" == "static"
182 !if "$(RUNTIME_LIBS)" == "dynamic"
185 !if "$(RUNTIME_LIBS)" == "static"
188 !if "$(WXUNIV)" == "1"
189 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
191 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
192 __DEBUG_DEFINE_p = -D__WXDEBUG__
194 !if "$(DEBUG_FLAG)" == "1"
195 __DEBUG_DEFINE_p = -D__WXDEBUG__
197 !if "$(USE_EXCEPTIONS)" == "0"
198 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
200 !if "$(USE_RTTI)" == "0"
201 __RTTI_DEFINE_p = -DwxNO_RTTI
203 !if "$(USE_THREADS)" == "0"
204 __THREAD_DEFINE_p = -DwxNO_THREADS
206 !if "$(UNICODE)" == "1"
207 __UNICODE_DEFINE_p = -D_UNICODE
210 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
212 !if "$(SHARED)" == "1"
213 __DLLFLAG_p = -DWXUSINGDLL
215 !if "$(MONOLITHIC)" == "0"
217 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
219 !if "$(MONOLITHIC)" == "1"
221 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
223 !if "$(USE_GUI)" == "1"
224 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
226 !if "$(USE_GUI)" == "1"
227 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
229 !if "$(USE_GUI)" == "1"
230 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
233 __UNICOWS_LIB_p = unicows.lib
235 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
238 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
241 !if "$(DEBUG_INFO)" == "0"
244 !if "$(DEBUG_INFO)" == "1"
251 -if not exist $(OBJS) mkdir $(OBJS)
255 all: $(OBJS)\test.exe $(__test_gui___depname) data
258 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
259 -if exist $(OBJS)\*.res del $(OBJS)\*.res
260 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
261 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
262 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
263 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
264 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
265 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
266 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
267 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
268 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
269 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
270 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
271 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
272 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
274 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
275 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
276 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,,
279 !if "$(USE_GUI)" == "1"
280 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
281 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
282 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
287 if not exist $(OBJS) mkdir $(OBJS)
288 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
290 $(OBJS)\test_dummy.obj: .\dummy.cpp
291 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
293 $(OBJS)\test_test.obj: .\test.cpp
294 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
296 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
297 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
299 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
300 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
302 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
303 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
305 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
306 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
308 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
309 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
311 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
312 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
314 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
315 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
317 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
318 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
320 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
321 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
323 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
324 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
326 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
327 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
329 $(OBJS)\test_lists.obj: .\lists\lists.cpp
330 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
332 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
333 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
335 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
336 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
338 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
339 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
341 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
342 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
344 $(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
345 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
347 $(OBJS)\test_strings.obj: .\strings\strings.cpp
348 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
350 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
351 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
353 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
354 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
356 $(OBJS)\test_crt.obj: .\strings\crt.cpp
357 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
359 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
360 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
362 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
363 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
365 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
366 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
368 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
369 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
371 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
372 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
374 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
375 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
377 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
378 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
380 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
381 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
383 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
384 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
386 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
387 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
389 $(OBJS)\test_uris.obj: .\uris\uris.cpp
390 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
392 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
393 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.\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\samples $**
395 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
396 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
398 $(OBJS)\test_gui_test.obj: .\test.cpp
399 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
401 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
402 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
404 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
405 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
407 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
408 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**