1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)3
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\render_render.obj
36 RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
37 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -DWXUSINGDLL \
39 $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\renddll_renddll.obj
43 ### Conditionally set variables: ###
45 !if "$(USE_GUI)" == "0"
48 !if "$(USE_GUI)" == "1"
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54 !if "$(DEBUG_FLAG)" == "1"
57 !if "$(UNICODE)" == "1"
60 !if "$(WXUNIV)" == "1"
63 !if "$(SHARED)" == "1"
66 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
69 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
72 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
75 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
79 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
81 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
84 !if "$(DEBUG_FLAG)" == "1"
85 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
87 !if "$(UNICODE)" == "1"
88 __UNICODE_DEFINE_p_1 = -d_UNICODE
90 !if "$(SHARED)" == "1"
91 __DLLFLAG_p = -DWXUSINGDLL
93 !if "$(SHARED)" == "1"
94 __DLLFLAG_p_1 = -dWXUSINGDLL
96 !if "$(SHARED)" == "1"
97 __renddll___depname = \
98 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
100 !if "$(BUILD)" == "debug"
103 !if "$(BUILD)" == "release"
106 !if "$(RUNTIME_LIBS)" == "dynamic"
107 __RUNTIME_LIBS = -tWR
109 !if "$(RUNTIME_LIBS)" == "static"
112 !if "$(RUNTIME_LIBS)" == "dynamic"
115 !if "$(RUNTIME_LIBS)" == "static"
118 !if "$(WXUNIV)" == "1"
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
121 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
122 __DEBUG_DEFINE_p = -D__WXDEBUG__
124 !if "$(DEBUG_FLAG)" == "1"
125 __DEBUG_DEFINE_p = -D__WXDEBUG__
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p = -D_UNICODE
130 !if "$(SHARED)" == "0"
131 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
133 !if "$(SHARED)" == "1"
134 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
136 !if "$(MONOLITHIC)" == "0"
138 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
140 !if "$(MONOLITHIC)" == "0"
142 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
144 !if "$(MONOLITHIC)" == "1"
146 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
148 !if "$(USE_GUI)" == "1"
149 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
151 !if "$(USE_GUI)" == "1"
152 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
154 !if "$(USE_GUI)" == "1"
155 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
158 __UNICOWS_LIB_p = unicows.lib
160 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
163 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
166 !if "$(DEBUG_INFO)" == "0"
169 !if "$(DEBUG_INFO)" == "1"
176 -if not exist $(OBJS) mkdir $(OBJS)
180 all: $(OBJS)\render.exe $(__renddll___depname)
183 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
184 -if exist $(OBJS)\*.res del $(OBJS)\*.res
185 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
186 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
187 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
188 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
189 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
190 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
191 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
192 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
193 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
194 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
195 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
196 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
198 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
199 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
200 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
203 !if "$(SHARED)" == "1"
204 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
205 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
206 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
210 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
211 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
213 $(OBJS)\render_render.obj: .\render.cpp
214 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
216 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
217 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**