]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
forgotten commit :-( remove #if 0 if things work again
[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
bed99c22 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5\r
f82b7036
KO
26COMPILER_PREFIX = bcc\r
27OBJS = \\r
bed99c22
VZ
28 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
29LIBDIRNAME = \\r
30 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
f82b7036
KO
31SETUPHDIR = \\r
32 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
33RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
bed99c22
VZ
34 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
35 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
36 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
37 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
38 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
39 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
40RENDER_OBJECTS = \\r
41 $(OBJS)\render_render.obj\r
42RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
bed99c22
VZ
43 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
44 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
45 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
46 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
47 $(____CAIRO_INCLUDEDIR_FILENAMES) -DWXUSINGDLL $(CPPFLAGS) $(CXXFLAGS)\r
48RENDDLL_OBJECTS = \\r
49 $(OBJS)\renddll_renddll.obj\r
50\r
51### Conditionally set variables: ###\r
52\r
53!if "$(USE_GUI)" == "0"\r
54PORTNAME = base\r
55!endif\r
56!if "$(USE_GUI)" == "1"\r
bed99c22
VZ
57PORTNAME = msw$(TOOLKIT_VERSION)\r
58!endif\r
59!if "$(OFFICIAL_BUILD)" == "1"\r
60COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
61!endif\r
62!if "$(OFFICIAL_BUILD)" == "0"\r
63WXCOMPILER = _bcc\r
64!endif\r
65!if "$(OFFICIAL_BUILD)" == "1"\r
66WXCOMPILER = _bcc$(COMPILER_VERSION)\r
67!endif\r
f82b7036
KO
68!if "$(BUILD)" == "debug"\r
69WXDEBUGFLAG = d\r
70!endif\r
71!if "$(UNICODE)" == "1"\r
72WXUNICODEFLAG = u\r
73!endif\r
74!if "$(WXUNIV)" == "1"\r
75WXUNIVNAME = univ\r
76!endif\r
77!if "$(SHARED)" == "1"\r
78WXDLLFLAG = dll\r
79!endif\r
80!if "$(SHARED)" == "0"\r
81LIBTYPE_SUFFIX = lib\r
82!endif\r
83!if "$(SHARED)" == "1"\r
84LIBTYPE_SUFFIX = dll\r
85!endif\r
86!if "$(MONOLITHIC)" == "0"\r
87EXTRALIBS_FOR_BASE = \r
88!endif\r
89!if "$(MONOLITHIC)" == "1"\r
51ec29ea 90EXTRALIBS_FOR_BASE = \r
f82b7036
KO
91!endif\r
92!if "$(WXUNIV)" == "1"\r
93__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__\r
94!endif\r
95!if "$(DEBUG_FLAG)" == "0"\r
96__DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0\r
97!endif\r
00fb97de
KO
98!if "$(BUILD)" == "release"\r
99__NDEBUG_DEFINE_p_1 = -dNDEBUG\r
100!endif\r
f82b7036
KO
101!if "$(USE_EXCEPTIONS)" == "0"\r
102__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS\r
103!endif\r
104!if "$(USE_RTTI)" == "0"\r
105__RTTI_DEFINE_p_1 = -dwxNO_RTTI\r
106!endif\r
107!if "$(USE_THREADS)" == "0"\r
108__THREAD_DEFINE_p_1 = -dwxNO_THREADS\r
109!endif\r
110!if "$(UNICODE)" == "0"\r
111__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0\r
112!endif\r
113!if "$(UNICODE)" == "1"\r
114__UNICODE_DEFINE_p_1 = -d_UNICODE\r
115!endif\r
116!if "$(MSLU)" == "1"\r
117__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1\r
118!endif\r
f82b7036
KO
119!if "$(USE_CAIRO)" == "1"\r
120____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo\r
121!endif\r
122!if "$(SHARED)" == "1"\r
123__DLLFLAG_p = -DWXUSINGDLL\r
124!endif\r
125!if "$(SHARED)" == "1"\r
126__DLLFLAG_p_1 = -dWXUSINGDLL\r
127!endif\r
128!if "$(SHARED)" == "1"\r
129__renddll___depname = \\r
bed99c22 130 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll\r
f82b7036
KO
131!endif\r
132!if "$(BUILD)" == "debug"\r
133__OPTIMIZEFLAG = -Od\r
134!endif\r
135!if "$(BUILD)" == "release"\r
136__OPTIMIZEFLAG = -O2\r
137!endif\r
138!if "$(USE_THREADS)" == "0"\r
139__THREADSFLAG = \r
140!endif\r
141!if "$(USE_THREADS)" == "1"\r
142__THREADSFLAG = mt\r
143!endif\r
144!if "$(USE_THREADS)" == "0"\r
145__THREADSFLAG_0 = \r
146!endif\r
147!if "$(USE_THREADS)" == "1"\r
148__THREADSFLAG_0 = -tWM\r
149!endif\r
150!if "$(RUNTIME_LIBS)" == "dynamic"\r
151__RUNTIME_LIBS = -tWR\r
152!endif\r
153!if "$(RUNTIME_LIBS)" == "static"\r
154__RUNTIME_LIBS = \r
155!endif\r
156!if "$(RUNTIME_LIBS)" == "dynamic"\r
157__RUNTIME_LIBS_0 = i\r
158!endif\r
159!if "$(RUNTIME_LIBS)" == "static"\r
160__RUNTIME_LIBS_0 = \r
161!endif\r
162!if "$(WXUNIV)" == "1"\r
163__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
164!endif\r
165!if "$(DEBUG_FLAG)" == "0"\r
166__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
167!endif\r
00fb97de
KO
168!if "$(BUILD)" == "release"\r
169__NDEBUG_DEFINE_p = -DNDEBUG\r
170!endif\r
f82b7036
KO
171!if "$(USE_EXCEPTIONS)" == "0"\r
172__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
173!endif\r
174!if "$(USE_RTTI)" == "0"\r
175__RTTI_DEFINE_p = -DwxNO_RTTI\r
176!endif\r
177!if "$(USE_THREADS)" == "0"\r
178__THREAD_DEFINE_p = -DwxNO_THREADS\r
179!endif\r
180!if "$(UNICODE)" == "0"\r
181__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
182!endif\r
183!if "$(UNICODE)" == "1"\r
184__UNICODE_DEFINE_p = -D_UNICODE\r
185!endif\r
186!if "$(MSLU)" == "1"\r
187__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
188!endif\r
f82b7036
KO
189!if "$(USE_CAIRO)" == "1"\r
190____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
191!endif\r
192!if "$(MONOLITHIC)" == "0"\r
193__WXLIB_CORE_p = \\r
194 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
195!endif\r
196!if "$(MONOLITHIC)" == "0"\r
197__WXLIB_BASE_p = \\r
bed99c22 198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
f82b7036
KO
199!endif\r
200!if "$(MONOLITHIC)" == "1"\r
201__WXLIB_MONO_p = \\r
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
203!endif\r
bd0f3ca6 204!if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
a4830bb5
VZ
205__LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib\r
206!endif\r
f82b7036
KO
207!if "$(USE_GUI)" == "1"\r
208__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
209!endif\r
210!if "$(USE_GUI)" == "1"\r
211__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
212!endif\r
213!if "$(USE_GUI)" == "1"\r
214__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
215!endif\r
216!if "$(MSLU)" == "1"\r
217__UNICOWS_LIB_p = unicows.lib\r
218!endif\r
f82b7036
KO
219!if "$(USE_CAIRO)" == "1"\r
220__CAIRO_LIB_p = cairo.lib\r
221!endif\r
222!if "$(USE_CAIRO)" == "1"\r
223____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
224!endif\r
225!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
226__DEBUGINFO = -v\r
227!endif\r
228!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
229__DEBUGINFO = -v-\r
230!endif\r
231!if "$(DEBUG_INFO)" == "0"\r
232__DEBUGINFO = -v-\r
233!endif\r
234!if "$(DEBUG_INFO)" == "1"\r
235__DEBUGINFO = -v\r
236!endif\r
237\r
238\r
239all: $(OBJS)\r
240$(OBJS):\r
241 -if not exist $(OBJS) mkdir $(OBJS)\r
242\r
243### Targets: ###\r
244\r
245all: $(OBJS)\render.exe $(__renddll___depname)\r
246\r
247clean: \r
248 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
249 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
250 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
251 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r
252 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds\r
253 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc\r
254 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild\r
255 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf\r
256 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils\r
bed99c22
VZ
257 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll\r
258 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).tds\r
259 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ilc\r
260 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ild\r
261 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ilf\r
262 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).ils\r
f82b7036
KO
263\r
264$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res\r
265 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
a4830bb5 266 c0w32.obj $(RENDER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
267|\r
268\r
269!if "$(SHARED)" == "1"\r
bed99c22 270$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)\r
f82b7036 271 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
a4830bb5 272 c0d32.obj $(RENDDLL_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
273|\r
274!endif\r
275\r
276$(OBJS)\render_sample.res: .\..\..\samples\sample.rc\r
bed99c22 277 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
278\r
279$(OBJS)\render_render.obj: .\render.cpp\r
280 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp\r
281\r
282$(OBJS)\renddll_renddll.obj: .\renddll.cpp\r
283 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp\r
284\r