]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.bcc
updated after moving xrc to the core
[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)
29TEST_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
30 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
31 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -I. \
32 $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) $(CPPFLAGS) $(CXXFLAGS)
33TEST_OBJECTS = \
34 $(OBJS)\test_test.obj \
e70833fb 35 $(OBJS)\test_main.obj \
7d5ab151 36 $(OBJS)\test_formatconverter.obj \
4827cbd9 37 $(OBJS)\test_regex.obj \
bc10103e 38 $(OBJS)\test_wxregex.obj \
ab921f5f 39 $(OBJS)\test_fileconf.obj \
3fa86423 40 $(OBJS)\test_filename.obj \
cf1014a2 41 $(OBJS)\test_filesys.obj \
1b035b8c 42 $(OBJS)\test_arrays.obj \
f9c3d39b 43 $(OBJS)\test_hashes.obj \
7735998c 44 $(OBJS)\test_longlong.obj \
1cd53e88 45 $(OBJS)\test_strings.obj \
405b7d91 46 $(OBJS)\test_stdstrings.obj \
387f829e 47 $(OBJS)\test_unicode.obj \
cf8ee08b 48 $(OBJS)\test_crt.obj \
7735998c
VS
49 $(OBJS)\test_bstream.obj \
50 $(OBJS)\test_ffilestream.obj \
51 $(OBJS)\test_filestream.obj \
52 $(OBJS)\test_memstream.obj \
c33fae85 53 $(OBJS)\test_sstream.obj \
816b59de 54 $(OBJS)\test_zlibstream.obj \
edcccd84
WS
55 $(OBJS)\test_fontmap.obj \
56 $(OBJS)\test_datetime.obj
670ec357
VS
57
58### Conditionally set variables: ###
59
60!if "$(USE_GUI)" == "0"
61PORTNAME = base
62!endif
63!if "$(USE_GUI)" == "1"
64PORTNAME = msw
65!endif
66!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67WXDEBUGFLAG = d
68!endif
69!if "$(DEBUG_FLAG)" == "1"
70WXDEBUGFLAG = d
71!endif
72!if "$(UNICODE)" == "1"
73WXUNICODEFLAG = u
74!endif
75!if "$(WXUNIV)" == "1"
76WXUNIVNAME = univ
77!endif
78!if "$(SHARED)" == "1"
79WXDLLFLAG = dll
80!endif
81!if "$(BUILD)" == "debug"
82__OPTIMIZEFLAG_2 = -Od
83!endif
84!if "$(BUILD)" == "release"
85__OPTIMIZEFLAG_2 = -O2
86!endif
87!if "$(RUNTIME_LIBS)" == "dynamic"
88__RUNTIME_LIBS_6 = -tWR
89!endif
90!if "$(RUNTIME_LIBS)" == "static"
91__RUNTIME_LIBS_6 =
92!endif
93!if "$(RUNTIME_LIBS)" == "dynamic"
94__RUNTIME_LIBS_7 = i
95!endif
96!if "$(RUNTIME_LIBS)" == "static"
97__RUNTIME_LIBS_7 =
98!endif
99!if "$(WXUNIV)" == "1"
100__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
101!endif
102!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104!endif
105!if "$(DEBUG_FLAG)" == "1"
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107!endif
108!if "$(UNICODE)" == "1"
109__UNICODE_DEFINE_p = -D_UNICODE
110!endif
111!if "$(SHARED)" == "1"
112__DLLFLAG_p = -DWXUSINGDLL
113!endif
114!if "$(MONOLITHIC)" == "0"
c33fae85
RN
115__WXLIB_BASE_p = \
116 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
117!endif
118!if "$(MONOLITHIC)" == "1"
119__WXLIB_MONO_p = \
c33fae85 120 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
121!endif
122!if "$(USE_GUI)" == "1"
9c2d002b 123__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
124!endif
125!if "$(USE_GUI)" == "1"
9c2d002b 126__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
127!endif
128!if "$(USE_GUI)" == "1"
9c2d002b 129__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
130!endif
131!if "$(MSLU)" == "1"
132__UNICOWS_LIB_p = unicows.lib
133!endif
134!if "$(SHARED)" == "0"
135LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
136!endif
137!if "$(SHARED)" == "1"
138LIBDIRNAME = .\..\lib\bcc_dll$(CFG)
139!endif
140!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
141__DEBUGINFO = -v
142!endif
143!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
144__DEBUGINFO = -v-
145!endif
146!if "$(DEBUG_INFO)" == "0"
147__DEBUGINFO = -v-
148!endif
149!if "$(DEBUG_INFO)" == "1"
150__DEBUGINFO = -v
151!endif
152
153
154all: $(OBJS)
155$(OBJS):
156 -if not exist $(OBJS) mkdir $(OBJS)
157
158### Targets: ###
159
387f829e 160all: $(OBJS)\test.exe data
670ec357
VS
161
162clean:
163 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
164 -if exist $(OBJS)\*.res del $(OBJS)\*.res
165 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
166 -if exist $(OBJS)\test.tds del $(OBJS)\test.tds
167 -if exist $(OBJS)\test.ilc del $(OBJS)\test.ilc
168 -if exist $(OBJS)\test.ild del $(OBJS)\test.ild
169 -if exist $(OBJS)\test.ilf del $(OBJS)\test.ilf
170 -if exist $(OBJS)\test.ils del $(OBJS)\test.ils
171
172$(OBJS)\test.exe: $(TEST_OBJECTS)
173 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(CPPUNIT_LIBS) @&&|
9c2d002b 174 c0x32.obj $(TEST_OBJECTS),$@,, $(__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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
670ec357
VS
175|
176
387f829e
VS
177data:
178 if not exist $(OBJS) mkdir $(OBJS)
179 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
180
670ec357
VS
181$(OBJS)\test_test.obj: .\test.cpp
182 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
183
184$(OBJS)\test_main.obj: .\mbconv\main.cpp
185 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
e70833fb 186
7d5ab151
VS
187$(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
188 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
189
e70833fb
VS
190$(OBJS)\test_regex.obj: .\regex\regex.cpp
191 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
4827cbd9 192
bc10103e
VS
193$(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
194 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
195
ab921f5f
RN
196$(OBJS)\test_fileconf.obj: .\fileconf\fileconf.cpp
197 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
198
3fa86423
WS
199$(OBJS)\test_filename.obj: .\filename\filename.cpp
200 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
201
4827cbd9
VS
202$(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
203 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
cf1014a2
VS
204
205$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
206 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
1b035b8c 207
f9c3d39b
MB
208$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
209 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
210
1b035b8c
VS
211$(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
212 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
7735998c 213
1cd53e88
VS
214$(OBJS)\test_strings.obj: .\strings\strings.cpp
215 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
216
405b7d91
WS
217$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
218 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
219
387f829e
VS
220$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
221 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
222
cf8ee08b
VS
223$(OBJS)\test_crt.obj: .\strings\crt.cpp
224 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
225
7735998c
VS
226$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
227 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
228
229$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
230 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
231
232$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
233 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
234
235$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
236 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
237
c33fae85
RN
238$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
239 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
240
7735998c
VS
241$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
242 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
816b59de
VS
243
244$(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
245 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
edcccd84
WS
246
247$(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**