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