]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
Make a couple virtuals protected so they can be overridden.
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7.autodepend\r
8\r
9!ifndef BCCDIR\r
10!ifndef MAKEDIR\r
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4\r
12!endif\r
13BCCDIR = $(MAKEDIR)\..\r
14!endif\r
15\r
16!include ../../build/msw/config.bcc\r
17\r
18# -------------------------------------------------------------------------\r
19# Do not modify the rest of this file!\r
20# -------------------------------------------------------------------------\r
21\r
22### Variables: ###\r
23\r
24WX_RELEASE_NODOT = 29\r
08670ea8 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4\r
f82b7036
KO
26COMPILER_PREFIX = bcc\r
27OBJS = \\r
28 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
29LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
30SETUPHDIR = \\r
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
32RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
34 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
35 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 36 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
37 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
38 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
39RENDER_OBJECTS = \\r
40 $(OBJS)\render_render.obj\r
41RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
42 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
43 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
44 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 45 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
46 $(____CAIRO_INCLUDEDIR_FILENAMES) -DWXUSINGDLL $(CPPFLAGS) $(CXXFLAGS)\r
47RENDDLL_OBJECTS = \\r
48 $(OBJS)\renddll_renddll.obj\r
49\r
50### Conditionally set variables: ###\r
51\r
52!if "$(USE_GUI)" == "0"\r
53PORTNAME = base\r
54!endif\r
55!if "$(USE_GUI)" == "1"\r
56PORTNAME = msw\r
57!endif\r
58!if "$(BUILD)" == "debug"\r
59WXDEBUGFLAG = d\r
60!endif\r
61!if "$(UNICODE)" == "1"\r
62WXUNICODEFLAG = u\r
63!endif\r
64!if "$(WXUNIV)" == "1"\r
65WXUNIVNAME = univ\r
66!endif\r
67!if "$(SHARED)" == "1"\r
68WXDLLFLAG = dll\r
69!endif\r
70!if "$(SHARED)" == "0"\r
71LIBTYPE_SUFFIX = lib\r
72!endif\r
73!if "$(SHARED)" == "1"\r
74LIBTYPE_SUFFIX = dll\r
75!endif\r
76!if "$(MONOLITHIC)" == "0"\r
77EXTRALIBS_FOR_BASE = \r
78!endif\r
79!if "$(MONOLITHIC)" == "1"\r
51ec29ea 80EXTRALIBS_FOR_BASE = \r
f82b7036
KO
81!endif\r
82!if "$(WXUNIV)" == "1"\r
83__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__\r
84!endif\r
85!if "$(DEBUG_FLAG)" == "0"\r
86__DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0\r
87!endif\r
00fb97de
KO
88!if "$(BUILD)" == "release"\r
89__NDEBUG_DEFINE_p_1 = -dNDEBUG\r
90!endif\r
f82b7036
KO
91!if "$(USE_EXCEPTIONS)" == "0"\r
92__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS\r
93!endif\r
94!if "$(USE_RTTI)" == "0"\r
95__RTTI_DEFINE_p_1 = -dwxNO_RTTI\r
96!endif\r
97!if "$(USE_THREADS)" == "0"\r
98__THREAD_DEFINE_p_1 = -dwxNO_THREADS\r
99!endif\r
100!if "$(UNICODE)" == "0"\r
101__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0\r
102!endif\r
103!if "$(UNICODE)" == "1"\r
104__UNICODE_DEFINE_p_1 = -d_UNICODE\r
105!endif\r
106!if "$(MSLU)" == "1"\r
107__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1\r
108!endif\r
f82b7036
KO
109!if "$(USE_CAIRO)" == "1"\r
110____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo\r
111!endif\r
112!if "$(SHARED)" == "1"\r
113__DLLFLAG_p = -DWXUSINGDLL\r
114!endif\r
115!if "$(SHARED)" == "1"\r
116__DLLFLAG_p_1 = -dWXUSINGDLL\r
117!endif\r
118!if "$(SHARED)" == "1"\r
119__renddll___depname = \\r
120 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.dll\r
121!endif\r
122!if "$(BUILD)" == "debug"\r
123__OPTIMIZEFLAG = -Od\r
124!endif\r
125!if "$(BUILD)" == "release"\r
126__OPTIMIZEFLAG = -O2\r
127!endif\r
128!if "$(USE_THREADS)" == "0"\r
129__THREADSFLAG = \r
130!endif\r
131!if "$(USE_THREADS)" == "1"\r
132__THREADSFLAG = mt\r
133!endif\r
134!if "$(USE_THREADS)" == "0"\r
135__THREADSFLAG_0 = \r
136!endif\r
137!if "$(USE_THREADS)" == "1"\r
138__THREADSFLAG_0 = -tWM\r
139!endif\r
140!if "$(RUNTIME_LIBS)" == "dynamic"\r
141__RUNTIME_LIBS = -tWR\r
142!endif\r
143!if "$(RUNTIME_LIBS)" == "static"\r
144__RUNTIME_LIBS = \r
145!endif\r
146!if "$(RUNTIME_LIBS)" == "dynamic"\r
147__RUNTIME_LIBS_0 = i\r
148!endif\r
149!if "$(RUNTIME_LIBS)" == "static"\r
150__RUNTIME_LIBS_0 = \r
151!endif\r
152!if "$(WXUNIV)" == "1"\r
153__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
154!endif\r
155!if "$(DEBUG_FLAG)" == "0"\r
156__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
157!endif\r
00fb97de
KO
158!if "$(BUILD)" == "release"\r
159__NDEBUG_DEFINE_p = -DNDEBUG\r
160!endif\r
f82b7036
KO
161!if "$(USE_EXCEPTIONS)" == "0"\r
162__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
163!endif\r
164!if "$(USE_RTTI)" == "0"\r
165__RTTI_DEFINE_p = -DwxNO_RTTI\r
166!endif\r
167!if "$(USE_THREADS)" == "0"\r
168__THREAD_DEFINE_p = -DwxNO_THREADS\r
169!endif\r
170!if "$(UNICODE)" == "0"\r
171__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
172!endif\r
173!if "$(UNICODE)" == "1"\r
174__UNICODE_DEFINE_p = -D_UNICODE\r
175!endif\r
176!if "$(MSLU)" == "1"\r
177__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
178!endif\r
f82b7036
KO
179!if "$(USE_CAIRO)" == "1"\r
180____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
181!endif\r
182!if "$(MONOLITHIC)" == "0"\r
183__WXLIB_CORE_p = \\r
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
185!endif\r
186!if "$(MONOLITHIC)" == "0"\r
187__WXLIB_BASE_p = \\r
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
189!endif\r
190!if "$(MONOLITHIC)" == "1"\r
191__WXLIB_MONO_p = \\r
192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
193!endif\r
194!if "$(USE_GUI)" == "1"\r
195__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
196!endif\r
197!if "$(USE_GUI)" == "1"\r
198__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
199!endif\r
200!if "$(USE_GUI)" == "1"\r
201__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
202!endif\r
203!if "$(MSLU)" == "1"\r
204__UNICOWS_LIB_p = unicows.lib\r
205!endif\r
f82b7036
KO
206!if "$(USE_CAIRO)" == "1"\r
207__CAIRO_LIB_p = cairo.lib\r
208!endif\r
209!if "$(USE_CAIRO)" == "1"\r
210____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
211!endif\r
212!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
213__DEBUGINFO = -v\r
214!endif\r
215!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
216__DEBUGINFO = -v-\r
217!endif\r
218!if "$(DEBUG_INFO)" == "0"\r
219__DEBUGINFO = -v-\r
220!endif\r
221!if "$(DEBUG_INFO)" == "1"\r
222__DEBUGINFO = -v\r
223!endif\r
224\r
225\r
226all: $(OBJS)\r
227$(OBJS):\r
228 -if not exist $(OBJS) mkdir $(OBJS)\r
229\r
230### Targets: ###\r
231\r
232all: $(OBJS)\render.exe $(__renddll___depname)\r
233\r
234clean: \r
235 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
236 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
237 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
238 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
239 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds\r
240 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc\r
241 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild\r
242 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf\r
243 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils\r
244 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.dll\r
245 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.tds\r
246 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ilc\r
247 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ild\r
248 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ilf\r
249 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.ils\r
250\r
251$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res\r
252 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
b796194b 253 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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res\r
f82b7036
KO
254|\r
255\r
256!if "$(SHARED)" == "1"\r
257$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)\r
258 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
b796194b 259 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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,\r
f82b7036
KO
260|\r
261!endif\r
262\r
263$(OBJS)\render_sample.res: .\..\..\samples\sample.rc\r
b796194b 264 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc\r
f82b7036
KO
265\r
266$(OBJS)\render_render.obj: .\render.cpp\r
267 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp\r
268\r
269$(OBJS)\renddll_renddll.obj: .\renddll.cpp\r
270 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp\r
271\r