]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.wat
Remove tab sample as per 2.6 wiki todo
[wxWidgets.git] / tests / makefile.wat
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!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
dd65d8c8
RN
58EXTRALIBS_FOR_BASE =
59!ifeq MONOLITHIC 0
60EXTRALIBS_FOR_BASE =
61!endif
62!ifeq MONOLITHIC 1
63EXTRALIBS_FOR_BASE =
64!endif
a0744a6b
VS
65__WXLIB_NET_p =
66!ifeq MONOLITHIC 0
67__WXLIB_NET_p = &
68 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
69!endif
70__test_gui___depname =
71!ifeq USE_GUI 1
72__test_gui___depname = $(OBJS)\test_gui.exe
73!endif
74__WXLIB_CORE_p =
75!ifeq MONOLITHIC 0
76__WXLIB_CORE_p = &
77 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
78!endif
79__DEBUGINFO =
670ec357
VS
80!ifeq BUILD debug
81!ifeq DEBUG_INFO default
a0744a6b 82__DEBUGINFO = -d2
670ec357
VS
83!endif
84!endif
85!ifeq BUILD release
86!ifeq DEBUG_INFO default
a0744a6b 87__DEBUGINFO = -d0
670ec357
VS
88!endif
89!endif
90!ifeq DEBUG_INFO 0
a0744a6b 91__DEBUGINFO = -d0
670ec357
VS
92!endif
93!ifeq DEBUG_INFO 1
a0744a6b 94__DEBUGINFO = -d2
670ec357
VS
95!endif
96__DEBUGINFO_1 =
97!ifeq BUILD debug
98!ifeq DEBUG_INFO default
99__DEBUGINFO_1 = debug all
100!endif
101!endif
102!ifeq BUILD release
103!ifeq DEBUG_INFO default
104__DEBUGINFO_1 =
105!endif
106!endif
107!ifeq DEBUG_INFO 0
108__DEBUGINFO_1 =
109!endif
110!ifeq DEBUG_INFO 1
111__DEBUGINFO_1 = debug all
112!endif
a0744a6b 113__OPTIMIZEFLAG =
670ec357 114!ifeq BUILD debug
a0744a6b 115__OPTIMIZEFLAG = -od
670ec357
VS
116!endif
117!ifeq BUILD release
a0744a6b 118__OPTIMIZEFLAG = -ot -ox
670ec357 119!endif
a0744a6b 120__RUNTIME_LIBS =
670ec357 121!ifeq RUNTIME_LIBS dynamic
a0744a6b 122__RUNTIME_LIBS = -br
670ec357
VS
123!endif
124!ifeq RUNTIME_LIBS static
a0744a6b 125__RUNTIME_LIBS =
670ec357 126!endif
a0744a6b 127__EXCEPTIONSFLAG =
670ec357 128!ifeq USE_EXCEPTIONS 0
a0744a6b 129__EXCEPTIONSFLAG =
670ec357
VS
130!endif
131!ifeq USE_EXCEPTIONS 1
a0744a6b 132__EXCEPTIONSFLAG = -xs
670ec357 133!endif
a0744a6b
VS
134LIBDIRNAME =
135!ifeq SHARED 0
136LIBDIRNAME = .\..\lib\wat_lib$(CFG)
670ec357 137!endif
670ec357 138!ifeq SHARED 1
a0744a6b 139LIBDIRNAME = .\..\lib\wat_dll$(CFG)
113e181a 140!endif
670ec357
VS
141__WXLIB_BASE_p =
142!ifeq MONOLITHIC 0
c33fae85
RN
143__WXLIB_BASE_p = &
144 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
145!endif
146__WXLIB_MONO_p =
147!ifeq MONOLITHIC 1
148__WXLIB_MONO_p = &
c33fae85 149 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
150!endif
151__LIB_TIFF_p =
152!ifeq USE_GUI 1
9c2d002b 153__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
154!endif
155__LIB_JPEG_p =
156!ifeq USE_GUI 1
9c2d002b 157__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
158!endif
159__LIB_PNG_p =
160!ifeq USE_GUI 1
9c2d002b 161__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357 162!endif
a0744a6b
VS
163__WXUNIV_DEFINE_p =
164!ifeq WXUNIV 1
165__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
670ec357 166!endif
a0744a6b
VS
167__DEBUG_DEFINE_p =
168!ifeq BUILD debug
169!ifeq DEBUG_FLAG default
170__DEBUG_DEFINE_p = -d__WXDEBUG__
171!endif
172!endif
173!ifeq DEBUG_FLAG 1
174__DEBUG_DEFINE_p = -d__WXDEBUG__
175!endif
176__UNICODE_DEFINE_p =
177!ifeq UNICODE 1
178__UNICODE_DEFINE_p = -d_UNICODE
179!endif
180__DLLFLAG_p =
670ec357 181!ifeq SHARED 1
a0744a6b 182__DLLFLAG_p = -dWXUSINGDLL
670ec357
VS
183!endif
184
185### Variables: ###
186
c33fae85 187WX_RELEASE_NODOT = 25
670ec357
VS
188OBJS = &
189 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
190SETUPHDIR = &
191 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a0744a6b 192TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
670ec357 193 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
8899b155
RN
194 -i=.\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
195 $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) /fh=$(OBJS)\testprec_test.pch &
a0744a6b 196 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
670ec357 197TEST_OBJECTS = &
8899b155 198 $(OBJS)\test_dummy.obj &
670ec357 199 $(OBJS)\test_test.obj &
8899b155 200 $(OBJS)\test_archivetest.obj &
dd65d8c8 201 $(OBJS)\test_arrays.obj &
113e181a
RN
202 $(OBJS)\test_datetimetest.obj &
203 $(OBJS)\test_fileconftest.obj &
204 $(OBJS)\test_filenametest.obj &
205 $(OBJS)\test_filesystest.obj &
206 $(OBJS)\test_fontmaptest.obj &
207 $(OBJS)\test_formatconvertertest.obj &
c4839ccf 208 $(OBJS)\test_hashes.obj &
7d9cfc54 209 $(OBJS)\test_lists.obj &
113e181a
RN
210 $(OBJS)\test_longlongtest.obj &
211 $(OBJS)\test_mbconvtest.obj &
212 $(OBJS)\test_regextest.obj &
213 $(OBJS)\test_wxregextest.obj &
1cd53e88 214 $(OBJS)\test_strings.obj &
405b7d91 215 $(OBJS)\test_stdstrings.obj &
387f829e 216 $(OBJS)\test_unicode.obj &
cf8ee08b 217 $(OBJS)\test_crt.obj &
7735998c 218 $(OBJS)\test_bstream.obj &
7d9cfc54 219 $(OBJS)\test_datastreamtest.obj &
7735998c
VS
220 $(OBJS)\test_ffilestream.obj &
221 $(OBJS)\test_filestream.obj &
222 $(OBJS)\test_memstream.obj &
c33fae85 223 $(OBJS)\test_sstream.obj &
8899b155 224 $(OBJS)\test_textstreamtest.obj &
816b59de 225 $(OBJS)\test_zlibstream.obj &
dd65d8c8 226 $(OBJS)\test_uris.obj
a0744a6b
VS
227TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
228 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
229 -i=.\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
230 $(__DLLFLAG_p) -i=.\..\samples -dNOPCH $(CPPUNIT_CFLAGS) &
231 /fh=$(OBJS)\testprec_test_gui.pch $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
232 $(CXXFLAGS)
233TEST_GUI_OBJECTS = &
234 $(OBJS)\test_gui_dummy.obj &
98a50e20
VS
235 $(OBJS)\test_gui_test.obj &
236 $(OBJS)\test_gui_rect.obj
670ec357
VS
237
238
239all : $(OBJS)
240$(OBJS) :
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
a0744a6b 245all : .SYMBOLIC $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
246
247clean : .SYMBOLIC
248 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
249 -if exist $(OBJS)\*.res del $(OBJS)\*.res
250 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
251 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
252 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
a0744a6b 253 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
670ec357
VS
254
255$(OBJS)\test.exe : $(TEST_OBJECTS)
256 @%create $(OBJS)\test.lbc
257 @%append $(OBJS)\test.lbc option quiet
258 @%append $(OBJS)\test.lbc name $^@
259 @%append $(OBJS)\test.lbc option caseexact
260 @%append $(OBJS)\test.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(CPPUNIT_LIBS)
261 @for %i in ($(TEST_OBJECTS)) do @%append $(OBJS)\test.lbc file %i
113e181a 262 @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
670ec357
VS
263 @%append $(OBJS)\test.lbc
264 wlink @$(OBJS)\test.lbc
265
a0744a6b
VS
266!ifeq USE_GUI 1
267$(OBJS)\test_gui.exe : $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
268 @%create $(OBJS)\test_gui.lbc
269 @%append $(OBJS)\test_gui.lbc option quiet
270 @%append $(OBJS)\test_gui.lbc name $^@
271 @%append $(OBJS)\test_gui.lbc option caseexact
98a50e20 272 @%append $(OBJS)\test_gui.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(CPPUNIT_LIBS) system nt ref 'main_'
a0744a6b
VS
273 @for %i in ($(TEST_GUI_OBJECTS)) do @%append $(OBJS)\test_gui.lbc file %i
274 @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
275 @%append $(OBJS)\test_gui.lbc option resource=$(OBJS)\test_gui_sample.res
276 wlink @$(OBJS)\test_gui.lbc
277!endif
278
387f829e
VS
279data : .SYMBOLIC
280 if not exist $(OBJS) mkdir $(OBJS)
281 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
282
8899b155
RN
283$(OBJS)\test_dummy.obj : .AUTODEPEND .\dummy.cpp
284 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
285
670ec357
VS
286$(OBJS)\test_test.obj : .AUTODEPEND .\test.cpp
287 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
288
8899b155
RN
289$(OBJS)\test_archivetest.obj : .AUTODEPEND .\archive\archivetest.cpp
290 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
291
dd65d8c8 292$(OBJS)\test_arrays.obj : .AUTODEPEND .\arrays\arrays.cpp
e70833fb 293 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
4827cbd9 294
113e181a 295$(OBJS)\test_datetimetest.obj : .AUTODEPEND .\datetime\datetimetest.cpp
bc10103e
VS
296 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
297
113e181a 298$(OBJS)\test_fileconftest.obj : .AUTODEPEND .\fileconf\fileconftest.cpp
ab921f5f
RN
299 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
300
113e181a 301$(OBJS)\test_filenametest.obj : .AUTODEPEND .\filename\filenametest.cpp
3fa86423
WS
302 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
303
113e181a 304$(OBJS)\test_filesystest.obj : .AUTODEPEND .\filesys\filesystest.cpp
4827cbd9 305 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
cf1014a2 306
113e181a 307$(OBJS)\test_fontmaptest.obj : .AUTODEPEND .\fontmap\fontmaptest.cpp
dd65d8c8
RN
308 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
309
113e181a 310$(OBJS)\test_formatconvertertest.obj : .AUTODEPEND .\formatconverter\formatconvertertest.cpp
cf1014a2 311 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
1b035b8c 312
c4839ccf
JS
313$(OBJS)\test_hashes.obj : .AUTODEPEND .\hashes\hashes.cpp
314 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
315
7d9cfc54
MB
316$(OBJS)\test_lists.obj : .AUTODEPEND .\lists\lists.cpp
317 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
318
113e181a 319$(OBJS)\test_longlongtest.obj : .AUTODEPEND .\longlong\longlongtest.cpp
1b035b8c 320 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
7735998c 321
113e181a 322$(OBJS)\test_mbconvtest.obj : .AUTODEPEND .\mbconv\mbconvtest.cpp
dd65d8c8
RN
323 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
324
113e181a 325$(OBJS)\test_regextest.obj : .AUTODEPEND .\regex\regextest.cpp
dd65d8c8
RN
326 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
327
113e181a 328$(OBJS)\test_wxregextest.obj : .AUTODEPEND .\regex\wxregextest.cpp
dd65d8c8
RN
329 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
330
1cd53e88
VS
331$(OBJS)\test_strings.obj : .AUTODEPEND .\strings\strings.cpp
332 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
333
405b7d91
WS
334$(OBJS)\test_stdstrings.obj : .AUTODEPEND .\strings\stdstrings.cpp
335 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
336
387f829e
VS
337$(OBJS)\test_unicode.obj : .AUTODEPEND .\strings\unicode.cpp
338 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
339
cf8ee08b
VS
340$(OBJS)\test_crt.obj : .AUTODEPEND .\strings\crt.cpp
341 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
342
7735998c
VS
343$(OBJS)\test_bstream.obj : .AUTODEPEND .\streams\bstream.cpp
344 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
345
7d9cfc54
MB
346$(OBJS)\test_datastreamtest.obj : .AUTODEPEND .\streams\datastreamtest.cpp
347 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
348
7735998c
VS
349$(OBJS)\test_ffilestream.obj : .AUTODEPEND .\streams\ffilestream.cpp
350 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
351
352$(OBJS)\test_filestream.obj : .AUTODEPEND .\streams\filestream.cpp
353 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
354
355$(OBJS)\test_memstream.obj : .AUTODEPEND .\streams\memstream.cpp
356 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
357
c33fae85
RN
358$(OBJS)\test_sstream.obj : .AUTODEPEND .\streams\sstream.cpp
359 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
360
8899b155
RN
361$(OBJS)\test_textstreamtest.obj : .AUTODEPEND .\streams\textstreamtest.cpp
362 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
363
7735998c
VS
364$(OBJS)\test_zlibstream.obj : .AUTODEPEND .\streams\zlibstream.cpp
365 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
816b59de 366
dd65d8c8 367$(OBJS)\test_uris.obj : .AUTODEPEND .\uris\uris.cpp
edcccd84 368 $(CXX) -zq -fo=$^@ $(TEST_CXXFLAGS) $<
a0744a6b
VS
369
370$(OBJS)\test_gui_sample.res : .AUTODEPEND .\..\samples\sample.rc
371 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 $<
372
373$(OBJS)\test_gui_dummy.obj : .AUTODEPEND .\dummy.cpp
374 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
375
376$(OBJS)\test_gui_test.obj : .AUTODEPEND .\test.cpp
377 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<
98a50e20
VS
378
379$(OBJS)\test_gui_rect.obj : .AUTODEPEND .\geometry\rect.cpp
380 $(CXX) -zq -fo=$^@ $(TEST_GUI_CXXFLAGS) $<