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