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 # =========================================================================
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) $(__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)
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 \
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)
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
81 ### Conditionally set variables: ###
83 !if "$(USE_GUI)" == "0"
86 !if "$(USE_GUI)" == "1"
89 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
92 !if "$(DEBUG_FLAG)" == "1"
95 !if "$(UNICODE)" == "1"
98 !if "$(WXUNIV)" == "1"
101 !if "$(SHARED)" == "1"
104 !if "$(SHARED)" == "0"
107 !if "$(SHARED)" == "1"
110 !if "$(MONOLITHIC)" == "0"
113 !if "$(MONOLITHIC)" == "1"
116 !if "$(MONOLITHIC)" == "0"
118 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
120 !if "$(USE_GUI)" == "1"
121 __test_gui___depname = $(OBJS)\test_gui.exe
123 !if "$(WXUNIV)" == "1"
124 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
126 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
127 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
129 !if "$(DEBUG_FLAG)" == "1"
130 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
132 !if "$(UNICODE)" == "1"
133 __UNICODE_DEFINE_p_3 = -d_UNICODE
135 !if "$(SHARED)" == "1"
136 __DLLFLAG_p_3 = -dWXUSINGDLL
138 !if "$(MONOLITHIC)" == "0"
140 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
142 !if "$(BUILD)" == "debug"
145 !if "$(BUILD)" == "release"
148 !if "$(USE_THREADS)" == "0"
151 !if "$(USE_THREADS)" == "1"
154 !if "$(USE_THREADS)" == "0"
157 !if "$(USE_THREADS)" == "1"
158 __THREADSFLAG_0 = -tWM
160 !if "$(RUNTIME_LIBS)" == "dynamic"
161 __RUNTIME_LIBS = -tWR
163 !if "$(RUNTIME_LIBS)" == "static"
166 !if "$(RUNTIME_LIBS)" == "dynamic"
169 !if "$(RUNTIME_LIBS)" == "static"
172 !if "$(WXUNIV)" == "1"
173 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
175 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
176 __DEBUG_DEFINE_p = -D__WXDEBUG__
178 !if "$(DEBUG_FLAG)" == "1"
179 __DEBUG_DEFINE_p = -D__WXDEBUG__
181 !if "$(UNICODE)" == "1"
182 __UNICODE_DEFINE_p = -D_UNICODE
184 !if "$(SHARED)" == "1"
185 __DLLFLAG_p = -DWXUSINGDLL
187 !if "$(MONOLITHIC)" == "0"
189 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
191 !if "$(MONOLITHIC)" == "1"
193 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
195 !if "$(USE_GUI)" == "1"
196 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
198 !if "$(USE_GUI)" == "1"
199 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
201 !if "$(USE_GUI)" == "1"
202 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
205 __UNICOWS_LIB_p = unicows.lib
207 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
210 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
213 !if "$(DEBUG_INFO)" == "0"
216 !if "$(DEBUG_INFO)" == "1"
223 -if not exist $(OBJS) mkdir $(OBJS)
227 all: $(OBJS)\test.exe $(__test_gui___depname) data
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
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,,
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
259 if not exist $(OBJS) mkdir $(OBJS)
260 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
262 $(OBJS)\test_dummy.obj: .\dummy.cpp
263 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
265 $(OBJS)\test_test.obj: .\test.cpp
266 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
268 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
269 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
271 $(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
272 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
274 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
275 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
277 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
278 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
280 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
281 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
283 $(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
286 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
289 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
292 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
295 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
298 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
301 $(OBJS)\test_lists.obj: .\lists\lists.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
304 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
307 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
310 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
313 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
316 $(OBJS)\test_strings.obj: .\strings\strings.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
319 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
322 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
325 $(OBJS)\test_crt.obj: .\strings\crt.cpp
326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
328 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
329 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
331 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
334 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
337 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
338 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
340 $(OBJS)\test_largefile.obj: .\streams\largefile.cpp
341 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
343 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
344 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
346 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
347 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
349 $(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
350 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
352 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
353 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
355 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
356 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
358 $(OBJS)\test_uris.obj: .\uris\uris.cpp
359 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
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 $**
364 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
365 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
367 $(OBJS)\test_gui_test.obj: .\test.cpp
368 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
370 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
371 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
373 $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
374 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
376 $(OBJS)\test_gui_point.obj: .\geometry\point.cpp
377 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**