]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.bcc
Reorganize and improve wxSizer::SetItemMinSize() documentation.
[wxWidgets.git] / samples / widgets / makefile.bcc
CommitLineData
6f628073
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
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
13BCCDIR = $(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
ae4ccf12 24WX_RELEASE_NODOT = 29
a236aa20 25COMPILER_PREFIX = bcc
250700e4 26OBJS = \
a236aa20
VZ
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
31WIDGETS_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
25a73439 37WIDGETS_OBJECTS = \
b2b98dfd 38 $(OBJS)\widgets_bmpcombobox.obj \
25a73439 39 $(OBJS)\widgets_button.obj \
8941fa88 40 $(OBJS)\widgets_checkbox.obj \
a236aa20 41 $(OBJS)\widgets_choice.obj \
b2b98dfd 42 $(OBJS)\widgets_clrpicker.obj \
25a73439 43 $(OBJS)\widgets_combobox.obj \
f2fdc4d5 44 $(OBJS)\widgets_datepick.obj \
c4f6d998 45 $(OBJS)\widgets_dirctrl.obj \
b2b98dfd 46 $(OBJS)\widgets_dirpicker.obj \
27721528 47 $(OBJS)\widgets_editlbox.obj \
0cf3e587 48 $(OBJS)\widgets_filectrl.obj \
b2b98dfd
WS
49 $(OBJS)\widgets_filepicker.obj \
50 $(OBJS)\widgets_fontpicker.obj \
25a73439 51 $(OBJS)\widgets_gauge.obj \
f9300d42 52 $(OBJS)\widgets_hyperlnk.obj \
a236aa20 53 $(OBJS)\widgets_itemcontainer.obj \
25a73439
VS
54 $(OBJS)\widgets_listbox.obj \
55 $(OBJS)\widgets_notebook.obj \
53a0475d 56 $(OBJS)\widgets_odcombobox.obj \
25a73439 57 $(OBJS)\widgets_radiobox.obj \
3f7f284d 58 $(OBJS)\widgets_searchctrl.obj \
25a73439
VS
59 $(OBJS)\widgets_slider.obj \
60 $(OBJS)\widgets_spinbtn.obj \
61 $(OBJS)\widgets_static.obj \
a30e7029 62 $(OBJS)\widgets_statbmp.obj \
25a73439 63 $(OBJS)\widgets_textctrl.obj \
32816f9a 64 $(OBJS)\widgets_toggle.obj \
25a73439 65 $(OBJS)\widgets_widgets.obj
6f628073
VS
66
67### Conditionally set variables: ###
68
69!if "$(USE_GUI)" == "0"
70PORTNAME = base
71!endif
72!if "$(USE_GUI)" == "1"
73PORTNAME = msw
74!endif
25a73439
VS
75!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
76WXDEBUGFLAG = d
77!endif
78!if "$(DEBUG_FLAG)" == "1"
6f628073
VS
79WXDEBUGFLAG = d
80!endif
6f628073
VS
81!if "$(UNICODE)" == "1"
82WXUNICODEFLAG = u
2246169a 83!endif
6f628073
VS
84!if "$(WXUNIV)" == "1"
85WXUNIVNAME = univ
86!endif
6f628073 87!if "$(SHARED)" == "1"
b17c1746 88WXDLLFLAG = dll
25a73439 89!endif
b14abf14
JS
90!if "$(SHARED)" == "0"
91LIBTYPE_SUFFIX = lib
92!endif
93!if "$(SHARED)" == "1"
94LIBTYPE_SUFFIX = dll
95!endif
dd65d8c8
RN
96!if "$(MONOLITHIC)" == "0"
97EXTRALIBS_FOR_BASE =
98!endif
99!if "$(MONOLITHIC)" == "1"
100EXTRALIBS_FOR_BASE =
101!endif
250700e4
RD
102!if "$(BUILD)" == "debug"
103__OPTIMIZEFLAG_2 = -Od
104!endif
105!if "$(BUILD)" == "release"
106__OPTIMIZEFLAG_2 = -O2
107!endif
8c9f8f91
JS
108!if "$(USE_THREADS)" == "0"
109__THREADSFLAG_5 =
110!endif
111!if "$(USE_THREADS)" == "1"
112__THREADSFLAG_5 = mt
113!endif
114!if "$(USE_THREADS)" == "0"
115__THREADSFLAG_6 =
116!endif
117!if "$(USE_THREADS)" == "1"
118__THREADSFLAG_6 = -tWM
119!endif
250700e4 120!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 121__RUNTIME_LIBS_7 = -tWR
250700e4
RD
122!endif
123!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 124__RUNTIME_LIBS_7 =
250700e4
RD
125!endif
126!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 127__RUNTIME_LIBS_8 = i
250700e4
RD
128!endif
129!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 130__RUNTIME_LIBS_8 =
250700e4 131!endif
b17c1746
DE
132!if "$(WXUNIV)" == "1"
133__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
134!endif
135!if "$(WXUNIV)" == "1"
136__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
137!endif
138!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
139__DEBUG_DEFINE_p = -D__WXDEBUG__
140!endif
141!if "$(DEBUG_FLAG)" == "1"
142__DEBUG_DEFINE_p = -D__WXDEBUG__
143!endif
144!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
145__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
146!endif
147!if "$(DEBUG_FLAG)" == "1"
148__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
149!endif
8c9f8f91
JS
150!if "$(USE_EXCEPTIONS)" == "0"
151__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
152!endif
153!if "$(USE_EXCEPTIONS)" == "0"
154__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
155!endif
156!if "$(USE_RTTI)" == "0"
157__RTTI_DEFINE_p = -DwxNO_RTTI
158!endif
159!if "$(USE_RTTI)" == "0"
160__RTTI_DEFINE_p_1 = -dwxNO_RTTI
161!endif
162!if "$(USE_THREADS)" == "0"
163__THREAD_DEFINE_p = -DwxNO_THREADS
164!endif
165!if "$(USE_THREADS)" == "0"
166__THREAD_DEFINE_p_1 = -dwxNO_THREADS
167!endif
7379e476
VZ
168!if "$(UNICODE)" == "0"
169__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
170!endif
6f628073 171!if "$(UNICODE)" == "1"
ec08d395 172__UNICODE_DEFINE_p = -D_UNICODE
6f628073 173!endif
7379e476
VZ
174!if "$(UNICODE)" == "0"
175__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
176!endif
6f628073 177!if "$(UNICODE)" == "1"
ec08d395 178__UNICODE_DEFINE_p_1 = -d_UNICODE
6f628073 179!endif
2113bc77
MW
180!if "$(MSLU)" == "1"
181__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
182!endif
183!if "$(MSLU)" == "1"
184__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
185!endif
3abcf424
RD
186!if "$(USE_GDIPLUS)" == "1"
187__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
188!endif
189!if "$(USE_GDIPLUS)" == "1"
190__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
191!endif
b17c1746
DE
192!if "$(SHARED)" == "1"
193__DLLFLAG_p = -DWXUSINGDLL
4e209a20 194!endif
b17c1746
DE
195!if "$(SHARED)" == "1"
196__DLLFLAG_p_1 = -dWXUSINGDLL
0706fb23
VS
197!endif
198!if "$(MONOLITHIC)" == "0"
f2fdc4d5
WS
199__WXLIB_ADV_p = \
200 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
201!endif
202!if "$(MONOLITHIC)" == "0"
250700e4 203__WXLIB_CORE_p = \
c33fae85 204 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
6f628073 205!endif
b17c1746 206!if "$(MONOLITHIC)" == "0"
c33fae85
RN
207__WXLIB_BASE_p = \
208 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 209!endif
6f628073 210!if "$(MONOLITHIC)" == "1"
250700e4 211__WXLIB_MONO_p = \
c33fae85 212 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
6f628073 213!endif
b17c1746 214!if "$(USE_GUI)" == "1"
9c2d002b 215__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
6f628073 216!endif
b17c1746 217!if "$(USE_GUI)" == "1"
9c2d002b 218__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
219!endif
220!if "$(USE_GUI)" == "1"
9c2d002b 221__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
222!endif
223!if "$(MSLU)" == "1"
224__UNICOWS_LIB_p = unicows.lib
225!endif
3abcf424
RD
226!if "$(USE_GDIPLUS)" == "1"
227__GDIPLUS_LIB_p = gdiplus.lib
228!endif
b17c1746
DE
229!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
230__DEBUGINFO = -v
231!endif
232!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
233__DEBUGINFO = -v-
234!endif
235!if "$(DEBUG_INFO)" == "0"
236__DEBUGINFO = -v-
237!endif
238!if "$(DEBUG_INFO)" == "1"
239__DEBUGINFO = -v
6f628073
VS
240!endif
241
242
243all: $(OBJS)
244$(OBJS):
245 -if not exist $(OBJS) mkdir $(OBJS)
246
247### Targets: ###
248
249all: $(OBJS)\widgets.exe
250
b17c1746
DE
251clean:
252 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
253 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 254 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
255 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
256 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
257 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
258 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
259 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
260 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
261
f2fdc4d5 262$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
8ece421c 263 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
b2c9e344 264 c0w32.obj $(WIDGETS_OBJECTS),$@,, $(__WXLIB_ADV_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) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\widgets_sample.res
b17c1746
DE
265|
266
b2b98dfd 267$(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp
6e0fbb3d 268 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\bmpcombobox.cpp
b2b98dfd 269
6f628073 270$(OBJS)\widgets_button.obj: .\button.cpp
6e0fbb3d 271 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\button.cpp
6f628073 272
8941fa88 273$(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
6e0fbb3d 274 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\checkbox.cpp
8941fa88 275
a236aa20 276$(OBJS)\widgets_choice.obj: .\choice.cpp
6e0fbb3d 277 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\choice.cpp
a236aa20 278
b2b98dfd 279$(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp
6e0fbb3d 280 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\clrpicker.cpp
6f628073 281
b2b98dfd 282$(OBJS)\widgets_combobox.obj: .\combobox.cpp
6e0fbb3d 283 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\combobox.cpp
f2fdc4d5 284
b2b98dfd 285$(OBJS)\widgets_datepick.obj: .\datepick.cpp
6e0fbb3d 286 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\datepick.cpp
6f628073 287
c4f6d998 288$(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp
6e0fbb3d 289 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\dirctrl.cpp
c4f6d998 290
b2b98dfd 291$(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp
6e0fbb3d 292 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\dirpicker.cpp
f9300d42 293
27721528
FM
294$(OBJS)\widgets_editlbox.obj: .\editlbox.cpp
295 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\editlbox.cpp
296
0cf3e587 297$(OBJS)\widgets_filectrl.obj: .\filectrl.cpp
6e0fbb3d 298 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\filectrl.cpp
0cf3e587 299
b2b98dfd 300$(OBJS)\widgets_filepicker.obj: .\filepicker.cpp
6e0fbb3d 301 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\filepicker.cpp
6f628073 302
b2b98dfd 303$(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp
6e0fbb3d 304 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\fontpicker.cpp
ec376c8f 305
b2b98dfd 306$(OBJS)\widgets_gauge.obj: .\gauge.cpp
6e0fbb3d 307 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\gauge.cpp
137c8bde 308
b2b98dfd 309$(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
6e0fbb3d 310 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\hyperlnk.cpp
137c8bde 311
a236aa20 312$(OBJS)\widgets_itemcontainer.obj: .\itemcontainer.cpp
6e0fbb3d 313 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\itemcontainer.cpp
a236aa20 314
b2b98dfd 315$(OBJS)\widgets_listbox.obj: .\listbox.cpp
6e0fbb3d 316 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\listbox.cpp
137c8bde 317
b2b98dfd 318$(OBJS)\widgets_notebook.obj: .\notebook.cpp
6e0fbb3d 319 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\notebook.cpp
53a0475d
WS
320
321$(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp
6e0fbb3d 322 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\odcombobox.cpp
6f628073
VS
323
324$(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
6e0fbb3d 325 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\radiobox.cpp
6f628073 326
3f7f284d 327$(OBJS)\widgets_searchctrl.obj: .\searchctrl.cpp
6e0fbb3d 328 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\searchctrl.cpp
3f7f284d 329
6f628073 330$(OBJS)\widgets_slider.obj: .\slider.cpp
6e0fbb3d 331 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\slider.cpp
6f628073
VS
332
333$(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
6e0fbb3d 334 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\spinbtn.cpp
6f628073
VS
335
336$(OBJS)\widgets_static.obj: .\static.cpp
6e0fbb3d 337 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\static.cpp
6f628073 338
a30e7029
VZ
339$(OBJS)\widgets_statbmp.obj: .\statbmp.cpp
340 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\statbmp.cpp
341
6f628073 342$(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
6e0fbb3d 343 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\textctrl.cpp
6f628073 344
32816f9a 345$(OBJS)\widgets_toggle.obj: .\toggle.cpp
6e0fbb3d 346 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\toggle.cpp
32816f9a 347
6f628073 348$(OBJS)\widgets_widgets.obj: .\widgets.cpp
6e0fbb3d 349 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\widgets.cpp
6f628073 350
f2fdc4d5 351$(OBJS)\widgets_sample.res: .\..\sample.rc
6e0fbb3d 352 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) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH .\..\sample.rc
b14abf14 353