]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.vc
fix the tests to pass with both gcc and msvc (2nd part of patch 1462778)
[wxWidgets.git] / samples / widgets / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
15 WX_RELEASE_NODOT = 27
16 OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18 LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 WIDGETS_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO_0) /Fd$(OBJS)\widgets.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
27 /I.\..\..\samples /DNOPCH $(__RTTIFLAG_9) $(__EXCEPTIONSFLAG_10) $(CPPFLAGS) \
28 $(CXXFLAGS)
29 WIDGETS_OBJECTS = \
30 $(OBJS)\widgets_button.obj \
31 $(OBJS)\widgets_checkbox.obj \
32 $(OBJS)\widgets_combobox.obj \
33 $(OBJS)\widgets_datepick.obj \
34 $(OBJS)\widgets_gauge.obj \
35 $(OBJS)\widgets_hyperlnk.obj \
36 $(OBJS)\widgets_listbox.obj \
37 $(OBJS)\widgets_notebook.obj \
38 $(OBJS)\widgets_radiobox.obj \
39 $(OBJS)\widgets_slider.obj \
40 $(OBJS)\widgets_spinbtn.obj \
41 $(OBJS)\widgets_static.obj \
42 $(OBJS)\widgets_textctrl.obj \
43 $(OBJS)\widgets_toggle.obj \
44 $(OBJS)\widgets_widgets.obj \
45 $(OBJS)\widgets_sample.res
46
47 ### Conditionally set variables: ###
48
49 !if "$(USE_GUI)" == "0"
50 PORTNAME = base
51 !endif
52 !if "$(USE_GUI)" == "1"
53 PORTNAME = msw
54 !endif
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56 WXDEBUGFLAG = d
57 !endif
58 !if "$(DEBUG_FLAG)" == "1"
59 WXDEBUGFLAG = d
60 !endif
61 !if "$(UNICODE)" == "1"
62 WXUNICODEFLAG = u
63 !endif
64 !if "$(WXUNIV)" == "1"
65 WXUNIVNAME = univ
66 !endif
67 !if "$(TARGET_CPU)" == "amd64"
68 DIR_SUFFIX_CPU = _amd64
69 !endif
70 !if "$(TARGET_CPU)" == "amd64"
71 DIR_SUFFIX_CPU = _amd64
72 !endif
73 !if "$(TARGET_CPU)" == "ia64"
74 DIR_SUFFIX_CPU = _ia64
75 !endif
76 !if "$(TARGET_CPU)" == "ia64"
77 DIR_SUFFIX_CPU = _ia64
78 !endif
79 !if "$(SHARED)" == "1"
80 WXDLLFLAG = dll
81 !endif
82 !if "$(SHARED)" == "0"
83 LIBTYPE_SUFFIX = lib
84 !endif
85 !if "$(SHARED)" == "1"
86 LIBTYPE_SUFFIX = dll
87 !endif
88 !if "$(TARGET_CPU)" == "amd64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
90 !endif
91 !if "$(TARGET_CPU)" == "amd64"
92 LINK_TARGET_CPU = /MACHINE:AMD64
93 !endif
94 !if "$(TARGET_CPU)" == "ia64"
95 LINK_TARGET_CPU = /MACHINE:IA64
96 !endif
97 !if "$(TARGET_CPU)" == "ia64"
98 LINK_TARGET_CPU = /MACHINE:IA64
99 !endif
100 !if "$(MONOLITHIC)" == "0"
101 EXTRALIBS_FOR_BASE =
102 !endif
103 !if "$(MONOLITHIC)" == "1"
104 EXTRALIBS_FOR_BASE =
105 !endif
106 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
107 __DEBUGINFO_0 = /Zi
108 !endif
109 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
110 __DEBUGINFO_0 =
111 !endif
112 !if "$(DEBUG_INFO)" == "0"
113 __DEBUGINFO_0 =
114 !endif
115 !if "$(DEBUG_INFO)" == "1"
116 __DEBUGINFO_0 = /Zi
117 !endif
118 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
119 __DEBUGINFO_1 = /DEBUG
120 !endif
121 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
122 __DEBUGINFO_1 =
123 !endif
124 !if "$(DEBUG_INFO)" == "0"
125 __DEBUGINFO_1 =
126 !endif
127 !if "$(DEBUG_INFO)" == "1"
128 __DEBUGINFO_1 = /DEBUG
129 !endif
130 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
131 ____DEBUGRUNTIME_2_p = /D_DEBUG
132 !endif
133 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
134 ____DEBUGRUNTIME_2_p =
135 !endif
136 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
137 ____DEBUGRUNTIME_2_p =
138 !endif
139 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
140 ____DEBUGRUNTIME_2_p = /D_DEBUG
141 !endif
142 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
143 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
144 !endif
145 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
146 ____DEBUGRUNTIME_2_p_1 =
147 !endif
148 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
149 ____DEBUGRUNTIME_2_p_1 =
150 !endif
151 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
152 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
153 !endif
154 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
155 __DEBUGRUNTIME_3 = d
156 !endif
157 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
158 __DEBUGRUNTIME_3 =
159 !endif
160 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
161 __DEBUGRUNTIME_3 =
162 !endif
163 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
164 __DEBUGRUNTIME_3 = d
165 !endif
166 !if "$(BUILD)" == "debug"
167 __OPTIMIZEFLAG_4 = /Od
168 !endif
169 !if "$(BUILD)" == "release"
170 __OPTIMIZEFLAG_4 = /O2
171 !endif
172 !if "$(USE_THREADS)" == "0"
173 __THREADSFLAG_7 = L
174 !endif
175 !if "$(USE_THREADS)" == "1"
176 __THREADSFLAG_7 = T
177 !endif
178 !if "$(RUNTIME_LIBS)" == "dynamic"
179 __RUNTIME_LIBS_8 = D
180 !endif
181 !if "$(RUNTIME_LIBS)" == "static"
182 __RUNTIME_LIBS_8 = $(__THREADSFLAG_7)
183 !endif
184 !if "$(USE_RTTI)" == "0"
185 __RTTIFLAG_9 =
186 !endif
187 !if "$(USE_RTTI)" == "1"
188 __RTTIFLAG_9 = /GR
189 !endif
190 !if "$(USE_EXCEPTIONS)" == "0"
191 __EXCEPTIONSFLAG_10 =
192 !endif
193 !if "$(USE_EXCEPTIONS)" == "1"
194 __EXCEPTIONSFLAG_10 = /EHsc
195 !endif
196 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
197 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
198 !endif
199 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
200 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
201 !endif
202 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
203 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
204 !endif
205 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
206 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
207 !endif
208 !if "$(WXUNIV)" == "1"
209 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
210 !endif
211 !if "$(WXUNIV)" == "1"
212 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
213 !endif
214 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
215 __DEBUG_DEFINE_p = /D__WXDEBUG__
216 !endif
217 !if "$(DEBUG_FLAG)" == "1"
218 __DEBUG_DEFINE_p = /D__WXDEBUG__
219 !endif
220 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
221 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
222 !endif
223 !if "$(DEBUG_FLAG)" == "1"
224 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
225 !endif
226 !if "$(USE_EXCEPTIONS)" == "0"
227 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
228 !endif
229 !if "$(USE_EXCEPTIONS)" == "0"
230 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
231 !endif
232 !if "$(USE_RTTI)" == "0"
233 __RTTI_DEFINE_p = /DwxNO_RTTI
234 !endif
235 !if "$(USE_RTTI)" == "0"
236 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
237 !endif
238 !if "$(USE_THREADS)" == "0"
239 __THREAD_DEFINE_p = /DwxNO_THREADS
240 !endif
241 !if "$(USE_THREADS)" == "0"
242 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
243 !endif
244 !if "$(UNICODE)" == "1"
245 __UNICODE_DEFINE_p = /D_UNICODE
246 !endif
247 !if "$(UNICODE)" == "1"
248 __UNICODE_DEFINE_p_1 = /d _UNICODE
249 !endif
250 !if "$(MSLU)" == "1"
251 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
252 !endif
253 !if "$(MSLU)" == "1"
254 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
255 !endif
256 !if "$(SHARED)" == "1"
257 __DLLFLAG_p = /DWXUSINGDLL
258 !endif
259 !if "$(SHARED)" == "1"
260 __DLLFLAG_p_1 = /d WXUSINGDLL
261 !endif
262 !if "$(MONOLITHIC)" == "0"
263 __WXLIB_ADV_p = \
264 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
265 !endif
266 !if "$(MONOLITHIC)" == "0"
267 __WXLIB_HTML_p = \
268 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
269 !endif
270 !if "$(MONOLITHIC)" == "0"
271 __WXLIB_CORE_p = \
272 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
273 !endif
274 !if "$(MONOLITHIC)" == "0"
275 __WXLIB_BASE_p = \
276 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
277 !endif
278 !if "$(MONOLITHIC)" == "1"
279 __WXLIB_MONO_p = \
280 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
281 !endif
282 !if "$(USE_GUI)" == "1"
283 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
284 !endif
285 !if "$(USE_GUI)" == "1"
286 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
287 !endif
288 !if "$(USE_GUI)" == "1"
289 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
290 !endif
291 !if "$(MSLU)" == "1"
292 __UNICOWS_LIB_p = unicows.lib
293 !endif
294
295
296 all: $(OBJS)
297 $(OBJS):
298 -if not exist $(OBJS) mkdir $(OBJS)
299
300 ### Targets: ###
301
302 all: $(OBJS)\widgets.exe
303
304 clean:
305 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
306 -if exist $(OBJS)\*.res del $(OBJS)\*.res
307 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
308 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
309 -if exist $(OBJS)\widgets.ilk del $(OBJS)\widgets.ilk
310 -if exist $(OBJS)\widgets.pdb del $(OBJS)\widgets.pdb
311
312 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
313 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
314 $(WIDGETS_OBJECTS) $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__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) 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
315 <<
316
317 $(OBJS)\widgets_button.obj: .\button.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
319
320 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
321 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
322
323 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
325
326 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
327 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
328
329 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
330 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
331
332 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
333 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
334
335 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
336 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
337
338 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
339 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
340
341 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
342 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
343
344 $(OBJS)\widgets_slider.obj: .\slider.cpp
345 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
346
347 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
348 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
349
350 $(OBJS)\widgets_static.obj: .\static.cpp
351 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
352
353 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
354 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
355
356 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
357 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
358
359 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
360 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
361
362 $(OBJS)\widgets_sample.res: .\..\sample.rc
363 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH $**
364