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