]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.vc
fix compation with Watcom after latest vararg templates changes
[wxWidgets.git] / tests / makefile.vc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
c9f78968 3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
670ec357
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
ae4ccf12 15WX_RELEASE_NODOT = 29
670ec357 16OBJS = \
ab6ea1ac
MW
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18LIBDIRNAME = .\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
670ec357
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21c6080d
JS
21TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 $(__DEBUGINFO) \
22 /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
23 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
3abcf424
RD
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 /I$(SETUPHDIR) /I.\..\include /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DwxUSE_GUI=0 \
27 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) /Yu"testprec.h" \
28 /Fp"$(OBJS)\testprec_test.pch" $(CPPFLAGS) $(CXXFLAGS)
670ec357 29TEST_OBJECTS = \
8899b155 30 $(OBJS)\test_dummy.obj \
670ec357 31 $(OBJS)\test_test.obj \
8899b155 32 $(OBJS)\test_archivetest.obj \
e6477b92 33 $(OBJS)\test_ziptest.obj \
cdd7933f 34 $(OBJS)\test_tartest.obj \
dd65d8c8 35 $(OBJS)\test_arrays.obj \
113e181a
RN
36 $(OBJS)\test_datetimetest.obj \
37 $(OBJS)\test_fileconftest.obj \
0912690b 38 $(OBJS)\test_filekind.obj \
113e181a
RN
39 $(OBJS)\test_filenametest.obj \
40 $(OBJS)\test_filesystest.obj \
41 $(OBJS)\test_fontmaptest.obj \
42 $(OBJS)\test_formatconvertertest.obj \
f9c3d39b 43 $(OBJS)\test_hashes.obj \
02f935fb 44 $(OBJS)\test_intltest.obj \
7d9cfc54 45 $(OBJS)\test_lists.obj \
113e181a 46 $(OBJS)\test_longlongtest.obj \
d31a29b5 47 $(OBJS)\test_convautotest.obj \
113e181a
RN
48 $(OBJS)\test_mbconvtest.obj \
49 $(OBJS)\test_regextest.obj \
50 $(OBJS)\test_wxregextest.obj \
0d90d6ea 51 $(OBJS)\test_scopeguardtest.obj \
1cd53e88 52 $(OBJS)\test_strings.obj \
405b7d91 53 $(OBJS)\test_stdstrings.obj \
20a34d96 54 $(OBJS)\test_tokenizer.obj \
c9f78968 55 $(OBJS)\test_unichar.obj \
387f829e 56 $(OBJS)\test_unicode.obj \
c9f78968 57 $(OBJS)\test_vararg.obj \
cf8ee08b 58 $(OBJS)\test_crt.obj \
3b2cb431 59 $(OBJS)\test_vsnprintf.obj \
7735998c 60 $(OBJS)\test_bstream.obj \
7d9cfc54 61 $(OBJS)\test_datastreamtest.obj \
7735998c 62 $(OBJS)\test_ffilestream.obj \
e2255c89 63 $(OBJS)\test_fileback.obj \
7735998c 64 $(OBJS)\test_filestream.obj \
cb327439 65 $(OBJS)\test_largefile.obj \
7735998c 66 $(OBJS)\test_memstream.obj \
c33fae85 67 $(OBJS)\test_sstream.obj \
e1265174 68 $(OBJS)\test_tempfile.obj \
8899b155 69 $(OBJS)\test_textstreamtest.obj \
816b59de 70 $(OBJS)\test_zlibstream.obj \
d31a29b5 71 $(OBJS)\test_textfiletest.obj \
dd65d8c8 72 $(OBJS)\test_uris.obj
21c6080d
JS
73TEST_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS_23)$(__DEBUGRUNTIME) /DWIN32 \
74 $(__DEBUGINFO) /Fd$(OBJS)\test_gui.pdb $(____DEBUGRUNTIME) \
a0744a6b 75 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
8c9f8f91 76 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 77 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
78 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\include /W4 /I. $(__DLLFLAG_p) \
79 /I.\..\samples /DNOPCH $(CPPUNIT_CFLAGS) /D_CONSOLE $(__RTTIFLAG) \
80 $(__EXCEPTIONSFLAG) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test_gui.pch" \
81 $(CPPFLAGS) $(CXXFLAGS)
a0744a6b 82TEST_GUI_OBJECTS = \
a0744a6b 83 $(OBJS)\test_gui_dummy.obj \
c9f78968 84 $(OBJS)\test_gui_sample.res \
98a50e20 85 $(OBJS)\test_gui_test.obj \
cb327439
MW
86 $(OBJS)\test_gui_rect.obj \
87 $(OBJS)\test_gui_size.obj \
88 $(OBJS)\test_gui_point.obj
c2c04edc
KO
89PRINTFBENCH_CXXFLAGS = /M$(__RUNTIME_LIBS_38)$(__DEBUGRUNTIME) /DWIN32 \
90 $(__DEBUGINFO) /Fd$(OBJS)\printfbench.pdb $(____DEBUGRUNTIME) \
91 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
92 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
93 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
94 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\include /W4 /I. $(__DLLFLAG_p) \
95 /D_CONSOLE /DwxUSE_GUI=0 $(CPPUNIT_CFLAGS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
96 /Yu"testprec.h" /Fp"$(OBJS)\testprec_printfbench.pch" $(CPPFLAGS) \
97 $(CXXFLAGS)
c2c04edc
KO
98PRINTFBENCH_OBJECTS = \
99 $(OBJS)\printfbench_dummy.obj \
100 $(OBJS)\printfbench_printfbench.obj
670ec357
VS
101
102### Conditionally set variables: ###
103
104!if "$(USE_GUI)" == "0"
105PORTNAME = base
106!endif
107!if "$(USE_GUI)" == "1"
108PORTNAME = msw
109!endif
110!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
111WXDEBUGFLAG = d
112!endif
113!if "$(DEBUG_FLAG)" == "1"
114WXDEBUGFLAG = d
115!endif
116!if "$(UNICODE)" == "1"
117WXUNICODEFLAG = u
118!endif
119!if "$(WXUNIV)" == "1"
120WXUNIVNAME = univ
121!endif
20a34d96 122!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
123DIR_SUFFIX_CPU = _amd64
124!endif
20a34d96
VZ
125!if "$(TARGET_CPU)" == "amd64"
126DIR_SUFFIX_CPU = _amd64
127!endif
128!if "$(TARGET_CPU)" == "ia64"
129DIR_SUFFIX_CPU = _ia64
130!endif
131!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
132DIR_SUFFIX_CPU = _ia64
133!endif
670ec357
VS
134!if "$(SHARED)" == "1"
135WXDLLFLAG = dll
136!endif
cb327439
MW
137!if "$(SHARED)" == "0"
138LIBTYPE_SUFFIX = lib
139!endif
140!if "$(SHARED)" == "1"
141LIBTYPE_SUFFIX = dll
142!endif
20a34d96
VZ
143!if "$(TARGET_CPU)" == "amd64"
144LINK_TARGET_CPU = /MACHINE:AMD64
145!endif
146!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
147LINK_TARGET_CPU = /MACHINE:AMD64
148!endif
20a34d96
VZ
149!if "$(TARGET_CPU)" == "ia64"
150LINK_TARGET_CPU = /MACHINE:IA64
151!endif
152!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
153LINK_TARGET_CPU = /MACHINE:IA64
154!endif
dd65d8c8
RN
155!if "$(MONOLITHIC)" == "0"
156EXTRALIBS_FOR_BASE =
157!endif
158!if "$(MONOLITHIC)" == "1"
159EXTRALIBS_FOR_BASE =
160!endif
e1265174 161!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 162__RUNTIME_LIBS_8 = D
e1265174
MW
163!endif
164!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 165__RUNTIME_LIBS_8 = $(__THREADSFLAG)
e1265174 166!endif
a0744a6b
VS
167!if "$(MONOLITHIC)" == "0"
168__WXLIB_NET_p = \
169 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
170!endif
171!if "$(USE_GUI)" == "1"
172__test_gui___depname = $(OBJS)\test_gui.exe
173!endif
21c6080d
JS
174!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
175____DEBUGRUNTIME_17_p_1 = /d _DEBUG
a0744a6b 176!endif
21c6080d
JS
177!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
178____DEBUGRUNTIME_17_p_1 =
a0744a6b
VS
179!endif
180!if "$(DEBUG_RUNTIME_LIBS)" == "0"
8c9f8f91 181____DEBUGRUNTIME_17_p_1 =
a0744a6b
VS
182!endif
183!if "$(DEBUG_RUNTIME_LIBS)" == "1"
8c9f8f91 184____DEBUGRUNTIME_17_p_1 = /d _DEBUG
a0744a6b 185!endif
e1265174 186!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 187__RUNTIME_LIBS_23 = D
e1265174
MW
188!endif
189!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 190__RUNTIME_LIBS_23 = $(__THREADSFLAG)
e1265174 191!endif
a0744a6b
VS
192!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
193__NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
194!endif
195!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
196__NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
197!endif
198!if "$(WXUNIV)" == "1"
199__WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
200!endif
201!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
202__DEBUG_DEFINE_p_3 = /d __WXDEBUG__
203!endif
204!if "$(DEBUG_FLAG)" == "1"
205__DEBUG_DEFINE_p_3 = /d __WXDEBUG__
206!endif
8c9f8f91
JS
207!if "$(USE_EXCEPTIONS)" == "0"
208__EXCEPTIONS_DEFINE_p_3 = /d wxNO_EXCEPTIONS
209!endif
210!if "$(USE_RTTI)" == "0"
211__RTTI_DEFINE_p_3 = /d wxNO_RTTI
212!endif
213!if "$(USE_THREADS)" == "0"
214__THREAD_DEFINE_p_3 = /d wxNO_THREADS
215!endif
a0744a6b
VS
216!if "$(UNICODE)" == "1"
217__UNICODE_DEFINE_p_3 = /d _UNICODE
218!endif
2113bc77
MW
219!if "$(MSLU)" == "1"
220__MSLU_DEFINE_p_3 = /d wxUSE_UNICODE_MSLU=1
221!endif
3abcf424
RD
222!if "$(USE_GDIPLUS)" == "1"
223__GFXCTX_DEFINE_p_3 = /d wxUSE_GRAPHICS_CONTEXT=1
224!endif
a0744a6b
VS
225!if "$(SHARED)" == "1"
226__DLLFLAG_p_3 = /d WXUSINGDLL
227!endif
228!if "$(MONOLITHIC)" == "0"
229__WXLIB_CORE_p = \
230 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
670ec357 231!endif
3b2cb431
JS
232!if "$(USE_GUI)" == "1"
233__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
234!endif
235!if "$(USE_GUI)" == "1"
236__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
237!endif
238!if "$(USE_GUI)" == "1"
239__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
240!endif
c2c04edc
KO
241!if "$(RUNTIME_LIBS)" == "dynamic"
242__RUNTIME_LIBS_38 = D
243!endif
244!if "$(RUNTIME_LIBS)" == "static"
245__RUNTIME_LIBS_38 = $(__THREADSFLAG)
246!endif
670ec357 247!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
a0744a6b 248__DEBUGINFO = /Zi
670ec357
VS
249!endif
250!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
a0744a6b 251__DEBUGINFO =
670ec357
VS
252!endif
253!if "$(DEBUG_INFO)" == "0"
a0744a6b 254__DEBUGINFO =
670ec357
VS
255!endif
256!if "$(DEBUG_INFO)" == "1"
a0744a6b 257__DEBUGINFO = /Zi
670ec357 258!endif
a0744a6b 259!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
c2c04edc 260__DEBUGINFO_2 = /DEBUG
670ec357 261!endif
a0744a6b 262!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
c2c04edc 263__DEBUGINFO_2 =
670ec357 264!endif
a0744a6b 265!if "$(DEBUG_INFO)" == "0"
c2c04edc 266__DEBUGINFO_2 =
a0744a6b
VS
267!endif
268!if "$(DEBUG_INFO)" == "1"
c2c04edc 269__DEBUGINFO_2 = /DEBUG
670ec357 270!endif
21c6080d
JS
271!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
272____DEBUGRUNTIME = /D_DEBUG
670ec357 273!endif
21c6080d
JS
274!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
275____DEBUGRUNTIME =
670ec357 276!endif
21c6080d
JS
277!if "$(DEBUG_RUNTIME_LIBS)" == "0"
278____DEBUGRUNTIME =
670ec357 279!endif
21c6080d
JS
280!if "$(DEBUG_RUNTIME_LIBS)" == "1"
281____DEBUGRUNTIME = /D_DEBUG
a0744a6b 282!endif
21c6080d
JS
283!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
284__DEBUGRUNTIME = d
a0744a6b 285!endif
21c6080d
JS
286!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
287__DEBUGRUNTIME =
a0744a6b 288!endif
21c6080d
JS
289!if "$(DEBUG_RUNTIME_LIBS)" == "0"
290__DEBUGRUNTIME =
a0744a6b 291!endif
21c6080d
JS
292!if "$(DEBUG_RUNTIME_LIBS)" == "1"
293__DEBUGRUNTIME = d
670ec357
VS
294!endif
295!if "$(BUILD)" == "debug"
a0744a6b 296__OPTIMIZEFLAG = /Od
670ec357
VS
297!endif
298!if "$(BUILD)" == "release"
a0744a6b 299__OPTIMIZEFLAG = /O2
670ec357 300!endif
e1265174
MW
301!if "$(USE_THREADS)" == "0"
302__THREADSFLAG = L
670ec357 303!endif
e1265174
MW
304!if "$(USE_THREADS)" == "1"
305__THREADSFLAG = T
670ec357 306!endif
e1265174
MW
307!if "$(USE_RTTI)" == "0"
308__RTTIFLAG =
670ec357 309!endif
e1265174
MW
310!if "$(USE_RTTI)" == "1"
311__RTTIFLAG = /GR
670ec357
VS
312!endif
313!if "$(USE_EXCEPTIONS)" == "0"
e1265174 314__EXCEPTIONSFLAG =
670ec357
VS
315!endif
316!if "$(USE_EXCEPTIONS)" == "1"
8c9f8f91 317__EXCEPTIONSFLAG = /EHsc
670ec357
VS
318!endif
319!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
320__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
321!endif
322!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
323__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
324!endif
325!if "$(WXUNIV)" == "1"
326__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
327!endif
328!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
329__DEBUG_DEFINE_p = /D__WXDEBUG__
330!endif
331!if "$(DEBUG_FLAG)" == "1"
332__DEBUG_DEFINE_p = /D__WXDEBUG__
333!endif
8c9f8f91
JS
334!if "$(USE_EXCEPTIONS)" == "0"
335__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
336!endif
337!if "$(USE_RTTI)" == "0"
338__RTTI_DEFINE_p = /DwxNO_RTTI
339!endif
340!if "$(USE_THREADS)" == "0"
341__THREAD_DEFINE_p = /DwxNO_THREADS
342!endif
670ec357
VS
343!if "$(UNICODE)" == "1"
344__UNICODE_DEFINE_p = /D_UNICODE
345!endif
2113bc77
MW
346!if "$(MSLU)" == "1"
347__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
348!endif
3abcf424
RD
349!if "$(USE_GDIPLUS)" == "1"
350__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
351!endif
a0744a6b
VS
352!if "$(SHARED)" == "1"
353__DLLFLAG_p = /DWXUSINGDLL
113e181a
RN
354!endif
355!if "$(MONOLITHIC)" == "0"
c33fae85
RN
356__WXLIB_BASE_p = \
357 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
358!endif
359!if "$(MONOLITHIC)" == "1"
360__WXLIB_MONO_p = \
c33fae85 361 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357 362!endif
670ec357
VS
363!if "$(MSLU)" == "1"
364__UNICOWS_LIB_p = unicows.lib
365!endif
3abcf424
RD
366!if "$(USE_GDIPLUS)" == "1"
367__GDIPLUS_LIB_p = gdiplus.lib
368!endif
670ec357
VS
369
370
371all: $(OBJS)
372$(OBJS):
373 -if not exist $(OBJS) mkdir $(OBJS)
374
375### Targets: ###
376
02f935fb 377all: $(OBJS)\test.exe $(__test_gui___depname) data fr $(OBJS)\printfbench.exe
670ec357
VS
378
379clean:
380 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
381 -if exist $(OBJS)\*.res del $(OBJS)\*.res
cb327439 382 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
670ec357
VS
383 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
384 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
385 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
a0744a6b
VS
386 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
387 -if exist $(OBJS)\test_gui.ilk del $(OBJS)\test_gui.ilk
388 -if exist $(OBJS)\test_gui.pdb del $(OBJS)\test_gui.pdb
c2c04edc
KO
389 -if exist $(OBJS)\printfbench.exe del $(OBJS)\printfbench.exe
390 -if exist $(OBJS)\printfbench.ilk del $(OBJS)\printfbench.ilk
391 -if exist $(OBJS)\printfbench.pdb del $(OBJS)\printfbench.pdb
670ec357 392
8899b155 393$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
c2c04edc 394 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
3abcf424 395 $(TEST_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) 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
670ec357
VS
396<<
397
a0744a6b
VS
398!if "$(USE_GUI)" == "1"
399$(OBJS)\test_gui.exe: $(OBJS)\test_gui_dummy.obj $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample.res
c2c04edc 400 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) $(CPPUNIT_LIBS) /SUBSYSTEM:CONSOLE @<<
3abcf424 401 $(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) $(__GDIPLUS_LIB_p) 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
a0744a6b
VS
402<<
403!endif
404
387f829e
VS
405data:
406 if not exist $(OBJS) mkdir $(OBJS)
407 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
408
02f935fb
VS
409fr:
410 if not exist $(OBJS)\intl\fr mkdir $(OBJS)\intl\fr
411 for %f in (internat.po internat.mo) do if not exist $(OBJS)\intl\fr\%f copy .\intl\fr\%f $(OBJS)\intl\fr
412
c2c04edc
KO
413$(OBJS)\printfbench.exe: $(OBJS)\printfbench_dummy.obj $(PRINTFBENCH_OBJECTS)
414 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
3abcf424 415 $(PRINTFBENCH_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) 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
c2c04edc
KO
416<<
417
8899b155
RN
418$(OBJS)\test_dummy.obj: .\dummy.cpp
419 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
420
670ec357
VS
421$(OBJS)\test_test.obj: .\test.cpp
422 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
423
8899b155
RN
424$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
425 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
426
e6477b92
MW
427$(OBJS)\test_ziptest.obj: .\archive\ziptest.cpp
428 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
429
cdd7933f
MW
430$(OBJS)\test_tartest.obj: .\archive\tartest.cpp
431 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
432
dd65d8c8 433$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 434 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
4827cbd9 435
113e181a 436$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
437 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
438
113e181a 439$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
440 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
441
0912690b 442$(OBJS)\test_filekind.obj: .\filekind\filekind.cpp
3fa86423
WS
443 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
444
0912690b 445$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
4827cbd9 446 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
3c70014d 447
0912690b 448$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
3c70014d 449 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
cf1014a2 450
113e181a 451$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
452 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
453
113e181a 454$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 455 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
1b035b8c 456
f9c3d39b
MB
457$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
458 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
02f935fb
VS
459
460$(OBJS)\test_intltest.obj: .\intl\intltest.cpp
461 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
f9c3d39b 462
7d9cfc54
MB
463$(OBJS)\test_lists.obj: .\lists\lists.cpp
464 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
465
113e181a 466$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 467 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
7735998c 468
d31a29b5
VZ
469$(OBJS)\test_convautotest.obj: .\mbconv\convautotest.cpp
470 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
471
113e181a 472$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
473 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
474
113e181a 475$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
476 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
477
113e181a 478$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
479 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
480
0d90d6ea
JS
481$(OBJS)\test_scopeguardtest.obj: .\scopeguard\scopeguardtest.cpp
482 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
483
1cd53e88
VS
484$(OBJS)\test_strings.obj: .\strings\strings.cpp
485 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
486
405b7d91
WS
487$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
488 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
489
20a34d96
VZ
490$(OBJS)\test_tokenizer.obj: .\strings\tokenizer.cpp
491 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
492
c9f78968
VS
493$(OBJS)\test_unichar.obj: .\strings\unichar.cpp
494 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
495
387f829e
VS
496$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
497 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
498
c9f78968
VS
499$(OBJS)\test_vararg.obj: .\strings\vararg.cpp
500 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
501
cf8ee08b
VS
502$(OBJS)\test_crt.obj: .\strings\crt.cpp
503 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
504
3b2cb431
JS
505$(OBJS)\test_vsnprintf.obj: .\strings\vsnprintf.cpp
506 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
507
7735998c
VS
508$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
509 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
510
7d9cfc54
MB
511$(OBJS)\test_datastreamtest.obj: .\streams\datastreamtest.cpp
512 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
513
7735998c
VS
514$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
515 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
516
e2255c89
MW
517$(OBJS)\test_fileback.obj: .\streams\fileback.cpp
518 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
519
7735998c
VS
520$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
521 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
522
cb327439
MW
523$(OBJS)\test_largefile.obj: .\streams\largefile.cpp
524 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
525
7735998c
VS
526$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
527 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
528
c33fae85
RN
529$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
530 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
531
e1265174
MW
532$(OBJS)\test_tempfile.obj: .\streams\tempfile.cpp
533 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
534
8899b155
RN
535$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
536 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
537
7735998c 538$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
d31a29b5
VZ
539 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
540
541$(OBJS)\test_textfiletest.obj: .\textfile\textfiletest.cpp
7735998c 542 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
816b59de 543
dd65d8c8 544$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 545 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
a0744a6b 546
a0744a6b
VS
547$(OBJS)\test_gui_dummy.obj: .\dummy.cpp
548 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) /Yctestprec.h $**
549
c9f78968
VS
550$(OBJS)\test_gui_sample.res: .\..\samples\sample.rc
551 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_17_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) /i $(SETUPHDIR) /i .\..\include /i . $(__DLLFLAG_p_3) /i .\..\samples /d NOPCH /d _CONSOLE $**
552
a0744a6b
VS
553$(OBJS)\test_gui_test.obj: .\test.cpp
554 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
98a50e20
VS
555
556$(OBJS)\test_gui_rect.obj: .\geometry\rect.cpp
557 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
cb327439
MW
558
559$(OBJS)\test_gui_size.obj: .\geometry\size.cpp
560 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
561
562$(OBJS)\test_gui_point.obj: .\geometry\point.cpp
563 $(CXX) /c /nologo /TP /Fo$@ $(TEST_GUI_CXXFLAGS) $**
564
c2c04edc
KO
565$(OBJS)\printfbench_dummy.obj: .\dummy.cpp
566 $(CXX) /c /nologo /TP /Fo$@ $(PRINTFBENCH_CXXFLAGS) /Yctestprec.h $**
567
568$(OBJS)\printfbench_printfbench.obj: .\benchmarks\printfbench.cpp
569 $(CXX) /c /nologo /TP /Fo$@ $(PRINTFBENCH_CXXFLAGS) $**
570