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