]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.bcc
e8d0accc26037d6628411d1e030089299634b571
[wxWidgets.git] / samples / widgets / makefile.bcc
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 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 27
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28 SETUPHDIR = \
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)
36 WIDGETS_OBJECTS = \
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
53
54 ### Conditionally set variables: ###
55
56 !if "$(USE_GUI)" == "0"
57 PORTNAME = base
58 !endif
59 !if "$(USE_GUI)" == "1"
60 PORTNAME = msw
61 !endif
62 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63 WXDEBUGFLAG = d
64 !endif
65 !if "$(DEBUG_FLAG)" == "1"
66 WXDEBUGFLAG = d
67 !endif
68 !if "$(UNICODE)" == "1"
69 WXUNICODEFLAG = u
70 !endif
71 !if "$(WXUNIV)" == "1"
72 WXUNIVNAME = univ
73 !endif
74 !if "$(SHARED)" == "1"
75 WXDLLFLAG = dll
76 !endif
77 !if "$(SHARED)" == "0"
78 LIBTYPE_SUFFIX = lib
79 !endif
80 !if "$(SHARED)" == "1"
81 LIBTYPE_SUFFIX = dll
82 !endif
83 !if "$(MONOLITHIC)" == "0"
84 EXTRALIBS_FOR_BASE =
85 !endif
86 !if "$(MONOLITHIC)" == "1"
87 EXTRALIBS_FOR_BASE =
88 !endif
89 !if "$(BUILD)" == "debug"
90 __OPTIMIZEFLAG_2 = -Od
91 !endif
92 !if "$(BUILD)" == "release"
93 __OPTIMIZEFLAG_2 = -O2
94 !endif
95 !if "$(USE_THREADS)" == "0"
96 __THREADSFLAG_5 =
97 !endif
98 !if "$(USE_THREADS)" == "1"
99 __THREADSFLAG_5 = mt
100 !endif
101 !if "$(USE_THREADS)" == "0"
102 __THREADSFLAG_6 =
103 !endif
104 !if "$(USE_THREADS)" == "1"
105 __THREADSFLAG_6 = -tWM
106 !endif
107 !if "$(RUNTIME_LIBS)" == "dynamic"
108 __RUNTIME_LIBS_7 = -tWR
109 !endif
110 !if "$(RUNTIME_LIBS)" == "static"
111 __RUNTIME_LIBS_7 =
112 !endif
113 !if "$(RUNTIME_LIBS)" == "dynamic"
114 __RUNTIME_LIBS_8 = i
115 !endif
116 !if "$(RUNTIME_LIBS)" == "static"
117 __RUNTIME_LIBS_8 =
118 !endif
119 !if "$(WXUNIV)" == "1"
120 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
121 !endif
122 !if "$(WXUNIV)" == "1"
123 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
124 !endif
125 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
127 !endif
128 !if "$(DEBUG_FLAG)" == "1"
129 __DEBUG_DEFINE_p = -D__WXDEBUG__
130 !endif
131 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
133 !endif
134 !if "$(DEBUG_FLAG)" == "1"
135 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
136 !endif
137 !if "$(USE_EXCEPTIONS)" == "0"
138 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
139 !endif
140 !if "$(USE_EXCEPTIONS)" == "0"
141 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
142 !endif
143 !if "$(USE_RTTI)" == "0"
144 __RTTI_DEFINE_p = -DwxNO_RTTI
145 !endif
146 !if "$(USE_RTTI)" == "0"
147 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
148 !endif
149 !if "$(USE_THREADS)" == "0"
150 __THREAD_DEFINE_p = -DwxNO_THREADS
151 !endif
152 !if "$(USE_THREADS)" == "0"
153 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
154 !endif
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p = -D_UNICODE
157 !endif
158 !if "$(UNICODE)" == "1"
159 __UNICODE_DEFINE_p_1 = -d_UNICODE
160 !endif
161 !if "$(MSLU)" == "1"
162 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
163 !endif
164 !if "$(MSLU)" == "1"
165 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
166 !endif
167 !if "$(SHARED)" == "1"
168 __DLLFLAG_p = -DWXUSINGDLL
169 !endif
170 !if "$(SHARED)" == "1"
171 __DLLFLAG_p_1 = -dWXUSINGDLL
172 !endif
173 !if "$(MONOLITHIC)" == "0"
174 __WXLIB_ADV_p = \
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
176 !endif
177 !if "$(MONOLITHIC)" == "0"
178 __WXLIB_HTML_p = \
179 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
180 !endif
181 !if "$(MONOLITHIC)" == "0"
182 __WXLIB_CORE_p = \
183 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
184 !endif
185 !if "$(MONOLITHIC)" == "0"
186 __WXLIB_BASE_p = \
187 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
188 !endif
189 !if "$(MONOLITHIC)" == "1"
190 __WXLIB_MONO_p = \
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
192 !endif
193 !if "$(USE_GUI)" == "1"
194 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
195 !endif
196 !if "$(USE_GUI)" == "1"
197 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
198 !endif
199 !if "$(USE_GUI)" == "1"
200 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
201 !endif
202 !if "$(MSLU)" == "1"
203 __UNICOWS_LIB_p = unicows.lib
204 !endif
205 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
206 __DEBUGINFO = -v
207 !endif
208 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
209 __DEBUGINFO = -v-
210 !endif
211 !if "$(DEBUG_INFO)" == "0"
212 __DEBUGINFO = -v-
213 !endif
214 !if "$(DEBUG_INFO)" == "1"
215 __DEBUGINFO = -v
216 !endif
217
218
219 all: $(OBJS)
220 $(OBJS):
221 -if not exist $(OBJS) mkdir $(OBJS)
222
223 ### Targets: ###
224
225 all: $(OBJS)\widgets.exe
226
227 clean:
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
237
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
241 |
242
243 $(OBJS)\widgets_button.obj: .\button.cpp
244 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
245
246 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
247 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
248
249 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
250 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
251
252 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
253 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
254
255 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
256 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
257
258 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
259 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
260
261 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
262 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
263
264 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
265 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
266
267 $(OBJS)\widgets_picker.obj: .\picker.cpp
268 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
269
270 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
271 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
272
273 $(OBJS)\widgets_slider.obj: .\slider.cpp
274 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
275
276 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
277 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
278
279 $(OBJS)\widgets_static.obj: .\static.cpp
280 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
281
282 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
283 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
284
285 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
286 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
287
288 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
289 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
290
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 $**
293