1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
29 TEST_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
30 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
32 $(CPPUNIT_CFLAGS) -Hu -H=$(OBJS)\testprec_test.csm $(CPPFLAGS) $(CXXFLAGS)
34 $(OBJS)\test_dummy.obj \
35 $(OBJS)\test_test.obj \
36 $(OBJS)\test_archivetest.obj \
37 $(OBJS)\test_arrays.obj \
38 $(OBJS)\test_datetimetest.obj \
39 $(OBJS)\test_fileconftest.obj \
40 $(OBJS)\test_filenametest.obj \
41 $(OBJS)\test_filesystest.obj \
42 $(OBJS)\test_fontmaptest.obj \
43 $(OBJS)\test_formatconvertertest.obj \
44 $(OBJS)\test_hashes.obj \
45 $(OBJS)\test_lists.obj \
46 $(OBJS)\test_longlongtest.obj \
47 $(OBJS)\test_mbconvtest.obj \
48 $(OBJS)\test_regextest.obj \
49 $(OBJS)\test_wxregextest.obj \
50 $(OBJS)\test_strings.obj \
51 $(OBJS)\test_stdstrings.obj \
52 $(OBJS)\test_unicode.obj \
53 $(OBJS)\test_crt.obj \
54 $(OBJS)\test_bstream.obj \
55 $(OBJS)\test_datastreamtest.obj \
56 $(OBJS)\test_ffilestream.obj \
57 $(OBJS)\test_filestream.obj \
58 $(OBJS)\test_memstream.obj \
59 $(OBJS)\test_sstream.obj \
60 $(OBJS)\test_textstreamtest.obj \
61 $(OBJS)\test_zlibstream.obj \
63 TEST_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
64 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
65 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
66 -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) -Hu \
67 -H=$(OBJS)\testprec_test_gui.csm $(CPPFLAGS) $(CXXFLAGS)
69 $(OBJS)\test_gui_dummy.obj \
70 $(OBJS)\test_gui_test.obj \
71 $(OBJS)\test_gui_rect.obj
73 ### Conditionally set variables: ###
75 !if "$(USE_GUI)" == "0"
78 !if "$(USE_GUI)" == "1"
81 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
84 !if "$(DEBUG_FLAG)" == "1"
87 !if "$(UNICODE)" == "1"
90 !if "$(WXUNIV)" == "1"
93 !if "$(SHARED)" == "1"
96 !if "$(MONOLITHIC)" == "0"
99 !if "$(MONOLITHIC)" == "1"
102 !if "$(MONOLITHIC)" == "0"
104 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
106 !if "$(USE_GUI)" == "1"
107 __test_gui___depname = $(OBJS)\test_gui.exe
109 !if "$(WXUNIV)" == "1"
110 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p_3 = -d_UNICODE
121 !if "$(SHARED)" == "1"
122 __DLLFLAG_p_3 = -dWXUSINGDLL
124 !if "$(MONOLITHIC)" == "0"
126 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
128 !if "$(BUILD)" == "debug"
131 !if "$(BUILD)" == "release"
134 !if "$(RUNTIME_LIBS)" == "dynamic"
135 __RUNTIME_LIBS = -tWR
137 !if "$(RUNTIME_LIBS)" == "static"
140 !if "$(RUNTIME_LIBS)" == "dynamic"
143 !if "$(RUNTIME_LIBS)" == "static"
146 !if "$(WXUNIV)" == "1"
147 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
149 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
150 __DEBUG_DEFINE_p = -D__WXDEBUG__
152 !if "$(DEBUG_FLAG)" == "1"
153 __DEBUG_DEFINE_p = -D__WXDEBUG__
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p = -D_UNICODE
158 !if "$(SHARED)" == "0"
159 LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
161 !if "$(SHARED)" == "1"
162 LIBDIRNAME = .\..\lib\bcc_dll$(CFG)
164 !if "$(SHARED)" == "1"
165 __DLLFLAG_p = -DWXUSINGDLL
167 !if "$(MONOLITHIC)" == "0"
169 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
171 !if "$(MONOLITHIC)" == "1"
173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
175 !if "$(USE_GUI)" == "1"
176 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
178 !if "$(USE_GUI)" == "1"
179 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
181 !if "$(USE_GUI)" == "1"
182 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
185 __UNICOWS_LIB_p = unicows.lib
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193 !if "$(DEBUG_INFO)" == "0"
196 !if "$(DEBUG_INFO)" == "1"
203 -if not exist $(OBJS) mkdir $(OBJS)
207 all: $(OBJS)\test.exe $(__test_gui___depname) data
210 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
211 -if exist $(OBJS)\*.res del $(OBJS)\*.res
212 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
213 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
214 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
215 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
216 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
217 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
218 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
219 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
220 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
221 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
222 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
223 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
225 $(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
226 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
227 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 cw32mt$(__RUNTIME_LIBS_0).lib,,
230 !if "$(USE_GUI)" == "1"
231 $(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
232 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(CPPUNIT_LIBS) -ap @&&|
233 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 cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\test_gui_sample.res
238 if not exist $(OBJS) mkdir $(OBJS)
239 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
241 $(OBJS)\test_dummy.obj: .\dummy.cpp
242 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
244 $(OBJS)\test_test.obj: .\test.cpp
245 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
247 $(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
250 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
251 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
253 $(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
254 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
256 $(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
257 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
259 $(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
260 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
262 $(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
263 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
265 $(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
266 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
268 $(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
269 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
271 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
272 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
274 $(OBJS)\test_lists.obj: .\lists\lists.cpp
275 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
277 $(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
278 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
280 $(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
281 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
283 $(OBJS)\test_regextest.obj: .\regex\regextest.cpp
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
286 $(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
289 $(OBJS)\test_strings.obj: .\strings\strings.cpp
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
292 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
295 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
298 $(OBJS)\test_crt.obj: .\strings\crt.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
301 $(OBJS)\test_bstream.obj: .\streams\bstream.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
304 $(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
307 $(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
310 $(OBJS)\test_filestream.obj: .\streams\filestream.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
313 $(OBJS)\test_memstream.obj: .\streams\memstream.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
316 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
319 $(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
322 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
325 $(OBJS)\test_uris.obj: .\uris\uris.cpp
326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
328 $(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
329 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 $**
331 $(OBJS)\test_gui_dummy.obj: .\dummy.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
334 $(OBJS)\test_gui_test.obj: .\test.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
337 $(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
338 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**