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