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