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 # =========================================================================
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 -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH \
35 $(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_slider.obj \
54 $(OBJS)\widgets_spinbtn.obj \
55 $(OBJS)\widgets_static.obj \
56 $(OBJS)\widgets_textctrl.obj \
57 $(OBJS)\widgets_toggle.obj \
58 $(OBJS)\widgets_widgets.obj
60 ### Conditionally set variables: ###
62 !if "$(USE_GUI)" == "0"
65 !if "$(USE_GUI)" == "1"
68 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
71 !if "$(DEBUG_FLAG)" == "1"
74 !if "$(UNICODE)" == "1"
77 !if "$(WXUNIV)" == "1"
80 !if "$(SHARED)" == "1"
83 !if "$(SHARED)" == "0"
86 !if "$(SHARED)" == "1"
89 !if "$(MONOLITHIC)" == "0"
92 !if "$(MONOLITHIC)" == "1"
95 !if "$(BUILD)" == "debug"
96 __OPTIMIZEFLAG_2 = -Od
98 !if "$(BUILD)" == "release"
99 __OPTIMIZEFLAG_2 = -O2
101 !if "$(USE_THREADS)" == "0"
104 !if "$(USE_THREADS)" == "1"
107 !if "$(USE_THREADS)" == "0"
110 !if "$(USE_THREADS)" == "1"
111 __THREADSFLAG_6 = -tWM
113 !if "$(RUNTIME_LIBS)" == "dynamic"
114 __RUNTIME_LIBS_7 = -tWR
116 !if "$(RUNTIME_LIBS)" == "static"
119 !if "$(RUNTIME_LIBS)" == "dynamic"
122 !if "$(RUNTIME_LIBS)" == "static"
125 !if "$(WXUNIV)" == "1"
126 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
128 !if "$(WXUNIV)" == "1"
129 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
131 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132 __DEBUG_DEFINE_p = -D__WXDEBUG__
134 !if "$(DEBUG_FLAG)" == "1"
135 __DEBUG_DEFINE_p = -D__WXDEBUG__
137 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
138 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
140 !if "$(DEBUG_FLAG)" == "1"
141 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
143 !if "$(USE_EXCEPTIONS)" == "0"
144 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
146 !if "$(USE_EXCEPTIONS)" == "0"
147 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
149 !if "$(USE_RTTI)" == "0"
150 __RTTI_DEFINE_p = -DwxNO_RTTI
152 !if "$(USE_RTTI)" == "0"
153 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
155 !if "$(USE_THREADS)" == "0"
156 __THREAD_DEFINE_p = -DwxNO_THREADS
158 !if "$(USE_THREADS)" == "0"
159 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
161 !if "$(UNICODE)" == "1"
162 __UNICODE_DEFINE_p = -D_UNICODE
164 !if "$(UNICODE)" == "1"
165 __UNICODE_DEFINE_p_1 = -d_UNICODE
168 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
171 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
173 !if "$(SHARED)" == "1"
174 __DLLFLAG_p = -DWXUSINGDLL
176 !if "$(SHARED)" == "1"
177 __DLLFLAG_p_1 = -dWXUSINGDLL
179 !if "$(MONOLITHIC)" == "0"
181 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
183 !if "$(MONOLITHIC)" == "0"
185 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
187 !if "$(MONOLITHIC)" == "0"
189 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
191 !if "$(MONOLITHIC)" == "0"
193 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
195 !if "$(MONOLITHIC)" == "0"
197 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
199 !if "$(MONOLITHIC)" == "1"
201 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
203 !if "$(USE_GUI)" == "1"
204 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
206 !if "$(USE_GUI)" == "1"
207 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
209 !if "$(USE_GUI)" == "1"
210 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
213 __UNICOWS_LIB_p = unicows.lib
215 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
218 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
221 !if "$(DEBUG_INFO)" == "0"
224 !if "$(DEBUG_INFO)" == "1"
231 -if not exist $(OBJS) mkdir $(OBJS)
235 all: $(OBJS)\widgets.exe
238 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
239 -if exist $(OBJS)\*.res del $(OBJS)\*.res
240 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
241 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
242 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
243 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
244 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
245 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
246 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
248 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
249 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
250 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\widgets_sample.res
253 $(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp
254 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
256 $(OBJS)\widgets_button.obj: .\button.cpp
257 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
259 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
260 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
262 $(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp
263 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
265 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
266 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
268 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
269 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
271 $(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp
272 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
274 $(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp
275 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
277 $(OBJS)\widgets_filepicker.obj: .\filepicker.cpp
278 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
280 $(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp
281 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
283 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
284 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
286 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
287 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
289 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
290 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
292 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
293 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
295 $(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp
296 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
298 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
299 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
301 $(OBJS)\widgets_slider.obj: .\slider.cpp
302 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
304 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
305 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
307 $(OBJS)\widgets_static.obj: .\static.cpp
308 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
310 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
311 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
313 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
314 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
316 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
317 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
319 $(OBJS)\widgets_sample.res: .\..\sample.rc
320 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) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $**