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 # -------------------------------------------------------------------------
25 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31 RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\render_render.obj
39 RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
40 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
43 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \
44 $(CPPFLAGS) $(CXXFLAGS)
46 $(OBJS)\renddll_renddll.obj
48 ### Conditionally set variables: ###
50 !if "$(USE_GUI)" == "0"
53 !if "$(USE_GUI)" == "1"
56 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
59 !if "$(DEBUG_FLAG)" == "1"
62 !if "$(UNICODE)" == "1"
65 !if "$(WXUNIV)" == "1"
68 !if "$(SHARED)" == "1"
71 !if "$(SHARED)" == "0"
74 !if "$(SHARED)" == "1"
77 !if "$(MONOLITHIC)" == "0"
80 !if "$(MONOLITHIC)" == "1"
83 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
86 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
89 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
92 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
95 !if "$(WXUNIV)" == "1"
96 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
98 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
99 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
101 !if "$(DEBUG_FLAG)" == "1"
102 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
104 !if "$(USE_EXCEPTIONS)" == "0"
105 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
107 !if "$(USE_RTTI)" == "0"
108 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
110 !if "$(USE_THREADS)" == "0"
111 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
113 !if "$(UNICODE)" == "1"
114 __UNICODE_DEFINE_p_1 = -d_UNICODE
117 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
119 !if "$(USE_GDIPLUS)" == "1"
120 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
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)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.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 "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
168 !if "$(DEBUG_FLAG)" == "1"
169 __DEBUG_DEFINE_p = -D__WXDEBUG__
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)" == "1"
181 __UNICODE_DEFINE_p = -D_UNICODE
184 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
186 !if "$(USE_GDIPLUS)" == "1"
187 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
189 !if "$(MONOLITHIC)" == "0"
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
193 !if "$(MONOLITHIC)" == "0"
195 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
197 !if "$(MONOLITHIC)" == "1"
199 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
201 !if "$(USE_GUI)" == "1"
202 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
204 !if "$(USE_GUI)" == "1"
205 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
207 !if "$(USE_GUI)" == "1"
208 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
211 __UNICOWS_LIB_p = unicows.lib
213 !if "$(USE_GDIPLUS)" == "1"
214 __GDIPLUS_LIB_p = gdiplus.lib
216 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
219 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
222 !if "$(DEBUG_INFO)" == "0"
225 !if "$(DEBUG_INFO)" == "1"
232 -if not exist $(OBJS) mkdir $(OBJS)
236 all: $(OBJS)\render.exe $(__renddll___depname)
239 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
240 -if exist $(OBJS)\*.res del $(OBJS)\*.res
241 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
242 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
243 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
244 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
245 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
246 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
247 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
248 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
249 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
250 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
251 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
252 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
253 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
255 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
256 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
257 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
260 !if "$(SHARED)" == "1"
261 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
262 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
263 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,,
267 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
268 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 $**
270 $(OBJS)\render_render.obj: .\render.cpp
271 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
273 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
274 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**