]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.bcc
Optimization: don't set the base background colour
[wxWidgets.git] / samples / render / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7.autodepend
8
9!ifndef BCCDIR
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
22### Variables: ###
23
24WX_RELEASE_NODOT = 29
25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
37RENDER_OBJECTS = \
38 $(OBJS)\render_render.obj
39RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
40 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
43 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \
44 $(CPPFLAGS) $(CXXFLAGS)
45RENDDLL_OBJECTS = \
46 $(OBJS)\renddll_renddll.obj
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
62!if "$(UNICODE)" == "1"
63WXUNICODEFLAG = u
64!endif
65!if "$(WXUNIV)" == "1"
66WXUNIVNAME = univ
67!endif
68!if "$(SHARED)" == "1"
69WXDLLFLAG = dll
70!endif
71!if "$(SHARED)" == "0"
72LIBTYPE_SUFFIX = lib
73!endif
74!if "$(SHARED)" == "1"
75LIBTYPE_SUFFIX = dll
76!endif
77!if "$(MONOLITHIC)" == "0"
78EXTRALIBS_FOR_BASE =
79!endif
80!if "$(MONOLITHIC)" == "1"
81EXTRALIBS_FOR_BASE =
82!endif
83!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
84PLUGINSUFFIX = d
85!endif
86!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
87PLUGINSUFFIX = ud
88!endif
89!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
90PLUGINSUFFIX =
91!endif
92!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
93PLUGINSUFFIX = u
94!endif
95!if "$(WXUNIV)" == "1"
96__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
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
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
113!if "$(UNICODE)" == "1"
114__UNICODE_DEFINE_p_1 = -d_UNICODE
115!endif
116!if "$(MSLU)" == "1"
117__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
118!endif
119!if "$(USE_GDIPLUS)" == "1"
120__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
121!endif
122!if "$(SHARED)" == "1"
123__DLLFLAG_p = -DWXUSINGDLL
124!endif
125!if "$(SHARED)" == "1"
126__DLLFLAG_p_1 = -dWXUSINGDLL
127!endif
128!if "$(SHARED)" == "1"
129__renddll___depname = \
130 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
131!endif
132!if "$(BUILD)" == "debug"
133__OPTIMIZEFLAG = -Od
134!endif
135!if "$(BUILD)" == "release"
136__OPTIMIZEFLAG = -O2
137!endif
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
150!if "$(RUNTIME_LIBS)" == "dynamic"
151__RUNTIME_LIBS = -tWR
152!endif
153!if "$(RUNTIME_LIBS)" == "static"
154__RUNTIME_LIBS =
155!endif
156!if "$(RUNTIME_LIBS)" == "dynamic"
157__RUNTIME_LIBS_0 = i
158!endif
159!if "$(RUNTIME_LIBS)" == "static"
160__RUNTIME_LIBS_0 =
161!endif
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__
170!endif
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
180!if "$(UNICODE)" == "1"
181__UNICODE_DEFINE_p = -D_UNICODE
182!endif
183!if "$(MSLU)" == "1"
184__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
185!endif
186!if "$(USE_GDIPLUS)" == "1"
187__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
188!endif
189!if "$(MONOLITHIC)" == "0"
190__WXLIB_CORE_p = \
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
192!endif
193!if "$(MONOLITHIC)" == "0"
194__WXLIB_BASE_p = \
195 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
196!endif
197!if "$(MONOLITHIC)" == "1"
198__WXLIB_MONO_p = \
199 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200!endif
201!if "$(USE_GUI)" == "1"
202__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
203!endif
204!if "$(USE_GUI)" == "1"
205__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
206!endif
207!if "$(USE_GUI)" == "1"
208__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
209!endif
210!if "$(MSLU)" == "1"
211__UNICOWS_LIB_p = unicows.lib
212!endif
213!if "$(USE_GDIPLUS)" == "1"
214__GDIPLUS_LIB_p = gdiplus.lib
215!endif
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
227!endif
228
229
230all: $(OBJS)
231$(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234### Targets: ###
235
236all: $(OBJS)\render.exe $(__renddll___depname)
237
238clean:
239 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
240 -if exist $(OBJS)\*.res del $(OBJS)\*.res
241 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
242 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
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
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
254
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 @&&|
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
258|
259
260!if "$(SHARED)" == "1"
261$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
262 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
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,,
264|
265!endif
266
267$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
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 $**
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) $**
275