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