]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.bcc
Remove tab sample as per 2.6 wiki todo
[wxWidgets.git] / tests / makefile.bcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
1b035b8c 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
670ec357
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7.autodepend
8
9!ifndef BCCDIR
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
670ec357
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a0744a6b
VS
29TEST_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)
670ec357 33TEST_OBJECTS = \
8899b155 34 $(OBJS)\test_dummy.obj \
670ec357 35 $(OBJS)\test_test.obj \
8899b155 36 $(OBJS)\test_archivetest.obj \
dd65d8c8 37 $(OBJS)\test_arrays.obj \
113e181a
RN
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 \
f9c3d39b 44 $(OBJS)\test_hashes.obj \
7d9cfc54 45 $(OBJS)\test_lists.obj \
113e181a
RN
46 $(OBJS)\test_longlongtest.obj \
47 $(OBJS)\test_mbconvtest.obj \
48 $(OBJS)\test_regextest.obj \
49 $(OBJS)\test_wxregextest.obj \
1cd53e88 50 $(OBJS)\test_strings.obj \
405b7d91 51 $(OBJS)\test_stdstrings.obj \
387f829e 52 $(OBJS)\test_unicode.obj \
cf8ee08b 53 $(OBJS)\test_crt.obj \
7735998c 54 $(OBJS)\test_bstream.obj \
7d9cfc54 55 $(OBJS)\test_datastreamtest.obj \
7735998c
VS
56 $(OBJS)\test_ffilestream.obj \
57 $(OBJS)\test_filestream.obj \
58 $(OBJS)\test_memstream.obj \
c33fae85 59 $(OBJS)\test_sstream.obj \
8899b155 60 $(OBJS)\test_textstreamtest.obj \
816b59de 61 $(OBJS)\test_zlibstream.obj \
dd65d8c8 62 $(OBJS)\test_uris.obj
a0744a6b
VS
63TEST_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)
68TEST_GUI_OBJECTS = \
69 $(OBJS)\test_gui_dummy.obj \
98a50e20
VS
70 $(OBJS)\test_gui_test.obj \
71 $(OBJS)\test_gui_rect.obj
670ec357
VS
72
73### Conditionally set variables: ###
74
75!if "$(USE_GUI)" == "0"
76PORTNAME = base
77!endif
78!if "$(USE_GUI)" == "1"
79PORTNAME = msw
80!endif
81!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82WXDEBUGFLAG = d
83!endif
84!if "$(DEBUG_FLAG)" == "1"
85WXDEBUGFLAG = d
86!endif
87!if "$(UNICODE)" == "1"
88WXUNICODEFLAG = u
89!endif
90!if "$(WXUNIV)" == "1"
91WXUNIVNAME = univ
92!endif
93!if "$(SHARED)" == "1"
94WXDLLFLAG = dll
95!endif
dd65d8c8
RN
96!if "$(MONOLITHIC)" == "0"
97EXTRALIBS_FOR_BASE =
98!endif
99!if "$(MONOLITHIC)" == "1"
100EXTRALIBS_FOR_BASE =
101!endif
a0744a6b
VS
102!if "$(MONOLITHIC)" == "0"
103__WXLIB_NET_p = \
104 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
105!endif
106!if "$(USE_GUI)" == "1"
107__test_gui___depname = $(OBJS)\test_gui.exe
108!endif
109!if "$(WXUNIV)" == "1"
110__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
111!endif
112!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
114!endif
115!if "$(DEBUG_FLAG)" == "1"
116__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
117!endif
118!if "$(UNICODE)" == "1"
119__UNICODE_DEFINE_p_3 = -d_UNICODE
120!endif
121!if "$(SHARED)" == "1"
122__DLLFLAG_p_3 = -dWXUSINGDLL
123!endif
124!if "$(MONOLITHIC)" == "0"
125__WXLIB_CORE_p = \
126 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
127!endif
670ec357 128!if "$(BUILD)" == "debug"
a0744a6b 129__OPTIMIZEFLAG = -Od
670ec357
VS
130!endif
131!if "$(BUILD)" == "release"
a0744a6b 132__OPTIMIZEFLAG = -O2
670ec357
VS
133!endif
134!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 135__RUNTIME_LIBS = -tWR
670ec357
VS
136!endif
137!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 138__RUNTIME_LIBS =
670ec357
VS
139!endif
140!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 141__RUNTIME_LIBS_0 = i
670ec357
VS
142!endif
143!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 144__RUNTIME_LIBS_0 =
670ec357
VS
145!endif
146!if "$(WXUNIV)" == "1"
147__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
148!endif
149!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
150__DEBUG_DEFINE_p = -D__WXDEBUG__
151!endif
152!if "$(DEBUG_FLAG)" == "1"
153__DEBUG_DEFINE_p = -D__WXDEBUG__
154!endif
155!if "$(UNICODE)" == "1"
156__UNICODE_DEFINE_p = -D_UNICODE
157!endif
a0744a6b
VS
158!if "$(SHARED)" == "0"
159LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
160!endif
670ec357 161!if "$(SHARED)" == "1"
a0744a6b 162LIBDIRNAME = .\..\lib\bcc_dll$(CFG)
670ec357 163!endif
a0744a6b
VS
164!if "$(SHARED)" == "1"
165__DLLFLAG_p = -DWXUSINGDLL
113e181a
RN
166!endif
167!if "$(MONOLITHIC)" == "0"
c33fae85
RN
168__WXLIB_BASE_p = \
169 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
170!endif
171!if "$(MONOLITHIC)" == "1"
172__WXLIB_MONO_p = \
c33fae85 173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
174!endif
175!if "$(USE_GUI)" == "1"
9c2d002b 176__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
177!endif
178!if "$(USE_GUI)" == "1"
9c2d002b 179__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
180!endif
181!if "$(USE_GUI)" == "1"
9c2d002b 182__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
183!endif
184!if "$(MSLU)" == "1"
185__UNICOWS_LIB_p = unicows.lib
186!endif
670ec357
VS
187!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
188__DEBUGINFO = -v
189!endif
190!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
191__DEBUGINFO = -v-
192!endif
193!if "$(DEBUG_INFO)" == "0"
194__DEBUGINFO = -v-
195!endif
196!if "$(DEBUG_INFO)" == "1"
197__DEBUGINFO = -v
198!endif
199
200
201all: $(OBJS)
202$(OBJS):
203 -if not exist $(OBJS) mkdir $(OBJS)
204
205### Targets: ###
206
a0744a6b 207all: $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
208
209clean:
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
a0744a6b
VS
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
670ec357 224
8899b155 225$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
670ec357 226 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
a0744a6b
VS
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,,
228|
229
230!if "$(USE_GUI)" == "1"
231$(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
98a50e20
VS
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
670ec357 234|
a0744a6b 235!endif
670ec357 236
387f829e
VS
237data:
238 if not exist $(OBJS) mkdir $(OBJS)
239 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
240
8899b155
RN
241$(OBJS)\test_dummy.obj: .\dummy.cpp
242 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
243
670ec357
VS
244$(OBJS)\test_test.obj: .\test.cpp
245 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
246
8899b155
RN
247$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
249
dd65d8c8 250$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 251 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
4827cbd9 252
113e181a 253$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
254 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
255
113e181a 256$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
257 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
258
113e181a 259$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
3fa86423
WS
260 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
261
113e181a 262$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
4827cbd9 263 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
cf1014a2 264
113e181a 265$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
266 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
267
113e181a 268$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 269 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
1b035b8c 270
f9c3d39b
MB
271$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
272 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
273
7d9cfc54
MB
274$(OBJS)\test_lists.obj: .\lists\lists.cpp
275 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
276
113e181a 277$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 278 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
7735998c 279
113e181a 280$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
281 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
282
113e181a 283$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
284 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
285
113e181a 286$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
287 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
288
1cd53e88
VS
289$(OBJS)\test_strings.obj: .\strings\strings.cpp
290 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
291
405b7d91
WS
292$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
293 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
294
387f829e
VS
295$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
296 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
297
cf8ee08b
VS
298$(OBJS)\test_crt.obj: .\strings\crt.cpp
299 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
300
7735998c
VS
301$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
302 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
303
7d9cfc54
MB
304$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
305 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
306
7735998c
VS
307$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
308 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
309
310$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
311 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
312
313$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
314 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
315
c33fae85
RN
316$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
317 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
318
8899b155
RN
319$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
320 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
321
7735998c
VS
322$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
323 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
816b59de 324
dd65d8c8 325$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 326 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
a0744a6b
VS
327
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 $**
330
331$(OBJS)\test_gui_dummy.obj: .\dummy.cpp
332 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
333
334$(OBJS)\test_gui_test.obj: .\test.cpp
335 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**
98a50e20
VS
336
337$(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
338 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**