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