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