]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.bcc
fixed SaveDIB() crash with BW images (patch 1045884)
[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 \
70 $(OBJS)\test_gui_test.obj
670ec357
VS
71
72### Conditionally set variables: ###
73
74!if "$(USE_GUI)" == "0"
75PORTNAME = base
76!endif
77!if "$(USE_GUI)" == "1"
78PORTNAME = msw
79!endif
80!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
81WXDEBUGFLAG = d
82!endif
83!if "$(DEBUG_FLAG)" == "1"
84WXDEBUGFLAG = d
85!endif
86!if "$(UNICODE)" == "1"
87WXUNICODEFLAG = u
88!endif
89!if "$(WXUNIV)" == "1"
90WXUNIVNAME = univ
91!endif
92!if "$(SHARED)" == "1"
93WXDLLFLAG = dll
94!endif
dd65d8c8
RN
95!if "$(MONOLITHIC)" == "0"
96EXTRALIBS_FOR_BASE =
97!endif
98!if "$(MONOLITHIC)" == "1"
99EXTRALIBS_FOR_BASE =
100!endif
a0744a6b
VS
101!if "$(MONOLITHIC)" == "0"
102__WXLIB_NET_p = \
103 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
104!endif
105!if "$(USE_GUI)" == "1"
106__test_gui___depname = $(OBJS)\test_gui.exe
107!endif
108!if "$(WXUNIV)" == "1"
109__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
110!endif
111!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
112__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
113!endif
114!if "$(DEBUG_FLAG)" == "1"
115__DEBUG_DEFINE_p_3 = -d__WXDEBUG__
116!endif
117!if "$(UNICODE)" == "1"
118__UNICODE_DEFINE_p_3 = -d_UNICODE
119!endif
120!if "$(SHARED)" == "1"
121__DLLFLAG_p_3 = -dWXUSINGDLL
122!endif
123!if "$(MONOLITHIC)" == "0"
124__WXLIB_CORE_p = \
125 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
126!endif
670ec357 127!if "$(BUILD)" == "debug"
a0744a6b 128__OPTIMIZEFLAG = -Od
670ec357
VS
129!endif
130!if "$(BUILD)" == "release"
a0744a6b 131__OPTIMIZEFLAG = -O2
670ec357
VS
132!endif
133!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 134__RUNTIME_LIBS = -tWR
670ec357
VS
135!endif
136!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 137__RUNTIME_LIBS =
670ec357
VS
138!endif
139!if "$(RUNTIME_LIBS)" == "dynamic"
a0744a6b 140__RUNTIME_LIBS_0 = i
670ec357
VS
141!endif
142!if "$(RUNTIME_LIBS)" == "static"
a0744a6b 143__RUNTIME_LIBS_0 =
670ec357
VS
144!endif
145!if "$(WXUNIV)" == "1"
146__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
147!endif
148!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
149__DEBUG_DEFINE_p = -D__WXDEBUG__
150!endif
151!if "$(DEBUG_FLAG)" == "1"
152__DEBUG_DEFINE_p = -D__WXDEBUG__
153!endif
154!if "$(UNICODE)" == "1"
155__UNICODE_DEFINE_p = -D_UNICODE
156!endif
a0744a6b
VS
157!if "$(SHARED)" == "0"
158LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
159!endif
670ec357 160!if "$(SHARED)" == "1"
a0744a6b 161LIBDIRNAME = .\..\lib\bcc_dll$(CFG)
670ec357 162!endif
a0744a6b
VS
163!if "$(SHARED)" == "1"
164__DLLFLAG_p = -DWXUSINGDLL
113e181a
RN
165!endif
166!if "$(MONOLITHIC)" == "0"
c33fae85
RN
167__WXLIB_BASE_p = \
168 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
169!endif
170!if "$(MONOLITHIC)" == "1"
171__WXLIB_MONO_p = \
c33fae85 172 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
173!endif
174!if "$(USE_GUI)" == "1"
9c2d002b 175__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
176!endif
177!if "$(USE_GUI)" == "1"
9c2d002b 178__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
179!endif
180!if "$(USE_GUI)" == "1"
9c2d002b 181__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
182!endif
183!if "$(MSLU)" == "1"
184__UNICOWS_LIB_p = unicows.lib
185!endif
670ec357
VS
186!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
187__DEBUGINFO = -v
188!endif
189!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
190__DEBUGINFO = -v-
191!endif
192!if "$(DEBUG_INFO)" == "0"
193__DEBUGINFO = -v-
194!endif
195!if "$(DEBUG_INFO)" == "1"
196__DEBUGINFO = -v
197!endif
198
199
200all: $(OBJS)
201$(OBJS):
202 -if not exist $(OBJS) mkdir $(OBJS)
203
204### Targets: ###
205
a0744a6b 206all: $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
207
208clean:
209 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
210 -if exist $(OBJS)\*.res del $(OBJS)\*.res
211 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
212 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
213 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
214 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
215 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
216 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
a0744a6b
VS
217 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
218 -if exist $(OBJS)\test_gui.tds del $(OBJS)\test_gui.tds
219 -if exist $(OBJS)\test_gui.ilc del $(OBJS)\test_gui.ilc
220 -if exist $(OBJS)\test_gui.ild del $(OBJS)\test_gui.ild
221 -if exist $(OBJS)\test_gui.ilf del $(OBJS)\test_gui.ilf
222 -if exist $(OBJS)\test_gui.ils del $(OBJS)\test_gui.ils
670ec357 223
8899b155 224$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
670ec357 225 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
a0744a6b
VS
226 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,,
227|
228
229!if "$(USE_GUI)" == "1"
230$(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
231 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(CPPUNIT_LIBS) @&&|
232 c0w32.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 233|
a0744a6b 234!endif
670ec357 235
387f829e
VS
236data:
237 if not exist $(OBJS) mkdir $(OBJS)
238 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
239
8899b155
RN
240$(OBJS)\test_dummy.obj: .\dummy.cpp
241 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) -H $**
242
670ec357
VS
243$(OBJS)\test_test.obj: .\test.cpp
244 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
245
8899b155
RN
246$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
247 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
248
dd65d8c8 249$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 250 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
4827cbd9 251
113e181a 252$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
253 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
254
113e181a 255$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
256 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
257
113e181a 258$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
3fa86423
WS
259 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
260
113e181a 261$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
4827cbd9 262 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
cf1014a2 263
113e181a 264$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
265 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
266
113e181a 267$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 268 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
1b035b8c 269
f9c3d39b
MB
270$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
271 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
272
7d9cfc54
MB
273$(OBJS)\test_lists.obj: .\lists\lists.cpp
274 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
275
113e181a 276$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 277 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
7735998c 278
113e181a 279$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
280 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
281
113e181a 282$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
283 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
284
113e181a 285$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
286 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
287
1cd53e88
VS
288$(OBJS)\test_strings.obj: .\strings\strings.cpp
289 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
290
405b7d91
WS
291$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
292 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
293
387f829e
VS
294$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
295 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
296
cf8ee08b
VS
297$(OBJS)\test_crt.obj: .\strings\crt.cpp
298 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
299
7735998c
VS
300$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
301 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
302
7d9cfc54
MB
303$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
304 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
305
7735998c
VS
306$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
307 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
308
309$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
310 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
311
312$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
313 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
314
c33fae85
RN
315$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
316 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
317
8899b155
RN
318$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
319 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
320
7735998c
VS
321$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
322 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
816b59de 323
dd65d8c8 324$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 325 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
a0744a6b
VS
326
327$(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
328 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 $**
329
330$(OBJS)\test_gui_dummy.obj: .\dummy.cpp
331 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) -H $**
332
333$(OBJS)\test_gui_test.obj: .\test.cpp
334 $(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) $**