1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
35 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\render_render.obj
38 RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
39 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
40 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
42 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \
43 $(CPPFLAGS) $(CXXFLAGS)
45 $(OBJS)\renddll_renddll.obj
47 ### Conditionally set variables: ###
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(SHARED)" == "1"
70 !if "$(SHARED)" == "0"
73 !if "$(SHARED)" == "1"
76 !if "$(MONOLITHIC)" == "0"
79 !if "$(MONOLITHIC)" == "1"
82 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
85 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
88 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
91 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
94 !if "$(WXUNIV)" == "1"
95 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
97 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
98 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
100 !if "$(DEBUG_FLAG)" == "1"
101 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
103 !if "$(USE_EXCEPTIONS)" == "0"
104 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
106 !if "$(USE_RTTI)" == "0"
107 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
109 !if "$(USE_THREADS)" == "0"
110 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
112 !if "$(UNICODE)" == "1"
113 __UNICODE_DEFINE_p_1 = -d_UNICODE
116 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
118 !if "$(USE_GDIPLUS)" == "1"
119 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
121 !if "$(SHARED)" == "1"
122 __DLLFLAG_p = -DWXUSINGDLL
124 !if "$(SHARED)" == "1"
125 __DLLFLAG_p_1 = -dWXUSINGDLL
127 !if "$(SHARED)" == "1"
128 __renddll___depname = \
129 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll
131 !if "$(BUILD)" == "debug"
134 !if "$(BUILD)" == "release"
137 !if "$(USE_THREADS)" == "0"
140 !if "$(USE_THREADS)" == "1"
143 !if "$(USE_THREADS)" == "0"
146 !if "$(USE_THREADS)" == "1"
147 __THREADSFLAG_0 = -tWM
149 !if "$(RUNTIME_LIBS)" == "dynamic"
150 __RUNTIME_LIBS = -tWR
152 !if "$(RUNTIME_LIBS)" == "static"
155 !if "$(RUNTIME_LIBS)" == "dynamic"
158 !if "$(RUNTIME_LIBS)" == "static"
161 !if "$(WXUNIV)" == "1"
162 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
164 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
165 __DEBUG_DEFINE_p = -D__WXDEBUG__
167 !if "$(DEBUG_FLAG)" == "1"
168 __DEBUG_DEFINE_p = -D__WXDEBUG__
170 !if "$(USE_EXCEPTIONS)" == "0"
171 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
173 !if "$(USE_RTTI)" == "0"
174 __RTTI_DEFINE_p = -DwxNO_RTTI
176 !if "$(USE_THREADS)" == "0"
177 __THREAD_DEFINE_p = -DwxNO_THREADS
179 !if "$(UNICODE)" == "1"
180 __UNICODE_DEFINE_p = -D_UNICODE
183 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
185 !if "$(USE_GDIPLUS)" == "1"
186 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
188 !if "$(MONOLITHIC)" == "0"
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
192 !if "$(MONOLITHIC)" == "0"
194 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
196 !if "$(MONOLITHIC)" == "1"
198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(USE_GUI)" == "1"
201 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
203 !if "$(USE_GUI)" == "1"
204 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
206 !if "$(USE_GUI)" == "1"
207 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
210 __UNICOWS_LIB_p = unicows.lib
212 !if "$(USE_GDIPLUS)" == "1"
213 __GDIPLUS_LIB_p = gdiplus.lib
215 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
218 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
221 !if "$(DEBUG_INFO)" == "0"
224 !if "$(DEBUG_INFO)" == "1"
231 -if not exist $(OBJS) mkdir $(OBJS)
235 all: $(OBJS)\render.exe $(__renddll___depname)
238 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
239 -if exist $(OBJS)\*.res del $(OBJS)\*.res
240 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
241 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
242 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
243 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
244 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
245 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
246 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
247 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll
248 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.tds
249 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilc
250 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ild
251 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilf
252 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ils
254 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
255 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
256 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
259 !if "$(SHARED)" == "1"
260 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
261 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
262 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
266 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
267 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 $**
269 $(OBJS)\render_render.obj: .\render.cpp
270 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
272 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
273 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**