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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
25 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
28 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
30 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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)
49 $(OBJS)\renddll_renddll.obj
51 ### Conditionally set variables: ###
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
59 !if "$(USE_GUI)" == "0"
62 !if "$(USE_GUI)" == "1"
63 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
65 !if "$(TOOLKIT)" == "MAC"
68 !if "$(OFFICIAL_BUILD)" == "1"
69 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
71 !if "$(OFFICIAL_BUILD)" == "0"
74 !if "$(OFFICIAL_BUILD)" == "1"
75 WXCOMPILER = _bcc$(COMPILER_VERSION)
77 !if "$(BUILD)" == "debug"
80 !if "$(UNICODE)" == "1"
83 !if "$(WXUNIV)" == "1"
86 !if "$(SHARED)" == "1"
89 !if "$(SHARED)" == "0"
92 !if "$(SHARED)" == "1"
95 !if "$(MONOLITHIC)" == "0"
98 !if "$(MONOLITHIC)" == "1"
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 \
106 !if "$(WXUNIV)" == "1"
107 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
109 !if "$(DEBUG_FLAG)" == "0"
110 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
112 !if "$(BUILD)" == "release"
113 __NDEBUG_DEFINE_p_1 = -dNDEBUG
115 !if "$(USE_EXCEPTIONS)" == "0"
116 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
118 !if "$(USE_RTTI)" == "0"
119 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
121 !if "$(USE_THREADS)" == "0"
122 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
124 !if "$(UNICODE)" == "0"
125 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p_1 = -d_UNICODE
131 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
133 !if "$(USE_CAIRO)" == "1"
134 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
136 !if "$(SHARED)" == "1"
137 __DLLFLAG_p = -DWXUSINGDLL
139 !if "$(SHARED)" == "1"
140 __DLLFLAG_p_1 = -dWXUSINGDLL
142 !if "$(SHARED)" == "1"
143 __renddll___depname = \
144 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
146 !if "$(BUILD)" == "debug"
149 !if "$(BUILD)" == "release"
152 !if "$(USE_THREADS)" == "0"
155 !if "$(USE_THREADS)" == "1"
158 !if "$(USE_THREADS)" == "0"
161 !if "$(USE_THREADS)" == "1"
162 __THREADSFLAG_0 = -tWM
164 !if "$(RUNTIME_LIBS)" == "dynamic"
165 __RUNTIME_LIBS = -tWR
167 !if "$(RUNTIME_LIBS)" == "static"
170 !if "$(RUNTIME_LIBS)" == "dynamic"
173 !if "$(RUNTIME_LIBS)" == "static"
176 !if "$(WXUNIV)" == "1"
177 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
179 !if "$(DEBUG_FLAG)" == "0"
180 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
182 !if "$(BUILD)" == "release"
183 __NDEBUG_DEFINE_p = -DNDEBUG
185 !if "$(USE_EXCEPTIONS)" == "0"
186 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
188 !if "$(USE_RTTI)" == "0"
189 __RTTI_DEFINE_p = -DwxNO_RTTI
191 !if "$(USE_THREADS)" == "0"
192 __THREAD_DEFINE_p = -DwxNO_THREADS
194 !if "$(UNICODE)" == "0"
195 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
197 !if "$(UNICODE)" == "1"
198 __UNICODE_DEFINE_p = -D_UNICODE
201 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
203 !if "$(USE_CAIRO)" == "1"
204 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
206 !if "$(MONOLITHIC)" == "0"
208 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
210 !if "$(MONOLITHIC)" == "0"
212 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
214 !if "$(MONOLITHIC)" == "1"
216 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
218 !if "$(USE_GUI)" == "1"
219 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
221 !if "$(USE_GUI)" == "1"
222 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
224 !if "$(USE_GUI)" == "1"
225 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
228 __UNICOWS_LIB_p = unicows.lib
230 !if "$(USE_CAIRO)" == "1"
231 __CAIRO_LIB_p = cairo.lib
233 !if "$(USE_CAIRO)" == "1"
234 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
236 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
239 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
242 !if "$(DEBUG_INFO)" == "0"
245 !if "$(DEBUG_INFO)" == "1"
252 -if not exist $(OBJS) mkdir $(OBJS)
256 all: $(OBJS)\render.exe $(__renddll___depname)
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
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
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,,
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
290 $(OBJS)\render_render.obj: .\render.cpp
291 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp
293 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
294 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp