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