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