]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.bcc
extracted MSW-specific setup.h options to their own wx/msw/setup_inc.h file which...
[wxWidgets.git] / samples / render / makefile.bcc
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 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 29
25 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
26 OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 SETUPHDIR = \
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)
37 RENDER_OBJECTS = \
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)
45 RENDDLL_OBJECTS = \
46 $(OBJS)\renddll_renddll.obj
47
48 ### Conditionally set variables: ###
49
50 !if "$(USE_GUI)" == "0"
51 PORTNAME = base
52 !endif
53 !if "$(USE_GUI)" == "1"
54 PORTNAME = msw
55 !endif
56 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 WXDEBUGFLAG = d
58 !endif
59 !if "$(DEBUG_FLAG)" == "1"
60 WXDEBUGFLAG = d
61 !endif
62 !if "$(UNICODE)" == "1"
63 WXUNICODEFLAG = u
64 !endif
65 !if "$(WXUNIV)" == "1"
66 WXUNIVNAME = univ
67 !endif
68 !if "$(SHARED)" == "1"
69 WXDLLFLAG = dll
70 !endif
71 !if "$(SHARED)" == "0"
72 LIBTYPE_SUFFIX = lib
73 !endif
74 !if "$(SHARED)" == "1"
75 LIBTYPE_SUFFIX = dll
76 !endif
77 !if "$(MONOLITHIC)" == "0"
78 EXTRALIBS_FOR_BASE =
79 !endif
80 !if "$(MONOLITHIC)" == "1"
81 EXTRALIBS_FOR_BASE =
82 !endif
83 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
84 PLUGINSUFFIX = d
85 !endif
86 !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
87 PLUGINSUFFIX = ud
88 !endif
89 !if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
90 PLUGINSUFFIX =
91 !endif
92 !if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
93 PLUGINSUFFIX = u
94 !endif
95 !if "$(WXUNIV)" == "1"
96 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
97 !endif
98 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
99 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
100 !endif
101 !if "$(DEBUG_FLAG)" == "1"
102 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
103 !endif
104 !if "$(USE_EXCEPTIONS)" == "0"
105 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
106 !endif
107 !if "$(USE_RTTI)" == "0"
108 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
109 !endif
110 !if "$(USE_THREADS)" == "0"
111 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
112 !endif
113 !if "$(UNICODE)" == "1"
114 __UNICODE_DEFINE_p_1 = -d_UNICODE
115 !endif
116 !if "$(MSLU)" == "1"
117 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
118 !endif
119 !if "$(USE_GDIPLUS)" == "1"
120 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
121 !endif
122 !if "$(SHARED)" == "1"
123 __DLLFLAG_p = -DWXUSINGDLL
124 !endif
125 !if "$(SHARED)" == "1"
126 __DLLFLAG_p_1 = -dWXUSINGDLL
127 !endif
128 !if "$(SHARED)" == "1"
129 __renddll___depname = \
130 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
131 !endif
132 !if "$(BUILD)" == "debug"
133 __OPTIMIZEFLAG = -Od
134 !endif
135 !if "$(BUILD)" == "release"
136 __OPTIMIZEFLAG = -O2
137 !endif
138 !if "$(USE_THREADS)" == "0"
139 __THREADSFLAG =
140 !endif
141 !if "$(USE_THREADS)" == "1"
142 __THREADSFLAG = mt
143 !endif
144 !if "$(USE_THREADS)" == "0"
145 __THREADSFLAG_0 =
146 !endif
147 !if "$(USE_THREADS)" == "1"
148 __THREADSFLAG_0 = -tWM
149 !endif
150 !if "$(RUNTIME_LIBS)" == "dynamic"
151 __RUNTIME_LIBS = -tWR
152 !endif
153 !if "$(RUNTIME_LIBS)" == "static"
154 __RUNTIME_LIBS =
155 !endif
156 !if "$(RUNTIME_LIBS)" == "dynamic"
157 __RUNTIME_LIBS_0 = i
158 !endif
159 !if "$(RUNTIME_LIBS)" == "static"
160 __RUNTIME_LIBS_0 =
161 !endif
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
164 !endif
165 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
167 !endif
168 !if "$(DEBUG_FLAG)" == "1"
169 __DEBUG_DEFINE_p = -D__WXDEBUG__
170 !endif
171 !if "$(USE_EXCEPTIONS)" == "0"
172 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
173 !endif
174 !if "$(USE_RTTI)" == "0"
175 __RTTI_DEFINE_p = -DwxNO_RTTI
176 !endif
177 !if "$(USE_THREADS)" == "0"
178 __THREAD_DEFINE_p = -DwxNO_THREADS
179 !endif
180 !if "$(UNICODE)" == "1"
181 __UNICODE_DEFINE_p = -D_UNICODE
182 !endif
183 !if "$(MSLU)" == "1"
184 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
185 !endif
186 !if "$(USE_GDIPLUS)" == "1"
187 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
188 !endif
189 !if "$(MONOLITHIC)" == "0"
190 __WXLIB_CORE_p = \
191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
192 !endif
193 !if "$(MONOLITHIC)" == "0"
194 __WXLIB_BASE_p = \
195 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
196 !endif
197 !if "$(MONOLITHIC)" == "1"
198 __WXLIB_MONO_p = \
199 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !endif
201 !if "$(USE_GUI)" == "1"
202 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
203 !endif
204 !if "$(USE_GUI)" == "1"
205 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
206 !endif
207 !if "$(USE_GUI)" == "1"
208 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
209 !endif
210 !if "$(MSLU)" == "1"
211 __UNICOWS_LIB_p = unicows.lib
212 !endif
213 !if "$(USE_GDIPLUS)" == "1"
214 __GDIPLUS_LIB_p = gdiplus.lib
215 !endif
216 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
217 __DEBUGINFO = -v
218 !endif
219 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
220 __DEBUGINFO = -v-
221 !endif
222 !if "$(DEBUG_INFO)" == "0"
223 __DEBUGINFO = -v-
224 !endif
225 !if "$(DEBUG_INFO)" == "1"
226 __DEBUGINFO = -v
227 !endif
228
229
230 all: $(OBJS)
231 $(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234 ### Targets: ###
235
236 all: $(OBJS)\render.exe $(__renddll___depname)
237
238 clean:
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
254
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
258 |
259
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,,
264 |
265 !endif
266
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 $**
269
270 $(OBJS)\render_render.obj: .\render.cpp
271 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
272
273 $(OBJS)\renddll_renddll.obj: .\renddll.cpp
274 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**
275