1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 WIDGETS_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
20 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\widgets.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
23 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(CXXFLAGS) \
24 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9)
26 $(OBJS)\widgets_button.obj \
27 $(OBJS)\widgets_checkbox.obj \
28 $(OBJS)\widgets_combobox.obj \
29 $(OBJS)\widgets_gauge.obj \
30 $(OBJS)\widgets_listbox.obj \
31 $(OBJS)\widgets_notebook.obj \
32 $(OBJS)\widgets_radiobox.obj \
33 $(OBJS)\widgets_slider.obj \
34 $(OBJS)\widgets_spinbtn.obj \
35 $(OBJS)\widgets_static.obj \
36 $(OBJS)\widgets_textctrl.obj \
37 $(OBJS)\widgets_widgets.obj \
38 $(OBJS)\widgets_widgets.res
40 ### Conditionally set variables: ###
42 !if "$(SHARED)" == "0"
43 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
45 !if "$(SHARED)" == "1"
46 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
48 !if "$(USE_GUI)" == "0"
51 !if "$(USE_GUI)" == "1"
54 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 !if "$(DEBUG_FLAG)" == "1"
60 !if "$(SHARED)" == "1"
63 !if "$(UNICODE)" == "1"
66 !if "$(WXUNIV)" == "1"
69 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
72 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
75 !if "$(DEBUG_INFO)" == "0"
78 !if "$(DEBUG_INFO)" == "1"
81 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
82 __DEBUGINFO_1 = /DEBUG
84 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87 !if "$(DEBUG_INFO)" == "0"
90 !if "$(DEBUG_INFO)" == "1"
91 __DEBUGINFO_1 = /DEBUG
93 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
96 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
99 !if "$(DEBUG_INFO)" == "0"
102 !if "$(DEBUG_INFO)" == "1"
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
111 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
112 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
114 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
115 __DEBUG_DEFINE_p = /D__WXDEBUG__
117 !if "$(DEBUG_FLAG)" == "1"
118 __DEBUG_DEFINE_p = /D__WXDEBUG__
120 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
121 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
123 !if "$(DEBUG_FLAG)" == "1"
124 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
126 !if "$(SHARED)" == "1"
127 __DLLFLAG_p = /DWXUSINGDLL
129 !if "$(SHARED)" == "1"
130 __DLLFLAG_p_1 = /d WXUSINGDLL
132 !if "$(USE_EXCEPTIONS)" == "0"
135 !if "$(USE_EXCEPTIONS)" == "1"
136 __EXCEPTIONSFLAG_8 = /GR
138 !if "$(USE_EXCEPTIONS)" == "0"
141 !if "$(USE_EXCEPTIONS)" == "1"
142 __EXCEPTIONSFLAG_9 = /GX
144 !if "$(USE_GUI)" == "1"
145 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
147 !if "$(USE_GUI)" == "1"
148 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
150 !if "$(USE_GUI)" == "1"
151 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
153 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
154 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
156 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
157 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
159 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
160 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
162 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
163 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
165 !if "$(BUILD)" == "debug"
166 __OPTIMIZEFLAG_4 = /Od
168 !if "$(BUILD)" == "release"
169 __OPTIMIZEFLAG_4 = /O2
171 !if "$(RUNTIME_LIBS)" == "dynamic"
174 !if "$(RUNTIME_LIBS)" == "static"
177 !if "$(UNICODE)" == "1"
178 __UNICODE_DEFINE_p = /D_UNICODE
180 !if "$(UNICODE)" == "1"
181 __UNICODE_DEFINE_p_1 = /d _UNICODE
184 __UNICOWS_LIB_p = unicows.lib
186 !if "$(MONOLITHIC)" == "0"
187 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
189 !if "$(MONOLITHIC)" == "0"
191 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
193 !if "$(MONOLITHIC)" == "1"
195 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
197 !if "$(WXUNIV)" == "1"
198 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
200 !if "$(WXUNIV)" == "1"
201 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
203 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
204 ____DEBUGINFO_2_p = /D_DEBUG
206 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
209 !if "$(DEBUG_INFO)" == "0"
212 !if "$(DEBUG_INFO)" == "1"
213 ____DEBUGINFO_2_p = /D_DEBUG
215 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
216 ____DEBUGINFO_2_p_1 = /d _DEBUG
218 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
219 ____DEBUGINFO_2_p_1 =
221 !if "$(DEBUG_INFO)" == "0"
222 ____DEBUGINFO_2_p_1 =
224 !if "$(DEBUG_INFO)" == "1"
225 ____DEBUGINFO_2_p_1 = /d _DEBUG
227 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
228 ____DEBUGRUNTIME_2_p =
230 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
231 ____DEBUGRUNTIME_2_p = /D_DEBUG
233 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
234 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
236 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
237 ____DEBUGRUNTIME_2_p_1 =
239 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
240 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
242 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
243 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
249 -if not exist $(OBJS) mkdir $(OBJS)
253 all: $(OBJS)\widgets.exe
255 $(OBJS)\widgets_button.obj: .\button.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
258 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
261 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
264 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
267 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
270 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
273 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
274 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
276 $(OBJS)\widgets_slider.obj: .\slider.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
279 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
282 $(OBJS)\widgets_static.obj: .\static.cpp
283 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
285 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
286 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
288 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
289 $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
291 $(OBJS)\widgets_widgets.res: .\widgets.rc
292 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**
295 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
296 -if exist $(OBJS)\*.res del $(OBJS)\*.res
297 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
298 -if exist $(OBJS)\widgets.ilk del $(OBJS)\widgets.ilk
299 -if exist $(OBJS)\widgets.pdb del $(OBJS)\widgets.pdb
301 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets.res
302 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
303 $(WIDGETS_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib