]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.vc
rebaked after adding src/tiff/tif_color.c
[wxWidgets.git] / tests / makefile.vc
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.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
670ec357
VS
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20TEST_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\test.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\include /I$(SETUPHDIR) /W4 \
24 /I. $(__DLLFLAG_p) /D_CONSOLE $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG_8) \
8899b155
RN
25 $(__EXCEPTIONSFLAG_9) /Yu"testprec.h" /Fp"$(OBJS)\testprec_test.pch" \
26 $(CPPFLAGS) $(CXXFLAGS)
670ec357 27TEST_OBJECTS = \
8899b155 28 $(OBJS)\test_dummy.obj \
670ec357 29 $(OBJS)\test_test.obj \
8899b155 30 $(OBJS)\test_archivetest.obj \
dd65d8c8 31 $(OBJS)\test_arrays.obj \
113e181a
RN
32 $(OBJS)\test_datetimetest.obj \
33 $(OBJS)\test_fileconftest.obj \
34 $(OBJS)\test_filenametest.obj \
35 $(OBJS)\test_filesystest.obj \
36 $(OBJS)\test_fontmaptest.obj \
37 $(OBJS)\test_formatconvertertest.obj \
f9c3d39b 38 $(OBJS)\test_hashes.obj \
113e181a
RN
39 $(OBJS)\test_longlongtest.obj \
40 $(OBJS)\test_mbconvtest.obj \
41 $(OBJS)\test_regextest.obj \
42 $(OBJS)\test_wxregextest.obj \
1cd53e88 43 $(OBJS)\test_strings.obj \
405b7d91 44 $(OBJS)\test_stdstrings.obj \
387f829e 45 $(OBJS)\test_unicode.obj \
cf8ee08b 46 $(OBJS)\test_crt.obj \
7735998c
VS
47 $(OBJS)\test_bstream.obj \
48 $(OBJS)\test_ffilestream.obj \
49 $(OBJS)\test_filestream.obj \
50 $(OBJS)\test_memstream.obj \
c33fae85 51 $(OBJS)\test_sstream.obj \
8899b155 52 $(OBJS)\test_textstreamtest.obj \
816b59de 53 $(OBJS)\test_zlibstream.obj \
dd65d8c8 54 $(OBJS)\test_uris.obj
670ec357
VS
55
56### Conditionally set variables: ###
57
58!if "$(USE_GUI)" == "0"
59PORTNAME = base
60!endif
61!if "$(USE_GUI)" == "1"
62PORTNAME = msw
63!endif
64!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
65WXDEBUGFLAG = d
66!endif
67!if "$(DEBUG_FLAG)" == "1"
68WXDEBUGFLAG = d
69!endif
70!if "$(UNICODE)" == "1"
71WXUNICODEFLAG = u
72!endif
73!if "$(WXUNIV)" == "1"
74WXUNIVNAME = univ
75!endif
76!if "$(SHARED)" == "1"
77WXDLLFLAG = dll
78!endif
dd65d8c8
RN
79!if "$(MONOLITHIC)" == "0"
80EXTRALIBS_FOR_BASE =
81!endif
82!if "$(MONOLITHIC)" == "1"
83EXTRALIBS_FOR_BASE =
84!endif
670ec357
VS
85!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
86__DEBUGINFO_0 = /Zi
87!endif
88!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
89__DEBUGINFO_0 =
90!endif
91!if "$(DEBUG_INFO)" == "0"
92__DEBUGINFO_0 =
93!endif
94!if "$(DEBUG_INFO)" == "1"
95__DEBUGINFO_0 = /Zi
96!endif
97!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
98__DEBUGINFO_1 = /DEBUG
99!endif
100!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
101__DEBUGINFO_1 =
102!endif
103!if "$(DEBUG_INFO)" == "0"
104__DEBUGINFO_1 =
105!endif
106!if "$(DEBUG_INFO)" == "1"
107__DEBUGINFO_1 = /DEBUG
108!endif
109!if "$(DEBUG_RUNTIME_LIBS)" == "0"
110____DEBUGRUNTIME_2_p =
111!endif
112!if "$(DEBUG_RUNTIME_LIBS)" == "1"
113____DEBUGRUNTIME_2_p = /D_DEBUG
114!endif
115!if "$(DEBUG_RUNTIME_LIBS)" == "default"
116____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
117!endif
118!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
119____DEBUGINFO_2_p = /D_DEBUG
120!endif
121!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
122____DEBUGINFO_2_p =
123!endif
124!if "$(DEBUG_INFO)" == "0"
125____DEBUGINFO_2_p =
126!endif
127!if "$(DEBUG_INFO)" == "1"
128____DEBUGINFO_2_p = /D_DEBUG
129!endif
130!if "$(DEBUG_RUNTIME_LIBS)" == "0"
131__DEBUGRUNTIME_3 =
132!endif
133!if "$(DEBUG_RUNTIME_LIBS)" == "1"
134__DEBUGRUNTIME_3 = d
135!endif
136!if "$(DEBUG_RUNTIME_LIBS)" == "default"
137__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
138!endif
139!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
140__DEBUGINFO_3 = d
141!endif
142!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
143__DEBUGINFO_3 =
144!endif
145!if "$(DEBUG_INFO)" == "0"
146__DEBUGINFO_3 =
147!endif
148!if "$(DEBUG_INFO)" == "1"
149__DEBUGINFO_3 = d
150!endif
151!if "$(BUILD)" == "debug"
152__OPTIMIZEFLAG_4 = /Od
153!endif
154!if "$(BUILD)" == "release"
155__OPTIMIZEFLAG_4 = /O2
156!endif
157!if "$(RUNTIME_LIBS)" == "dynamic"
158__RUNTIME_LIBS_7 = D
159!endif
160!if "$(RUNTIME_LIBS)" == "static"
161__RUNTIME_LIBS_7 = T
162!endif
163!if "$(USE_EXCEPTIONS)" == "0"
164__EXCEPTIONSFLAG_8 =
165!endif
166!if "$(USE_EXCEPTIONS)" == "1"
167__EXCEPTIONSFLAG_8 = /GR
168!endif
169!if "$(USE_EXCEPTIONS)" == "0"
170__EXCEPTIONSFLAG_9 =
171!endif
172!if "$(USE_EXCEPTIONS)" == "1"
173__EXCEPTIONSFLAG_9 = /GX
174!endif
175!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
176__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
177!endif
178!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
179__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
180!endif
181!if "$(WXUNIV)" == "1"
182__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
183!endif
184!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
185__DEBUG_DEFINE_p = /D__WXDEBUG__
186!endif
187!if "$(DEBUG_FLAG)" == "1"
188__DEBUG_DEFINE_p = /D__WXDEBUG__
189!endif
190!if "$(UNICODE)" == "1"
191__UNICODE_DEFINE_p = /D_UNICODE
192!endif
193!if "$(SHARED)" == "1"
194__DLLFLAG_p = /DWXUSINGDLL
195!endif
196!if "$(MONOLITHIC)" == "0"
113e181a
RN
197__WXLIB_NET_p = \
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
199!endif
200!if "$(MONOLITHIC)" == "0"
c33fae85
RN
201__WXLIB_BASE_p = \
202 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
203!endif
204!if "$(MONOLITHIC)" == "1"
205__WXLIB_MONO_p = \
c33fae85 206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
670ec357
VS
207!endif
208!if "$(USE_GUI)" == "1"
9c2d002b 209__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
670ec357
VS
210!endif
211!if "$(USE_GUI)" == "1"
9c2d002b 212__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
670ec357
VS
213!endif
214!if "$(USE_GUI)" == "1"
9c2d002b 215__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
670ec357
VS
216!endif
217!if "$(MSLU)" == "1"
218__UNICOWS_LIB_p = unicows.lib
219!endif
220!if "$(SHARED)" == "0"
221LIBDIRNAME = .\..\lib\vc_lib$(CFG)
222!endif
223!if "$(SHARED)" == "1"
224LIBDIRNAME = .\..\lib\vc_dll$(CFG)
225!endif
226
227
228all: $(OBJS)
229$(OBJS):
230 -if not exist $(OBJS) mkdir $(OBJS)
231
232### Targets: ###
233
387f829e 234all: $(OBJS)\test.exe data
670ec357
VS
235
236clean:
237 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
238 -if exist $(OBJS)\*.res del $(OBJS)\*.res
239 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
240 -if exist $(OBJS)\test.ilk del $(OBJS)\test.ilk
241 -if exist $(OBJS)\test.pdb del $(OBJS)\test.pdb
242
8899b155 243$(OBJS)\test.exe: $(OBJS)\test_dummy.obj $(TEST_OBJECTS)
670ec357 244 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(CPPUNIT_LIBS) @<<
113e181a 245 $(TEST_OBJECTS) $(__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) $(__UNICOWS_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 oleacc.lib odbc32.lib
670ec357
VS
246<<
247
387f829e
VS
248data:
249 if not exist $(OBJS) mkdir $(OBJS)
250 for %f in (testdata.fc) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
251
8899b155
RN
252$(OBJS)\test_dummy.obj: .\dummy.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) /Yctestprec.h $**
254
670ec357
VS
255$(OBJS)\test_test.obj: .\test.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
257
8899b155
RN
258$(OBJS)\test_archivetest.obj: .\archive\archivetest.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
260
dd65d8c8 261$(OBJS)\test_arrays.obj: .\arrays\arrays.cpp
e70833fb 262 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
4827cbd9 263
113e181a 264$(OBJS)\test_datetimetest.obj: .\datetime\datetimetest.cpp
bc10103e
VS
265 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
266
113e181a 267$(OBJS)\test_fileconftest.obj: .\fileconf\fileconftest.cpp
ab921f5f
RN
268 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
269
113e181a 270$(OBJS)\test_filenametest.obj: .\filename\filenametest.cpp
3fa86423
WS
271 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
272
113e181a 273$(OBJS)\test_filesystest.obj: .\filesys\filesystest.cpp
4827cbd9 274 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
cf1014a2 275
113e181a 276$(OBJS)\test_fontmaptest.obj: .\fontmap\fontmaptest.cpp
dd65d8c8
RN
277 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
278
113e181a 279$(OBJS)\test_formatconvertertest.obj: .\formatconverter\formatconvertertest.cpp
cf1014a2 280 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
1b035b8c 281
f9c3d39b
MB
282$(OBJS)\test_hashes.obj: .\hashes\hashes.cpp
283 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
284
113e181a 285$(OBJS)\test_longlongtest.obj: .\longlong\longlongtest.cpp
1b035b8c 286 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
7735998c 287
113e181a 288$(OBJS)\test_mbconvtest.obj: .\mbconv\mbconvtest.cpp
dd65d8c8
RN
289 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
290
113e181a 291$(OBJS)\test_regextest.obj: .\regex\regextest.cpp
dd65d8c8
RN
292 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
293
113e181a 294$(OBJS)\test_wxregextest.obj: .\regex\wxregextest.cpp
dd65d8c8
RN
295 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
296
1cd53e88
VS
297$(OBJS)\test_strings.obj: .\strings\strings.cpp
298 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
299
405b7d91
WS
300$(OBJS)\test_stdstrings.obj: .\strings\stdstrings.cpp
301 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
302
387f829e
VS
303$(OBJS)\test_unicode.obj: .\strings\unicode.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
305
cf8ee08b
VS
306$(OBJS)\test_crt.obj: .\strings\crt.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
308
7735998c
VS
309$(OBJS)\test_bstream.obj: .\streams\bstream.cpp
310 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
311
312$(OBJS)\test_ffilestream.obj: .\streams\ffilestream.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
314
315$(OBJS)\test_filestream.obj: .\streams\filestream.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
317
318$(OBJS)\test_memstream.obj: .\streams\memstream.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
320
c33fae85
RN
321$(OBJS)\test_sstream.obj: .\streams\sstream.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
323
8899b155
RN
324$(OBJS)\test_textstreamtest.obj: .\streams\textstreamtest.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
326
7735998c
VS
327$(OBJS)\test_zlibstream.obj: .\streams\zlibstream.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**
816b59de 329
dd65d8c8 330$(OBJS)\test_uris.obj: .\uris\uris.cpp
edcccd84 331 $(CXX) /c /nologo /TP /Fo$@ $(TEST_CXXFLAGS) $**