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__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)
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)
49 $(OBJS)\renddll_renddll.obj
51 ### Conditionally set variables: ###
53 !if "$(USE_GUI)" == "0"
56 !if "$(USE_GUI)" == "1"
57 PORTNAME = msw$(TOOLKIT_VERSION)
59 !if "$(OFFICIAL_BUILD)" == "1"
60 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
62 !if "$(OFFICIAL_BUILD)" == "0"
65 !if "$(OFFICIAL_BUILD)" == "1"
66 WXCOMPILER = _bcc$(COMPILER_VERSION)
68 !if "$(BUILD)" == "debug"
71 !if "$(UNICODE)" == "1"
74 !if "$(WXUNIV)" == "1"
77 !if "$(SHARED)" == "1"
80 !if "$(SHARED)" == "0"
83 !if "$(SHARED)" == "1"
86 !if "$(MONOLITHIC)" == "0"
89 !if "$(MONOLITHIC)" == "1"
92 !if "$(WXUNIV)" == "1"
93 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
95 !if "$(DEBUG_FLAG)" == "0"
96 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
98 !if "$(BUILD)" == "release"
99 __NDEBUG_DEFINE_p_1 = -dNDEBUG
101 !if "$(USE_EXCEPTIONS)" == "0"
102 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
104 !if "$(USE_RTTI)" == "0"
105 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
107 !if "$(USE_THREADS)" == "0"
108 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
110 !if "$(UNICODE)" == "0"
111 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
113 !if "$(UNICODE)" == "1"
114 __UNICODE_DEFINE_p_1 = -d_UNICODE
117 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
119 !if "$(USE_CAIRO)" == "1"
120 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
122 !if "$(SHARED)" == "1"
123 __DLLFLAG_p = -DWXUSINGDLL
125 !if "$(SHARED)" == "1"
126 __DLLFLAG_p_1 = -dWXUSINGDLL
128 !if "$(SHARED)" == "1"
129 __renddll___depname = \
130 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
132 !if "$(BUILD)" == "debug"
135 !if "$(BUILD)" == "release"
138 !if "$(USE_THREADS)" == "0"
141 !if "$(USE_THREADS)" == "1"
144 !if "$(USE_THREADS)" == "0"
147 !if "$(USE_THREADS)" == "1"
148 __THREADSFLAG_0 = -tWM
150 !if "$(RUNTIME_LIBS)" == "dynamic"
151 __RUNTIME_LIBS = -tWR
153 !if "$(RUNTIME_LIBS)" == "static"
156 !if "$(RUNTIME_LIBS)" == "dynamic"
159 !if "$(RUNTIME_LIBS)" == "static"
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165 !if "$(DEBUG_FLAG)" == "0"
166 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
168 !if "$(BUILD)" == "release"
169 __NDEBUG_DEFINE_p = -DNDEBUG
171 !if "$(USE_EXCEPTIONS)" == "0"
172 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
174 !if "$(USE_RTTI)" == "0"
175 __RTTI_DEFINE_p = -DwxNO_RTTI
177 !if "$(USE_THREADS)" == "0"
178 __THREAD_DEFINE_p = -DwxNO_THREADS
180 !if "$(UNICODE)" == "0"
181 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
183 !if "$(UNICODE)" == "1"
184 __UNICODE_DEFINE_p = -D_UNICODE
187 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
189 !if "$(USE_CAIRO)" == "1"
190 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
192 !if "$(MONOLITHIC)" == "0"
194 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
196 !if "$(MONOLITHIC)" == "0"
198 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
204 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
205 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
207 !if "$(USE_GUI)" == "1"
208 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
213 !if "$(USE_GUI)" == "1"
214 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
217 __UNICOWS_LIB_p = unicows.lib
219 !if "$(USE_CAIRO)" == "1"
220 __CAIRO_LIB_p = cairo.lib
222 !if "$(USE_CAIRO)" == "1"
223 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(OBJS)\render.exe $(__renddll___depname)
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
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
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,,
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
279 $(OBJS)\render_render.obj: .\render.cpp
280 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp
282 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
283 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp