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