]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.bcc
Documentation patch from Olly Betts
[wxWidgets.git] / tests / makefile.bcc
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 # =========================================================================
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
13 BCCDIR = $(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
24 WX_RELEASE_NODOT = 25
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
29 TEST_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)
33 TEST_OBJECTS = \
34 $(OBJS)\test_test.obj \
35 $(OBJS)\test_main.obj \
36 $(OBJS)\test_formatconverter.obj \
37 $(OBJS)\test_regex.obj \
38 $(OBJS)\test_wxregex.obj \
39 $(OBJS)\test_fileconf.obj \
40 $(OBJS)\test_filename.obj \
41 $(OBJS)\test_filesys.obj \
42 $(OBJS)\test_arrays.obj \
43 $(OBJS)\test_hashes.obj \
44 $(OBJS)\test_longlong.obj \
45 $(OBJS)\test_strings.obj \
46 $(OBJS)\test_stdstrings.obj \
47 $(OBJS)\test_unicode.obj \
48 $(OBJS)\test_crt.obj \
49 $(OBJS)\test_bstream.obj \
50 $(OBJS)\test_ffilestream.obj \
51 $(OBJS)\test_filestream.obj \
52 $(OBJS)\test_memstream.obj \
53 $(OBJS)\test_sstream.obj \
54 $(OBJS)\test_zlibstream.obj \
55 $(OBJS)\test_fontmap.obj \
56 $(OBJS)\test_datetime.obj
57
58 ### Conditionally set variables: ###
59
60 !if "$(USE_GUI)" == "0"
61 PORTNAME = base
62 !endif
63 !if "$(USE_GUI)" == "1"
64 PORTNAME = msw
65 !endif
66 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
67 WXDEBUGFLAG = d
68 !endif
69 !if "$(DEBUG_FLAG)" == "1"
70 WXDEBUGFLAG = d
71 !endif
72 !if "$(UNICODE)" == "1"
73 WXUNICODEFLAG = u
74 !endif
75 !if "$(WXUNIV)" == "1"
76 WXUNIVNAME = univ
77 !endif
78 !if "$(SHARED)" == "1"
79 WXDLLFLAG = 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"
115 __WXLIB_BASE_p = \
116 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
117 !endif
118 !if "$(MONOLITHIC)" == "1"
119 __WXLIB_MONO_p = \
120 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
121 !endif
122 !if "$(USE_GUI)" == "1"
123 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
124 !endif
125 !if "$(USE_GUI)" == "1"
126 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
127 !endif
128 !if "$(USE_GUI)" == "1"
129 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
130 !endif
131 !if "$(MSLU)" == "1"
132 __UNICOWS_LIB_p = unicows.lib
133 !endif
134 !if "$(SHARED)" == "0"
135 LIBDIRNAME = .\..\lib\bcc_lib$(CFG)
136 !endif
137 !if "$(SHARED)" == "1"
138 LIBDIRNAME = .\..\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
154 all: $(OBJS)
155 $(OBJS):
156 -if not exist $(OBJS) mkdir $(OBJS)
157
158 ### Targets: ###
159
160 all: $(OBJS)\test.exe data
161
162 clean:
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) @&&|
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,,
175 |
176
177 data:
178 if not exist $(OBJS) mkdir $(OBJS)
179 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
180
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) $**
186
187 $(OBJS)\test_formatconverter.obj: .\formatconverter\formatconverter.cpp
188 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
189
190 $(OBJS)\test_regex.obj: .\regex\regex.cpp
191 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
192
193 $(OBJS)\test_wxregex.obj: .\regex\wxregex.cpp
194 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
195
196 $(OBJS)\test_fileconf.obj: .\fileconf\fileconf.cpp
197 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
198
199 $(OBJS)\test_filename.obj: .\filename\filename.cpp
200 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
201
202 $(OBJS)\test_filesys.obj: .\filesys\filesys.cpp
203 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
204
205 $(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
206 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
207
208 $(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
209 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
210
211 $(OBJS)\test_longlong.obj: .\longlong\longlong.cpp
212 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
213
214 $(OBJS)\test_strings.obj: .\strings\strings.cpp
215 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
216
217 $(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
218 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
219
220 $(OBJS)\test_unicode.obj: .\strings\unicode.cpp
221 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
222
223 $(OBJS)\test_crt.obj: .\strings\crt.cpp
224 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
225
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
238 $(OBJS)\test_sstream.obj: .\streams\sstream.cpp
239 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
240
241 $(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
242 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
243
244 $(OBJS)\test_fontmap.obj: .\fontmap\fontmap.cpp
245 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**
246
247 $(OBJS)\test_datetime.obj: .\datetime\datetime.cpp
248 $(CXX) -q -c -P -o$@ $(TEST_CXXFLAGS) $**