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_hyperlnk.obj \
43 $(OBJS)\widgets_listbox.obj \
44 $(OBJS)\widgets_notebook.obj \
45 $(OBJS)\widgets_picker.obj \
46 $(OBJS)\widgets_radiobox.obj \
47 $(OBJS)\widgets_slider.obj \
48 $(OBJS)\widgets_spinbtn.obj \
49 $(OBJS)\widgets_static.obj \
50 $(OBJS)\widgets_textctrl.obj \
51 $(OBJS)\widgets_toggle.obj \
52 $(OBJS)\widgets_widgets.obj
54 ### Conditionally set variables: ###
56 !if "$(USE_GUI)" == "0"
59 !if "$(USE_GUI)" == "1"
62 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
65 !if "$(DEBUG_FLAG)" == "1"
68 !if "$(UNICODE)" == "1"
71 !if "$(WXUNIV)" == "1"
74 !if "$(SHARED)" == "1"
77 !if "$(SHARED)" == "0"
80 !if "$(SHARED)" == "1"
83 !if "$(MONOLITHIC)" == "0"
86 !if "$(MONOLITHIC)" == "1"
89 !if "$(BUILD)" == "debug"
90 __OPTIMIZEFLAG_2 = -Od
92 !if "$(BUILD)" == "release"
93 __OPTIMIZEFLAG_2 = -O2
95 !if "$(USE_THREADS)" == "0"
98 !if "$(USE_THREADS)" == "1"
101 !if "$(USE_THREADS)" == "0"
104 !if "$(USE_THREADS)" == "1"
105 __THREADSFLAG_6 = -tWM
107 !if "$(RUNTIME_LIBS)" == "dynamic"
108 __RUNTIME_LIBS_7 = -tWR
110 !if "$(RUNTIME_LIBS)" == "static"
113 !if "$(RUNTIME_LIBS)" == "dynamic"
116 !if "$(RUNTIME_LIBS)" == "static"
119 !if "$(WXUNIV)" == "1"
120 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
122 !if "$(WXUNIV)" == "1"
123 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
125 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
128 !if "$(DEBUG_FLAG)" == "1"
129 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
134 !if "$(DEBUG_FLAG)" == "1"
135 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
137 !if "$(USE_EXCEPTIONS)" == "0"
138 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
140 !if "$(USE_EXCEPTIONS)" == "0"
141 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
143 !if "$(USE_RTTI)" == "0"
144 __RTTI_DEFINE_p = -DwxNO_RTTI
146 !if "$(USE_RTTI)" == "0"
147 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
149 !if "$(USE_THREADS)" == "0"
150 __THREAD_DEFINE_p = -DwxNO_THREADS
152 !if "$(USE_THREADS)" == "0"
153 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p = -D_UNICODE
158 !if "$(UNICODE)" == "1"
159 __UNICODE_DEFINE_p_1 = -d_UNICODE
162 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
165 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
167 !if "$(SHARED)" == "1"
168 __DLLFLAG_p = -DWXUSINGDLL
170 !if "$(SHARED)" == "1"
171 __DLLFLAG_p_1 = -dWXUSINGDLL
173 !if "$(MONOLITHIC)" == "0"
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
177 !if "$(MONOLITHIC)" == "0"
179 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
181 !if "$(MONOLITHIC)" == "0"
183 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
185 !if "$(MONOLITHIC)" == "0"
187 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
189 !if "$(MONOLITHIC)" == "1"
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
193 !if "$(USE_GUI)" == "1"
194 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
196 !if "$(USE_GUI)" == "1"
197 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
199 !if "$(USE_GUI)" == "1"
200 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
203 __UNICOWS_LIB_p = unicows.lib
205 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
208 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
211 !if "$(DEBUG_INFO)" == "0"
214 !if "$(DEBUG_INFO)" == "1"
221 -if not exist $(OBJS) mkdir $(OBJS)
225 all: $(OBJS)\widgets.exe
228 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
229 -if exist $(OBJS)\*.res del $(OBJS)\*.res
230 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
231 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
232 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
233 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
234 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
235 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
236 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
238 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
239 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
240 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
243 $(OBJS)\widgets_button.obj: .\button.cpp
244 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
246 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
247 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
249 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
250 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
252 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
253 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
255 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
256 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
258 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
259 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
261 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
262 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
264 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
265 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
267 $(OBJS)\widgets_picker.obj: .\picker.cpp
268 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
270 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
271 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
273 $(OBJS)\widgets_slider.obj: .\slider.cpp
274 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
276 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
277 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
279 $(OBJS)\widgets_static.obj: .\static.cpp
280 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
282 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
283 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
285 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
286 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
288 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
289 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
291 $(OBJS)\widgets_sample.res: .\..\sample.rc
292 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 $**