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