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_button.obj \
38 $(OBJS)\widgets_checkbox.obj \
39 $(OBJS)\widgets_combobox.obj \
40 $(OBJS)\widgets_datepick.obj \
41 $(OBJS)\widgets_gauge.obj \
42 $(OBJS)\widgets_listbox.obj \
43 $(OBJS)\widgets_notebook.obj \
44 $(OBJS)\widgets_radiobox.obj \
45 $(OBJS)\widgets_slider.obj \
46 $(OBJS)\widgets_spinbtn.obj \
47 $(OBJS)\widgets_static.obj \
48 $(OBJS)\widgets_textctrl.obj \
49 $(OBJS)\widgets_toggle.obj \
50 $(OBJS)\widgets_widgets.obj
52 ### Conditionally set variables: ###
54 !if "$(USE_GUI)" == "0"
57 !if "$(USE_GUI)" == "1"
60 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63 !if "$(DEBUG_FLAG)" == "1"
66 !if "$(UNICODE)" == "1"
69 !if "$(WXUNIV)" == "1"
72 !if "$(SHARED)" == "1"
75 !if "$(SHARED)" == "0"
78 !if "$(SHARED)" == "1"
81 !if "$(MONOLITHIC)" == "0"
84 !if "$(MONOLITHIC)" == "1"
87 !if "$(BUILD)" == "debug"
88 __OPTIMIZEFLAG_2 = -Od
90 !if "$(BUILD)" == "release"
91 __OPTIMIZEFLAG_2 = -O2
93 !if "$(USE_THREADS)" == "0"
96 !if "$(USE_THREADS)" == "1"
99 !if "$(USE_THREADS)" == "0"
102 !if "$(USE_THREADS)" == "1"
103 __THREADSFLAG_6 = -tWM
105 !if "$(RUNTIME_LIBS)" == "dynamic"
106 __RUNTIME_LIBS_7 = -tWR
108 !if "$(RUNTIME_LIBS)" == "static"
111 !if "$(RUNTIME_LIBS)" == "dynamic"
114 !if "$(RUNTIME_LIBS)" == "static"
117 !if "$(WXUNIV)" == "1"
118 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 !if "$(WXUNIV)" == "1"
121 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
123 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
126 !if "$(DEBUG_FLAG)" == "1"
127 __DEBUG_DEFINE_p = -D__WXDEBUG__
129 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
130 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
132 !if "$(DEBUG_FLAG)" == "1"
133 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
138 !if "$(USE_EXCEPTIONS)" == "0"
139 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
141 !if "$(USE_RTTI)" == "0"
142 __RTTI_DEFINE_p = -DwxNO_RTTI
144 !if "$(USE_RTTI)" == "0"
145 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
147 !if "$(USE_THREADS)" == "0"
148 __THREAD_DEFINE_p = -DwxNO_THREADS
150 !if "$(USE_THREADS)" == "0"
151 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
153 !if "$(UNICODE)" == "1"
154 __UNICODE_DEFINE_p = -D_UNICODE
156 !if "$(UNICODE)" == "1"
157 __UNICODE_DEFINE_p_1 = -d_UNICODE
160 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
163 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
165 !if "$(SHARED)" == "1"
166 __DLLFLAG_p = -DWXUSINGDLL
168 !if "$(SHARED)" == "1"
169 __DLLFLAG_p_1 = -dWXUSINGDLL
171 !if "$(MONOLITHIC)" == "0"
173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
175 !if "$(MONOLITHIC)" == "0"
177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
179 !if "$(MONOLITHIC)" == "0"
181 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
183 !if "$(MONOLITHIC)" == "0"
185 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
187 !if "$(MONOLITHIC)" == "1"
189 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
191 !if "$(USE_GUI)" == "1"
192 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
194 !if "$(USE_GUI)" == "1"
195 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
197 !if "$(USE_GUI)" == "1"
198 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
201 __UNICOWS_LIB_p = unicows.lib
203 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
206 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
209 !if "$(DEBUG_INFO)" == "0"
212 !if "$(DEBUG_INFO)" == "1"
219 -if not exist $(OBJS) mkdir $(OBJS)
223 all: $(OBJS)\widgets.exe
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
228 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
229 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
230 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
231 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
232 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
233 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
234 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
236 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
237 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
238 c0w32.obj $(WIDGETS_OBJECTS),$@,, $(__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
241 $(OBJS)\widgets_button.obj: .\button.cpp
242 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
244 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
245 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
247 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
248 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
250 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
251 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
253 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
254 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
256 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
257 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
259 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
260 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
262 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
263 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
265 $(OBJS)\widgets_slider.obj: .\slider.cpp
266 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
268 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
269 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
271 $(OBJS)\widgets_static.obj: .\static.cpp
272 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
274 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
275 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
277 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
278 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
280 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
281 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
283 $(OBJS)\widgets_sample.res: .\..\sample.rc
284 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 $**