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_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 "$(USE_GDIPLUS)" == "1"
174 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
176 !if "$(USE_GDIPLUS)" == "1"
177 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
179 !if "$(SHARED)" == "1"
180 __DLLFLAG_p = -DWXUSINGDLL
182 !if "$(SHARED)" == "1"
183 __DLLFLAG_p_1 = -dWXUSINGDLL
185 !if "$(MONOLITHIC)" == "0"
187 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
189 !if "$(MONOLITHIC)" == "0"
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
193 !if "$(MONOLITHIC)" == "0"
195 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
197 !if "$(MONOLITHIC)" == "0"
199 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
201 !if "$(MONOLITHIC)" == "0"
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
205 !if "$(MONOLITHIC)" == "1"
207 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
209 !if "$(USE_GUI)" == "1"
210 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
212 !if "$(USE_GUI)" == "1"
213 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
215 !if "$(USE_GUI)" == "1"
216 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
219 __UNICOWS_LIB_p = unicows.lib
221 !if "$(USE_GDIPLUS)" == "1"
222 __GDIPLUS_LIB_p = gdiplus.lib
224 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
227 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
230 !if "$(DEBUG_INFO)" == "0"
233 !if "$(DEBUG_INFO)" == "1"
240 -if not exist $(OBJS) mkdir $(OBJS)
244 all: $(OBJS)\widgets.exe
247 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
248 -if exist $(OBJS)\*.res del $(OBJS)\*.res
249 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
250 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
251 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
252 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
253 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
254 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
255 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
257 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
258 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
259 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
262 $(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp
263 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
265 $(OBJS)\widgets_button.obj: .\button.cpp
266 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
268 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
269 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
271 $(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp
272 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
274 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
275 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
277 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
278 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
280 $(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp
281 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
283 $(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp
284 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
286 $(OBJS)\widgets_filepicker.obj: .\filepicker.cpp
287 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
289 $(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp
290 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
292 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
293 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
295 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
296 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
298 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
299 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
301 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
302 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
304 $(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp
305 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
307 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
308 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
310 $(OBJS)\widgets_slider.obj: .\slider.cpp
311 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
313 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
314 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
316 $(OBJS)\widgets_static.obj: .\static.cpp
317 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
319 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
320 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
322 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
323 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
325 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
326 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
328 $(OBJS)\widgets_sample.res: .\..\sample.rc
329 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 $**