]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/makefile.wat
24x24 bitmaps and separator for flat style added
[wxWidgets.git] / tests / makefile.wat
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include ../build/msw/config.wat
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13# Speed up compilation a bit:
14!ifdef __LOADDLL__
15! loaddll wcc wccd
16! loaddll wccaxp wccdaxp
17! loaddll wcc386 wccd386
18! loaddll wpp wppdi86
19! loaddll wppaxp wppdaxp
20! loaddll wpp386 wppd386
21! loaddll wlink wlink
22! loaddll wlib wlibd
23!endif
24
25# We need these variables in some bakefile-made rules:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
58LIBTYPE_SUFFIX =
59!ifeq SHARED 0
60LIBTYPE_SUFFIX = lib
61!endif
62!ifeq SHARED 1
63LIBTYPE_SUFFIX = dll
64!endif
65EXTRALIBS_FOR_BASE =
66!ifeq MONOLITHIC 0
67EXTRALIBS_FOR_BASE =
68!endif
69!ifeq MONOLITHIC 1
70EXTRALIBS_FOR_BASE =
71!endif
72__WXLIB_NET_p =
73!ifeq MONOLITHIC 0
74__WXLIB_NET_p = &
75 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
76!endif
77__test_gui___depname =
78!ifeq USE_GUI 1
79__test_gui___depname = $(OBJS)\test_gui.exe
80!endif
81__WXLIB_CORE_p =
82!ifeq MONOLITHIC 0
83__WXLIB_CORE_p = &
84 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
85!endif
86__DEBUGINFO =
87!ifeq BUILD debug
88!ifeq DEBUG_INFO default
89__DEBUGINFO = -d2
90!endif
91!endif
92!ifeq BUILD release
93!ifeq DEBUG_INFO default
94__DEBUGINFO = -d0
95!endif
96!endif
97!ifeq DEBUG_INFO 0
98__DEBUGINFO = -d0
99!endif
100!ifeq DEBUG_INFO 1
101__DEBUGINFO = -d2
102!endif
103__DEBUGINFO_1 =
104!ifeq BUILD debug
105!ifeq DEBUG_INFO default
106__DEBUGINFO_1 = debug all
107!endif
108!endif
109!ifeq BUILD release
110!ifeq DEBUG_INFO default
111__DEBUGINFO_1 =
112!endif
113!endif
114!ifeq DEBUG_INFO 0
115__DEBUGINFO_1 =
116!endif
117!ifeq DEBUG_INFO 1
118__DEBUGINFO_1 = debug all
119!endif
120__OPTIMIZEFLAG =
121!ifeq BUILD debug
122__OPTIMIZEFLAG = -od
123!endif
124!ifeq BUILD release
125__OPTIMIZEFLAG = -ot -ox
126!endif
127__RUNTIME_LIBS =
128!ifeq RUNTIME_LIBS dynamic
129__RUNTIME_LIBS = -br
130!endif
131!ifeq RUNTIME_LIBS static
132__RUNTIME_LIBS =
133!endif
134__EXCEPTIONSFLAG =
135!ifeq USE_EXCEPTIONS 0
136__EXCEPTIONSFLAG =
137!endif
138!ifeq USE_EXCEPTIONS 1
139__EXCEPTIONSFLAG = -xr
140!endif
141__EXCEPTIONSFLAG_0 =
142!ifeq USE_EXCEPTIONS 0
143__EXCEPTIONSFLAG_0 =
144!endif
145!ifeq USE_EXCEPTIONS 1
146__EXCEPTIONSFLAG_0 = -xs
147!endif
148__WXLIB_BASE_p =
149!ifeq MONOLITHIC 0
150__WXLIB_BASE_p = &
151 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
152!endif
153__WXLIB_MONO_p =
154!ifeq MONOLITHIC 1
155__WXLIB_MONO_p = &
156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
157!endif
158__LIB_TIFF_p =
159!ifeq USE_GUI 1
160__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
161!endif
162__LIB_JPEG_p =
163!ifeq USE_GUI 1
164__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
165!endif
166__LIB_PNG_p =
167!ifeq USE_GUI 1
168__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
169!endif
170__WXUNIV_DEFINE_p =
171!ifeq WXUNIV 1
172__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
173!endif
174__DEBUG_DEFINE_p =
175!ifeq BUILD debug
176!ifeq DEBUG_FLAG default
177__DEBUG_DEFINE_p = -d__WXDEBUG__
178!endif
179!endif
180!ifeq DEBUG_FLAG 1
181__DEBUG_DEFINE_p = -d__WXDEBUG__
182!endif
183__UNICODE_DEFINE_p =
184!ifeq UNICODE 1
185__UNICODE_DEFINE_p = -d_UNICODE
186!endif
187__DLLFLAG_p =
188!ifeq SHARED 1
189__DLLFLAG_p = -dWXUSINGDLL
190!endif
191
192### Variables: ###
193
194WX_RELEASE_NODOT = 25
195OBJS = &
196 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
197LIBDIRNAME = .\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
198SETUPHDIR = &
199 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
200TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
201 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
202 -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
203 $(__DLLFLAG_p) -dwxUSE_GUI=0 $(CPPUNIT_CFLAGS) &
204 /fh=$(OBJS)\testprec_test.pch $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) &
205 $(CPPFLAGS) $(CXXFLAGS)
206TEST_OBJECTS = &
207 $(OBJS)\test_dummy.obj &
208 $(OBJS)\test_test.obj &
209 $(OBJS)\test_archivetest.obj &
210 $(OBJS)\test_ziptest.obj &
211 $(OBJS)\test_arrays.obj &
212 $(OBJS)\test_datetimetest.obj &
213 $(OBJS)\test_fileconftest.obj &
214 $(OBJS)\test_filekind.obj &
215 $(OBJS)\test_filenametest.obj &
216 $(OBJS)\test_filesystest.obj &
217 $(OBJS)\test_fontmaptest.obj &
218 $(OBJS)\test_formatconvertertest.obj &
219 $(OBJS)\test_hashes.obj &
220 $(OBJS)\test_lists.obj &
221 $(OBJS)\test_longlongtest.obj &
222 $(OBJS)\test_mbconvtest.obj &
223 $(OBJS)\test_regextest.obj &
224 $(OBJS)\test_wxregextest.obj &
225 $(OBJS)\test_strings.obj &
226 $(OBJS)\test_stdstrings.obj &
227 $(OBJS)\test_unicode.obj &
228 $(OBJS)\test_crt.obj &
229 $(OBJS)\test_bstream.obj &
230 $(OBJS)\test_datastreamtest.obj &
231 $(OBJS)\test_ffilestream.obj &
232 $(OBJS)\test_filestream.obj &
233 $(OBJS)\test_largefile.obj &
234 $(OBJS)\test_memstream.obj &
235 $(OBJS)\test_sstream.obj &
236 $(OBJS)\test_textstreamtest.obj &
237 $(OBJS)\test_zlibstream.obj &
238 $(OBJS)\test_uris.obj
239TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
240 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
241 -i=.\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
242 $(__DLLFLAG_p) -i=.\..\samples -dNOPCH $(CPPUNIT_CFLAGS) &
243 /fh=$(OBJS)\testprec_test_gui.pch $(__EXCEPTIONSFLAG) &
244 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
245TEST_GUI_OBJECTS = &
246 $(OBJS)\test_gui_dummy.obj &
247 $(OBJS)\test_gui_test.obj &
248 $(OBJS)\test_gui_rect.obj &
249 $(OBJS)\test_gui_size.obj &
250 $(OBJS)\test_gui_point.obj
251
252
253all : $(OBJS)
254$(OBJS) :
255 -if not exist $(OBJS) mkdir $(OBJS)
256
257### Targets: ###
258
259all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data
260
261clean : .SYMBOLIC
262 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
263 -if exist $(OBJS)\*.res del $(OBJS)\*.res
264 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
265 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
266 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
267 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
268 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
269
270$(OBJS)\test.exe : $(TEST_OBJECTS)
271 @%create $(OBJS)\test.lbc
272 @%append $(OBJS)\test.lbc option quiet
273 @%append $(OBJS)\test.lbc name $^@
274 @%append $(OBJS)\test.lbc option caseexact
275 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
276 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
277 @for %i in ( $(__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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib) do @%append $(OBJS)\test.lbc library %i
278 @%append $(OBJS)\test.lbc
279 wlink @$(OBJS)\test.lbc
280
281!ifeq USE_GUI 1
282$(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
283 @%create $(OBJS)\test_gui.lbc
284 @%append $(OBJS)\test_gui.lbc option quiet
285 @%append $(OBJS)\test_gui.lbc name $^@
286 @%append $(OBJS)\test_gui.lbc option caseexact
287 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(CPPUNIT_LIBS) system nt ref 'main_'
288 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
289 @for %i in ( $(__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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib ) do @%append $(OBJS)\test_gui.lbc library %i
290 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
291 wlink @$(OBJS)\test_gui.lbc
292!endif
293
294data : .SYMBOLIC
295 if not exist $(OBJS) mkdir $(OBJS)
296 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
297
298$(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
299 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
300
301$(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
302 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
303
304$(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
305 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
306
307$(OBJS)\test_ziptest.obj : .AUTODEPEND .\archive\ziptest.cpp
308 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
309
310$(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
311 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
312
313$(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
314 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
315
316$(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
317 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
318
319$(OBJS)\test_filekind.obj : .AUTODEPEND .\filekind\filekind.cpp
320 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
321
322$(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
323 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
324
325$(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
326 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
327
328$(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
329 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
330
331$(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
332 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
333
334$(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
335 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
336
337$(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
338 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
339
340$(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
341 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
342
343$(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
344 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
345
346$(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
347 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
348
349$(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
350 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
351
352$(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
353 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
354
355$(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
356 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
357
358$(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
359 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
360
361$(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
362 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
363
364$(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
365 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
366
367$(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
368 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
369
370$(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
371 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
372
373$(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
374 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
375
376$(OBJS)\test_largefile.obj : .AUTODEPEND .\streams\largefile.cpp
377 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
378
379$(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
380 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
381
382$(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
383 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
384
385$(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
386 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
387
388$(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
389 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
390
391$(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
392 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
393
394$(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
395 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\samples $<
396
397$(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
398 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
399
400$(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
401 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
402
403$(OBJS)\test_gui_rect.obj : .AUTODEPEND .\geometry\rect.cpp
404 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
405
406$(OBJS)\test_gui_size.obj : .AUTODEPEND .\geometry\size.cpp
407 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
408
409$(OBJS)\test_gui_point.obj : .AUTODEPEND .\geometry\point.cpp
410 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
411