1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\render_render.obj
34 RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
35 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -DWXUSINGDLL \
37 $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\renddll_renddll.obj
41 ### Conditionally set variables: ###
43 !if "$(USE_GUI)" == "0"
46 !if "$(USE_GUI)" == "1"
49 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 !if "$(DEBUG_FLAG)" == "1"
55 !if "$(UNICODE)" == "1"
58 !if "$(WXUNIV)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
67 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
70 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
73 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
76 !if "$(WXUNIV)" == "1"
77 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
79 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
80 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
82 !if "$(DEBUG_FLAG)" == "1"
83 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
85 !if "$(UNICODE)" == "1"
86 __UNICODE_DEFINE_p_1 = -d_UNICODE
88 !if "$(SHARED)" == "1"
89 __DLLFLAG_p = -DWXUSINGDLL
91 !if "$(SHARED)" == "1"
92 __DLLFLAG_p_1 = -dWXUSINGDLL
94 !if "$(SHARED)" == "1"
95 __renddll___depname = \
96 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.dll
98 !if "$(BUILD)" == "debug"
101 !if "$(BUILD)" == "release"
104 !if "$(RUNTIME_LIBS)" == "dynamic"
105 __RUNTIME_LIBS = -tWR
107 !if "$(RUNTIME_LIBS)" == "static"
110 !if "$(RUNTIME_LIBS)" == "dynamic"
113 !if "$(RUNTIME_LIBS)" == "static"
116 !if "$(WXUNIV)" == "1"
117 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
119 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
122 !if "$(DEBUG_FLAG)" == "1"
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 !if "$(UNICODE)" == "1"
126 __UNICODE_DEFINE_p = -D_UNICODE
128 !if "$(SHARED)" == "0"
129 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
131 !if "$(SHARED)" == "1"
132 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
134 !if "$(MONOLITHIC)" == "0"
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
138 !if "$(MONOLITHIC)" == "0"
139 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
141 !if "$(MONOLITHIC)" == "1"
143 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
145 !if "$(USE_GUI)" == "1"
146 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
148 !if "$(USE_GUI)" == "1"
149 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
151 !if "$(USE_GUI)" == "1"
152 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
155 __UNICOWS_LIB_p = unicows.lib
157 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
160 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
163 !if "$(DEBUG_INFO)" == "0"
166 !if "$(DEBUG_INFO)" == "1"
173 -if not exist $(OBJS) mkdir $(OBJS)
177 all: $(OBJS)\render.exe $(__renddll___depname)
180 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
181 -if exist $(OBJS)\*.res del $(OBJS)\*.res
182 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
183 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
184 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
185 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
186 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
187 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
188 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.dll
189 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.tds
190 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ilc
191 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ild
192 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ilf
193 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.ils
195 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
196 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
197 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$(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
200 !if "$(SHARED)" == "1"
201 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_bcc.dll: $(RENDDLL_OBJECTS)
202 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
203 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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
207 $(OBJS)\render_sample.res: .\..\..\samples\sample.rc
208 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 $**
210 $(OBJS)\render_render.obj: .\render.cpp
211 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
213 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
214 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**