]>
Commit | Line | Data |
---|---|---|
6f628073 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
77a7dfc1 | 3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) |
6f628073 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
2246169a | 6 | |
9bfe7ad9 VS |
7 | .autodepend |
8 | ||
0706fb23 | 9 | !ifndef BCCDIR |
9bfe7ad9 VS |
10 | !ifndef MAKEDIR |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
12 | !endif | |
0706fb23 VS |
13 | BCCDIR = $(MAKEDIR)\.. |
14 | !endif | |
6f628073 | 15 | |
fd9f42b6 | 16 | !include ../../build/msw/config.bcc |
6f628073 VS |
17 | |
18 | # ------------------------------------------------------------------------- | |
19 | # Do not modify the rest of this file! | |
20 | # ------------------------------------------------------------------------- | |
21 | ||
6f628073 VS |
22 | ### Variables: ### |
23 | ||
4cbcfb73 | 24 | WX_RELEASE_NODOT = 27 |
250700e4 RD |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 27 | LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
28 | SETUPHDIR = \ |
29 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
2113bc77 | 33 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
77a7dfc1 | 34 | -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH \ |
2113bc77 | 35 | $(CPPFLAGS) $(CXXFLAGS) |
25a73439 VS |
36 | WIDGETS_OBJECTS = \ |
37 | $(OBJS)\widgets_button.obj \ | |
8941fa88 | 38 | $(OBJS)\widgets_checkbox.obj \ |
25a73439 | 39 | $(OBJS)\widgets_combobox.obj \ |
f2fdc4d5 | 40 | $(OBJS)\widgets_datepick.obj \ |
25a73439 | 41 | $(OBJS)\widgets_gauge.obj \ |
f9300d42 | 42 | $(OBJS)\widgets_hyperlnk.obj \ |
25a73439 VS |
43 | $(OBJS)\widgets_listbox.obj \ |
44 | $(OBJS)\widgets_notebook.obj \ | |
137c8bde WS |
45 | $(OBJS)\widgets_clrpicker.obj \ |
46 | $(OBJS)\widgets_fontpicker.obj \ | |
47 | $(OBJS)\widgets_filepicker.obj \ | |
48 | $(OBJS)\widgets_dirpicker.obj \ | |
53a0475d | 49 | $(OBJS)\widgets_odcombobox.obj \ |
25a73439 VS |
50 | $(OBJS)\widgets_radiobox.obj \ |
51 | $(OBJS)\widgets_slider.obj \ | |
52 | $(OBJS)\widgets_spinbtn.obj \ | |
53 | $(OBJS)\widgets_static.obj \ | |
54 | $(OBJS)\widgets_textctrl.obj \ | |
32816f9a | 55 | $(OBJS)\widgets_toggle.obj \ |
25a73439 | 56 | $(OBJS)\widgets_widgets.obj |
6f628073 VS |
57 | |
58 | ### Conditionally set variables: ### | |
59 | ||
60 | !if "$(USE_GUI)" == "0" | |
61 | PORTNAME = base | |
62 | !endif | |
63 | !if "$(USE_GUI)" == "1" | |
64 | PORTNAME = msw | |
65 | !endif | |
25a73439 VS |
66 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
67 | WXDEBUGFLAG = d | |
68 | !endif | |
69 | !if "$(DEBUG_FLAG)" == "1" | |
6f628073 VS |
70 | WXDEBUGFLAG = d |
71 | !endif | |
6f628073 VS |
72 | !if "$(UNICODE)" == "1" |
73 | WXUNICODEFLAG = u | |
2246169a | 74 | !endif |
6f628073 VS |
75 | !if "$(WXUNIV)" == "1" |
76 | WXUNIVNAME = univ | |
77 | !endif | |
6f628073 | 78 | !if "$(SHARED)" == "1" |
b17c1746 | 79 | WXDLLFLAG = dll |
25a73439 | 80 | !endif |
b14abf14 JS |
81 | !if "$(SHARED)" == "0" |
82 | LIBTYPE_SUFFIX = lib | |
83 | !endif | |
84 | !if "$(SHARED)" == "1" | |
85 | LIBTYPE_SUFFIX = dll | |
86 | !endif | |
dd65d8c8 RN |
87 | !if "$(MONOLITHIC)" == "0" |
88 | EXTRALIBS_FOR_BASE = | |
89 | !endif | |
90 | !if "$(MONOLITHIC)" == "1" | |
91 | EXTRALIBS_FOR_BASE = | |
92 | !endif | |
250700e4 RD |
93 | !if "$(BUILD)" == "debug" |
94 | __OPTIMIZEFLAG_2 = -Od | |
95 | !endif | |
96 | !if "$(BUILD)" == "release" | |
97 | __OPTIMIZEFLAG_2 = -O2 | |
98 | !endif | |
8c9f8f91 JS |
99 | !if "$(USE_THREADS)" == "0" |
100 | __THREADSFLAG_5 = | |
101 | !endif | |
102 | !if "$(USE_THREADS)" == "1" | |
103 | __THREADSFLAG_5 = mt | |
104 | !endif | |
105 | !if "$(USE_THREADS)" == "0" | |
106 | __THREADSFLAG_6 = | |
107 | !endif | |
108 | !if "$(USE_THREADS)" == "1" | |
109 | __THREADSFLAG_6 = -tWM | |
110 | !endif | |
250700e4 | 111 | !if "$(RUNTIME_LIBS)" == "dynamic" |
8c9f8f91 | 112 | __RUNTIME_LIBS_7 = -tWR |
250700e4 RD |
113 | !endif |
114 | !if "$(RUNTIME_LIBS)" == "static" | |
8c9f8f91 | 115 | __RUNTIME_LIBS_7 = |
250700e4 RD |
116 | !endif |
117 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
8c9f8f91 | 118 | __RUNTIME_LIBS_8 = i |
250700e4 RD |
119 | !endif |
120 | !if "$(RUNTIME_LIBS)" == "static" | |
8c9f8f91 | 121 | __RUNTIME_LIBS_8 = |
250700e4 | 122 | !endif |
b17c1746 DE |
123 | !if "$(WXUNIV)" == "1" |
124 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
125 | !endif | |
126 | !if "$(WXUNIV)" == "1" | |
127 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
128 | !endif | |
129 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
130 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
131 | !endif | |
132 | !if "$(DEBUG_FLAG)" == "1" | |
133 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
134 | !endif | |
135 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
136 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
137 | !endif | |
138 | !if "$(DEBUG_FLAG)" == "1" | |
139 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
140 | !endif | |
8c9f8f91 JS |
141 | !if "$(USE_EXCEPTIONS)" == "0" |
142 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
143 | !endif | |
144 | !if "$(USE_EXCEPTIONS)" == "0" | |
145 | __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS | |
146 | !endif | |
147 | !if "$(USE_RTTI)" == "0" | |
148 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
149 | !endif | |
150 | !if "$(USE_RTTI)" == "0" | |
151 | __RTTI_DEFINE_p_1 = -dwxNO_RTTI | |
152 | !endif | |
153 | !if "$(USE_THREADS)" == "0" | |
154 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
155 | !endif | |
156 | !if "$(USE_THREADS)" == "0" | |
157 | __THREAD_DEFINE_p_1 = -dwxNO_THREADS | |
158 | !endif | |
6f628073 | 159 | !if "$(UNICODE)" == "1" |
ec08d395 | 160 | __UNICODE_DEFINE_p = -D_UNICODE |
6f628073 VS |
161 | !endif |
162 | !if "$(UNICODE)" == "1" | |
ec08d395 | 163 | __UNICODE_DEFINE_p_1 = -d_UNICODE |
6f628073 | 164 | !endif |
2113bc77 MW |
165 | !if "$(MSLU)" == "1" |
166 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
167 | !endif | |
168 | !if "$(MSLU)" == "1" | |
169 | __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1 | |
170 | !endif | |
b17c1746 DE |
171 | !if "$(SHARED)" == "1" |
172 | __DLLFLAG_p = -DWXUSINGDLL | |
4e209a20 | 173 | !endif |
b17c1746 DE |
174 | !if "$(SHARED)" == "1" |
175 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
0706fb23 VS |
176 | !endif |
177 | !if "$(MONOLITHIC)" == "0" | |
137c8bde WS |
178 | __WXLIB_XML_p = \ |
179 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib | |
180 | !endif | |
181 | !if "$(MONOLITHIC)" == "0" | |
f2fdc4d5 WS |
182 | __WXLIB_ADV_p = \ |
183 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib | |
184 | !endif | |
185 | !if "$(MONOLITHIC)" == "0" | |
186 | __WXLIB_HTML_p = \ | |
187 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib | |
188 | !endif | |
189 | !if "$(MONOLITHIC)" == "0" | |
250700e4 | 190 | __WXLIB_CORE_p = \ |
c33fae85 | 191 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
6f628073 | 192 | !endif |
b17c1746 | 193 | !if "$(MONOLITHIC)" == "0" |
c33fae85 RN |
194 | __WXLIB_BASE_p = \ |
195 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 196 | !endif |
6f628073 | 197 | !if "$(MONOLITHIC)" == "1" |
250700e4 | 198 | __WXLIB_MONO_p = \ |
c33fae85 | 199 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
6f628073 | 200 | !endif |
b17c1746 | 201 | !if "$(USE_GUI)" == "1" |
9c2d002b | 202 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
6f628073 | 203 | !endif |
b17c1746 | 204 | !if "$(USE_GUI)" == "1" |
9c2d002b | 205 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
b17c1746 DE |
206 | !endif |
207 | !if "$(USE_GUI)" == "1" | |
9c2d002b | 208 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
209 | !endif |
210 | !if "$(MSLU)" == "1" | |
211 | __UNICOWS_LIB_p = unicows.lib | |
212 | !endif | |
b17c1746 DE |
213 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
214 | __DEBUGINFO = -v | |
215 | !endif | |
216 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
217 | __DEBUGINFO = -v- | |
218 | !endif | |
219 | !if "$(DEBUG_INFO)" == "0" | |
220 | __DEBUGINFO = -v- | |
221 | !endif | |
222 | !if "$(DEBUG_INFO)" == "1" | |
223 | __DEBUGINFO = -v | |
6f628073 VS |
224 | !endif |
225 | ||
226 | ||
227 | all: $(OBJS) | |
228 | $(OBJS): | |
229 | -if not exist $(OBJS) mkdir $(OBJS) | |
230 | ||
231 | ### Targets: ### | |
232 | ||
233 | all: $(OBJS)\widgets.exe | |
234 | ||
b17c1746 DE |
235 | clean: |
236 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
237 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
b14abf14 | 238 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
b17c1746 DE |
239 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe |
240 | -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds | |
241 | -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc | |
242 | -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild | |
243 | -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf | |
244 | -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils | |
245 | ||
f2fdc4d5 | 246 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res |
b17c1746 | 247 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
137c8bde | 248 | 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 |
b17c1746 DE |
249 | | |
250 | ||
6f628073 | 251 | $(OBJS)\widgets_button.obj: .\button.cpp |
0706fb23 | 252 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 | 253 | |
8941fa88 VZ |
254 | $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp |
255 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
256 | ||
6f628073 | 257 | $(OBJS)\widgets_combobox.obj: .\combobox.cpp |
0706fb23 | 258 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 | 259 | |
f2fdc4d5 WS |
260 | $(OBJS)\widgets_datepick.obj: .\datepick.cpp |
261 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
262 | ||
6f628073 | 263 | $(OBJS)\widgets_gauge.obj: .\gauge.cpp |
0706fb23 | 264 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 | 265 | |
f9300d42 WS |
266 | $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp |
267 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
268 | ||
6f628073 | 269 | $(OBJS)\widgets_listbox.obj: .\listbox.cpp |
0706fb23 | 270 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
271 | |
272 | $(OBJS)\widgets_notebook.obj: .\notebook.cpp | |
ec376c8f VZ |
273 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
274 | ||
137c8bde WS |
275 | $(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp |
276 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
277 | ||
278 | $(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp | |
279 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
280 | ||
281 | $(OBJS)\widgets_filepicker.obj: .\filepicker.cpp | |
282 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
283 | ||
284 | $(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp | |
53a0475d WS |
285 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
286 | ||
287 | $(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp | |
0706fb23 | 288 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
289 | |
290 | $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp | |
0706fb23 | 291 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
292 | |
293 | $(OBJS)\widgets_slider.obj: .\slider.cpp | |
0706fb23 | 294 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
295 | |
296 | $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp | |
0706fb23 | 297 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
298 | |
299 | $(OBJS)\widgets_static.obj: .\static.cpp | |
0706fb23 | 300 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 VS |
301 | |
302 | $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp | |
0706fb23 | 303 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 | 304 | |
32816f9a WS |
305 | $(OBJS)\widgets_toggle.obj: .\toggle.cpp |
306 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** | |
307 | ||
6f628073 | 308 | $(OBJS)\widgets_widgets.obj: .\widgets.cpp |
0706fb23 | 309 | $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $** |
6f628073 | 310 | |
f2fdc4d5 | 311 | $(OBJS)\widgets_sample.res: .\..\sample.rc |
77a7dfc1 | 312 | 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 $** |
b14abf14 | 313 |