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