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) -I.\..\include -I$(SETUPHDIR) -I. \
34 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) -Hu \
35 -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) -I.\..\include -I$(SETUPHDIR) -I. \
75 $(__DLLFLAG_p) -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) -Hu \
76 -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) $(CXXFLAGS)
78 $(OBJS)\test_gui_dummy.obj \
79 $(OBJS)\test_gui_test.obj \
80 $(OBJS)\test_gui_rect.obj \
81 $(OBJS)\test_gui_size.obj \
82 $(OBJS)\test_gui_point.obj
84 ### Conditionally set variables: ###
86 !if "$(USE_GUI)" == "0"
89 !if "$(USE_GUI)" == "1"
92 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
95 !if "$(DEBUG_FLAG)" == "1"
98 !if "$(UNICODE)" == "1"
101 !if "$(WXUNIV)" == "1"
104 !if "$(SHARED)" == "1"
107 !if "$(SHARED)" == "0"
110 !if "$(SHARED)" == "1"
113 !if "$(MONOLITHIC)" == "0"
116 !if "$(MONOLITHIC)" == "1"
119 !if "$(MONOLITHIC)" == "0"
121 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
123 !if "$(USE_GUI)" == "1"
124 __test_gui___depname = $(OBJS)\test_gui.exe
126 !if "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
129 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
132 !if "$(DEBUG_FLAG)" == "1"
133 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
138 !if "$(USE_RTTI)" == "0"
139 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
141 !if "$(USE_THREADS)" == "0"
142 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
144 !if "$(UNICODE)" == "1"
145 __UNICODE_DEFINE_p_3 = -d_UNICODE
147 !if "$(SHARED)" == "1"
148 __DLLFLAG_p_3 = -dWXUSINGDLL
150 !if "$(MONOLITHIC)" == "0"
152 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
154 !if "$(BUILD)" == "debug"
157 !if "$(BUILD)" == "release"
160 !if "$(USE_THREADS)" == "0"
163 !if "$(USE_THREADS)" == "1"
166 !if "$(USE_THREADS)" == "0"
169 !if "$(USE_THREADS)" == "1"
170 __THREADSFLAG_0 = -tWM
172 !if "$(RUNTIME_LIBS)" == "dynamic"
173 __RUNTIME_LIBS = -tWR
175 !if "$(RUNTIME_LIBS)" == "static"
178 !if "$(RUNTIME_LIBS)" == "dynamic"
181 !if "$(RUNTIME_LIBS)" == "static"
184 !if "$(WXUNIV)" == "1"
185 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
187 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
188 __DEBUG_DEFINE_p = -D__WXDEBUG__
190 !if "$(DEBUG_FLAG)" == "1"
191 __DEBUG_DEFINE_p = -D__WXDEBUG__
193 !if "$(USE_EXCEPTIONS)" == "0"
194 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
196 !if "$(USE_RTTI)" == "0"
197 __RTTI_DEFINE_p = -DwxNO_RTTI
199 !if "$(USE_THREADS)" == "0"
200 __THREAD_DEFINE_p = -DwxNO_THREADS
202 !if "$(UNICODE)" == "1"
203 __UNICODE_DEFINE_p = -D_UNICODE
205 !if "$(SHARED)" == "1"
206 __DLLFLAG_p = -DWXUSINGDLL
208 !if "$(MONOLITHIC)" == "0"
210 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
212 !if "$(MONOLITHIC)" == "1"
214 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
216 !if "$(USE_GUI)" == "1"
217 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
219 !if "$(USE_GUI)" == "1"
220 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
222 !if "$(USE_GUI)" == "1"
223 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
226 __UNICOWS_LIB_p = unicows.lib
228 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
231 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
234 !if "$(DEBUG_INFO)" == "0"
237 !if "$(DEBUG_INFO)" == "1"
244 -if not exist $(OBJS) mkdir $(OBJS)
248 all: $(OBJS)\test.exe $(__test_gui___depname) data
251 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
252 -if exist $(OBJS)\*.res del $(OBJS)\*.res
253 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
254 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
255 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
256 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
257 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
258 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
259 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
260 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
261 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
262 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
263 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
264 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
265 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
267 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
268 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
269 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,,
272 !if "$(USE_GUI)" == "1"
273 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
274 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
275 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
280 if not exist $(OBJS) mkdir $(OBJS)
281 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
283 $(OBJS)\test_dummy.obj: .\dummy.cpp
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
286 $(OBJS)\test_test.obj: .\test.cpp
287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
289 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
292 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
295 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
298 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
301 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
304 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
307 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
310 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
313 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
316 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
319 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
322 $(OBJS)\test_lists.obj: .\lists\lists.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
325 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
328 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
329 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
331 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
334 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
337 $(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
338 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
340 $(OBJS)\test_strings.obj: .\strings\strings.cpp
341 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
343 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
344 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
346 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
347 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
349 $(OBJS)\test_crt.obj: .\strings\crt.cpp
350 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
352 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
353 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
355 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
356 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
358 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
359 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
361 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
362 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
364 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
365 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
367 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
368 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
370 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
371 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
373 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
374 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
376 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
377 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
379 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
380 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
382 $(OBJS)\test_uris.obj: .\uris\uris.cpp
383 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
385 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
386 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) -i.\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\samples $**
388 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
389 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
391 $(OBJS)\test_gui_test.obj: .\test.cpp
392 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
394 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
395 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
397 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
398 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
400 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
401 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**