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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 WIDGETS_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
35 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\widgets_bmpcombobox.obj \
38 $(OBJS)\widgets_button.obj \
39 $(OBJS)\widgets_checkbox.obj \
40 $(OBJS)\widgets_clrpicker.obj \
41 $(OBJS)\widgets_combobox.obj \
42 $(OBJS)\widgets_datepick.obj \
43 $(OBJS)\widgets_dirctrl.obj \
44 $(OBJS)\widgets_dirpicker.obj \
45 $(OBJS)\widgets_filepicker.obj \
46 $(OBJS)\widgets_fontpicker.obj \
47 $(OBJS)\widgets_gauge.obj \
48 $(OBJS)\widgets_hyperlnk.obj \
49 $(OBJS)\widgets_listbox.obj \
50 $(OBJS)\widgets_notebook.obj \
51 $(OBJS)\widgets_odcombobox.obj \
52 $(OBJS)\widgets_radiobox.obj \
53 $(OBJS)\widgets_searchctrl.obj \
54 $(OBJS)\widgets_slider.obj \
55 $(OBJS)\widgets_spinbtn.obj \
56 $(OBJS)\widgets_static.obj \
57 $(OBJS)\widgets_textctrl.obj \
58 $(OBJS)\widgets_toggle.obj \
59 $(OBJS)\widgets_widgets.obj
61 ### Conditionally set variables: ###
63 !if "$(USE_GUI)" == "0"
66 !if "$(USE_GUI)" == "1"
69 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
72 !if "$(DEBUG_FLAG)" == "1"
75 !if "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
81 !if "$(SHARED)" == "1"
84 !if "$(SHARED)" == "0"
87 !if "$(SHARED)" == "1"
90 !if "$(MONOLITHIC)" == "0"
93 !if "$(MONOLITHIC)" == "1"
96 !if "$(BUILD)" == "debug"
97 __OPTIMIZEFLAG_2 = -Od
99 !if "$(BUILD)" == "release"
100 __OPTIMIZEFLAG_2 = -O2
102 !if "$(USE_THREADS)" == "0"
105 !if "$(USE_THREADS)" == "1"
108 !if "$(USE_THREADS)" == "0"
111 !if "$(USE_THREADS)" == "1"
112 __THREADSFLAG_6 = -tWM
114 !if "$(RUNTIME_LIBS)" == "dynamic"
115 __RUNTIME_LIBS_7 = -tWR
117 !if "$(RUNTIME_LIBS)" == "static"
120 !if "$(RUNTIME_LIBS)" == "dynamic"
123 !if "$(RUNTIME_LIBS)" == "static"
126 !if "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129 !if "$(WXUNIV)" == "1"
130 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
132 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
133 __DEBUG_DEFINE_p = -D__WXDEBUG__
135 !if "$(DEBUG_FLAG)" == "1"
136 __DEBUG_DEFINE_p = -D__WXDEBUG__
138 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
139 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
141 !if "$(DEBUG_FLAG)" == "1"
142 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
144 !if "$(USE_EXCEPTIONS)" == "0"
145 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
147 !if "$(USE_EXCEPTIONS)" == "0"
148 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
150 !if "$(USE_RTTI)" == "0"
151 __RTTI_DEFINE_p = -DwxNO_RTTI
153 !if "$(USE_RTTI)" == "0"
154 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
156 !if "$(USE_THREADS)" == "0"
157 __THREAD_DEFINE_p = -DwxNO_THREADS
159 !if "$(USE_THREADS)" == "0"
160 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
162 !if "$(UNICODE)" == "1"
163 __UNICODE_DEFINE_p = -D_UNICODE
165 !if "$(UNICODE)" == "1"
166 __UNICODE_DEFINE_p_1 = -d_UNICODE
169 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
172 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
174 !if "$(USE_GDIPLUS)" == "1"
175 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
177 !if "$(USE_GDIPLUS)" == "1"
178 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
180 !if "$(SHARED)" == "1"
181 __DLLFLAG_p = -DWXUSINGDLL
183 !if "$(SHARED)" == "1"
184 __DLLFLAG_p_1 = -dWXUSINGDLL
186 !if "$(MONOLITHIC)" == "0"
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
190 !if "$(MONOLITHIC)" == "0"
192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
194 !if "$(MONOLITHIC)" == "0"
196 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
198 !if "$(MONOLITHIC)" == "0"
200 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
202 !if "$(MONOLITHIC)" == "0"
204 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
206 !if "$(MONOLITHIC)" == "1"
208 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
213 !if "$(USE_GUI)" == "1"
214 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
216 !if "$(USE_GUI)" == "1"
217 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
220 __UNICOWS_LIB_p = unicows.lib
222 !if "$(USE_GDIPLUS)" == "1"
223 __GDIPLUS_LIB_p = gdiplus.lib
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(OBJS)\widgets.exe
248 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
249 -if exist $(OBJS)\*.res del $(OBJS)\*.res
250 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
251 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
252 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
253 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
254 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
255 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
256 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
258 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
259 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
260 c0w32.obj $(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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\widgets_sample.res
263 $(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp
264 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
266 $(OBJS)\widgets_button.obj: .\button.cpp
267 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
269 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
270 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
272 $(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp
273 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
275 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
276 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
278 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
279 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
281 $(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp
282 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
284 $(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp
285 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
287 $(OBJS)\widgets_filepicker.obj: .\filepicker.cpp
288 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
290 $(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp
291 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
293 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
294 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
296 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
297 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
299 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
300 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
302 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
303 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
305 $(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp
306 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
308 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
309 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
311 $(OBJS)\widgets_searchctrl.obj: .\searchctrl.cpp
312 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
314 $(OBJS)\widgets_slider.obj: .\slider.cpp
315 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
317 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
318 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
320 $(OBJS)\widgets_static.obj: .\static.cpp
321 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
323 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
324 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
326 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
327 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
329 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
330 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
332 $(OBJS)\widgets_sample.res: .\..\sample.rc
333 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -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) -i.\..\..\samples -dNOPCH $**