]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
allow passing -1 range to SetScrollbar() to indicate the the scrollbar should be...
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
506e9b7e 3# Bakefile 0.2.5 (http://www.bakefile.org)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
2d611b5c 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
2d611b5c
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
2d611b5c
VS
22### Variables: ###
23
ae4ccf12
RD
24WX_RELEASE_NODOT = 29
25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
444833b3 26COMPILER_PREFIX = bcc
2d611b5c 27OBJS = \
444833b3
CE
28 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
30SETUPHDIR = \
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
36 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
37 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
38RENDER_OBJECTS = \
39 $(OBJS)\render_render.obj
b17c1746 40RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
41 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
42 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 43 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
44 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \
45 $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
46RENDDLL_OBJECTS = \
47 $(OBJS)\renddll_renddll.obj
2d611b5c
VS
48
49### Conditionally set variables: ###
50
51!if "$(USE_GUI)" == "0"
52PORTNAME = base
53!endif
54!if "$(USE_GUI)" == "1"
55PORTNAME = msw
56!endif
57!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58WXDEBUGFLAG = d
59!endif
60!if "$(DEBUG_FLAG)" == "1"
61WXDEBUGFLAG = d
62!endif
2d611b5c
VS
63!if "$(UNICODE)" == "1"
64WXUNICODEFLAG = u
65!endif
66!if "$(WXUNIV)" == "1"
67WXUNIVNAME = univ
68!endif
b17c1746
DE
69!if "$(SHARED)" == "1"
70WXDLLFLAG = dll
2d611b5c 71!endif
b14abf14
JS
72!if "$(SHARED)" == "0"
73LIBTYPE_SUFFIX = lib
74!endif
75!if "$(SHARED)" == "1"
76LIBTYPE_SUFFIX = dll
77!endif
dd65d8c8
RN
78!if "$(MONOLITHIC)" == "0"
79EXTRALIBS_FOR_BASE =
80!endif
81!if "$(MONOLITHIC)" == "1"
82EXTRALIBS_FOR_BASE =
83!endif
078c7a59 84!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
314a6446 85PLUGINSUFFIX = d
078c7a59
VS
86!endif
87!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
314a6446 88PLUGINSUFFIX = ud
078c7a59
VS
89!endif
90!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
91PLUGINSUFFIX =
92!endif
93!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
314a6446 94PLUGINSUFFIX = u
078c7a59 95!endif
b17c1746
DE
96!if "$(WXUNIV)" == "1"
97__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
2d611b5c
VS
98!endif
99!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
100__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
101!endif
102!if "$(DEBUG_FLAG)" == "1"
103__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
104!endif
8c9f8f91
JS
105!if "$(USE_EXCEPTIONS)" == "0"
106__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
107!endif
108!if "$(USE_RTTI)" == "0"
109__RTTI_DEFINE_p_1 = -dwxNO_RTTI
110!endif
111!if "$(USE_THREADS)" == "0"
112__THREAD_DEFINE_p_1 = -dwxNO_THREADS
113!endif
7379e476
VZ
114!if "$(UNICODE)" == "0"
115__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
116!endif
b17c1746
DE
117!if "$(UNICODE)" == "1"
118__UNICODE_DEFINE_p_1 = -d_UNICODE
119!endif
2113bc77
MW
120!if "$(MSLU)" == "1"
121__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
122!endif
3abcf424
RD
123!if "$(USE_GDIPLUS)" == "1"
124__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
125!endif
2d611b5c
VS
126!if "$(SHARED)" == "1"
127__DLLFLAG_p = -DWXUSINGDLL
128!endif
129!if "$(SHARED)" == "1"
130__DLLFLAG_p_1 = -dWXUSINGDLL
131!endif
b17c1746
DE
132!if "$(SHARED)" == "1"
133__renddll___depname = \
ae4ccf12 134 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
2d611b5c
VS
135!endif
136!if "$(BUILD)" == "debug"
137__OPTIMIZEFLAG = -Od
138!endif
139!if "$(BUILD)" == "release"
140__OPTIMIZEFLAG = -O2
141!endif
8c9f8f91
JS
142!if "$(USE_THREADS)" == "0"
143__THREADSFLAG =
144!endif
145!if "$(USE_THREADS)" == "1"
146__THREADSFLAG = mt
147!endif
148!if "$(USE_THREADS)" == "0"
149__THREADSFLAG_0 =
150!endif
151!if "$(USE_THREADS)" == "1"
152__THREADSFLAG_0 = -tWM
153!endif
2d611b5c 154!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 155__RUNTIME_LIBS = -tWR
2d611b5c
VS
156!endif
157!if "$(RUNTIME_LIBS)" == "static"
158__RUNTIME_LIBS =
159!endif
160!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 161__RUNTIME_LIBS_0 = i
2d611b5c
VS
162!endif
163!if "$(RUNTIME_LIBS)" == "static"
164__RUNTIME_LIBS_0 =
165!endif
b17c1746
DE
166!if "$(WXUNIV)" == "1"
167__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
168!endif
169!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
170__DEBUG_DEFINE_p = -D__WXDEBUG__
171!endif
172!if "$(DEBUG_FLAG)" == "1"
173__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 174!endif
8c9f8f91
JS
175!if "$(USE_EXCEPTIONS)" == "0"
176__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
177!endif
178!if "$(USE_RTTI)" == "0"
179__RTTI_DEFINE_p = -DwxNO_RTTI
180!endif
181!if "$(USE_THREADS)" == "0"
182__THREAD_DEFINE_p = -DwxNO_THREADS
183!endif
7379e476
VZ
184!if "$(UNICODE)" == "0"
185__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
186!endif
2d611b5c 187!if "$(UNICODE)" == "1"
b17c1746 188__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 189!endif
2113bc77
MW
190!if "$(MSLU)" == "1"
191__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
192!endif
3abcf424
RD
193!if "$(USE_GDIPLUS)" == "1"
194__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
195!endif
2d611b5c
VS
196!if "$(MONOLITHIC)" == "0"
197__WXLIB_CORE_p = \
c33fae85 198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 199!endif
b17c1746 200!if "$(MONOLITHIC)" == "0"
c33fae85
RN
201__WXLIB_BASE_p = \
202 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 203!endif
2d611b5c
VS
204!if "$(MONOLITHIC)" == "1"
205__WXLIB_MONO_p = \
c33fae85 206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 207!endif
b17c1746 208!if "$(USE_GUI)" == "1"
9c2d002b 209__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 210!endif
b17c1746 211!if "$(USE_GUI)" == "1"
9c2d002b 212__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2d611b5c 213!endif
b17c1746 214!if "$(USE_GUI)" == "1"
9c2d002b 215__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
216!endif
217!if "$(MSLU)" == "1"
218__UNICOWS_LIB_p = unicows.lib
219!endif
3abcf424
RD
220!if "$(USE_GDIPLUS)" == "1"
221__GDIPLUS_LIB_p = gdiplus.lib
222!endif
b17c1746
DE
223!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
224__DEBUGINFO = -v
225!endif
226!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
227__DEBUGINFO = -v-
228!endif
229!if "$(DEBUG_INFO)" == "0"
230__DEBUGINFO = -v-
231!endif
232!if "$(DEBUG_INFO)" == "1"
233__DEBUGINFO = -v
2d611b5c
VS
234!endif
235
2d611b5c
VS
236
237all: $(OBJS)
238$(OBJS):
239 -if not exist $(OBJS) mkdir $(OBJS)
240
241### Targets: ###
242
243all: $(OBJS)\render.exe $(__renddll___depname)
244
2d611b5c
VS
245clean:
246 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
247 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 248 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
2d611b5c 249 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
250 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
251 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
252 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
253 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
254 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
ae4ccf12
RD
255 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
256 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
257 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
258 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
259 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
260 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
2d611b5c 261
b17c1746 262$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
8ece421c 263 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
7379e476 264 c0w32.obj $(RENDER_OBJECTS),$@,, $(__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)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
b17c1746
DE
265|
266
2d611b5c 267!if "$(SHARED)" == "1"
ae4ccf12 268$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
8ece421c 269 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(LDFLAGS) @&&|
7379e476 270 c0d32.obj $(RENDDLL_OBJECTS),$@,, $(__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)$(__RUNTIME_LIBS_0).lib,,
2d611b5c
VS
271|
272!endif
273
b17c1746 274$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
6e0fbb3d 275 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 .\..\..\samples\sample.rc
b17c1746
DE
276
277$(OBJS)\render_render.obj: .\render.cpp
6e0fbb3d 278 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp
b17c1746
DE
279
280$(OBJS)\renddll_renddll.obj: .\renddll.cpp
6e0fbb3d 281 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp
b14abf14 282