]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.bcc
Build fix for motif.
[wxWidgets.git] / samples / render / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (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
13BCCDIR = $(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
24WX_RELEASE_NODOT = 27
25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31RENDER_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 -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH \
36 $(CPPFLAGS) $(CXXFLAGS)
37RENDER_OBJECTS = \
38 $(OBJS)\render_render.obj
39RENDDLL_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 -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL $(CPPFLAGS) $(CXXFLAGS)
44RENDDLL_OBJECTS = \
45 $(OBJS)\renddll_renddll.obj
46
47### Conditionally set variables: ###
48
49!if "$(USE_GUI)" == "0"
50PORTNAME = base
51!endif
52!if "$(USE_GUI)" == "1"
53PORTNAME = msw
54!endif
55!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56WXDEBUGFLAG = d
57!endif
58!if "$(DEBUG_FLAG)" == "1"
59WXDEBUGFLAG = d
60!endif
61!if "$(UNICODE)" == "1"
62WXUNICODEFLAG = u
63!endif
64!if "$(WXUNIV)" == "1"
65WXUNIVNAME = univ
66!endif
67!if "$(SHARED)" == "1"
68WXDLLFLAG = dll
69!endif
70!if "$(SHARED)" == "0"
71LIBTYPE_SUFFIX = lib
72!endif
73!if "$(SHARED)" == "1"
74LIBTYPE_SUFFIX = dll
75!endif
76!if "$(MONOLITHIC)" == "0"
77EXTRALIBS_FOR_BASE =
78!endif
79!if "$(MONOLITHIC)" == "1"
80EXTRALIBS_FOR_BASE =
81!endif
82!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
83PLUGINSUFFIX = d
84!endif
85!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
86PLUGINSUFFIX = ud
87!endif
88!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
89PLUGINSUFFIX =
90!endif
91!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
92PLUGINSUFFIX = u
93!endif
94!if "$(WXUNIV)" == "1"
95__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
96!endif
97!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
98__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
99!endif
100!if "$(DEBUG_FLAG)" == "1"
101__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
102!endif
103!if "$(USE_EXCEPTIONS)" == "0"
104__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
105!endif
106!if "$(USE_RTTI)" == "0"
107__RTTI_DEFINE_p_1 = -dwxNO_RTTI
108!endif
109!if "$(USE_THREADS)" == "0"
110__THREAD_DEFINE_p_1 = -dwxNO_THREADS
111!endif
112!if "$(UNICODE)" == "1"
113__UNICODE_DEFINE_p_1 = -d_UNICODE
114!endif
115!if "$(MSLU)" == "1"
116__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
117!endif
118!if "$(SHARED)" == "1"
119__DLLFLAG_p = -DWXUSINGDLL
120!endif
121!if "$(SHARED)" == "1"
122__DLLFLAG_p_1 = -dWXUSINGDLL
123!endif
124!if "$(SHARED)" == "1"
125__renddll___depname = \
126 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
127!endif
128!if "$(BUILD)" == "debug"
129__OPTIMIZEFLAG = -Od
130!endif
131!if "$(BUILD)" == "release"
132__OPTIMIZEFLAG = -O2
133!endif
134!if "$(USE_THREADS)" == "0"
135__THREADSFLAG =
136!endif
137!if "$(USE_THREADS)" == "1"
138__THREADSFLAG = mt
139!endif
140!if "$(USE_THREADS)" == "0"
141__THREADSFLAG_0 =
142!endif
143!if "$(USE_THREADS)" == "1"
144__THREADSFLAG_0 = -tWM
145!endif
146!if "$(RUNTIME_LIBS)" == "dynamic"
147__RUNTIME_LIBS = -tWR
148!endif
149!if "$(RUNTIME_LIBS)" == "static"
150__RUNTIME_LIBS =
151!endif
152!if "$(RUNTIME_LIBS)" == "dynamic"
153__RUNTIME_LIBS_0 = i
154!endif
155!if "$(RUNTIME_LIBS)" == "static"
156__RUNTIME_LIBS_0 =
157!endif
158!if "$(WXUNIV)" == "1"
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160!endif
161!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
162__DEBUG_DEFINE_p = -D__WXDEBUG__
163!endif
164!if "$(DEBUG_FLAG)" == "1"
165__DEBUG_DEFINE_p = -D__WXDEBUG__
166!endif
167!if "$(USE_EXCEPTIONS)" == "0"
168__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
169!endif
170!if "$(USE_RTTI)" == "0"
171__RTTI_DEFINE_p = -DwxNO_RTTI
172!endif
173!if "$(USE_THREADS)" == "0"
174__THREAD_DEFINE_p = -DwxNO_THREADS
175!endif
176!if "$(UNICODE)" == "1"
177__UNICODE_DEFINE_p = -D_UNICODE
178!endif
179!if "$(MSLU)" == "1"
180__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
181!endif
182!if "$(MONOLITHIC)" == "0"
183__WXLIB_CORE_p = \
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
185!endif
186!if "$(MONOLITHIC)" == "0"
187__WXLIB_BASE_p = \
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
189!endif
190!if "$(MONOLITHIC)" == "1"
191__WXLIB_MONO_p = \
192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
193!endif
194!if "$(USE_GUI)" == "1"
195__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
196!endif
197!if "$(USE_GUI)" == "1"
198__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
199!endif
200!if "$(USE_GUI)" == "1"
201__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
202!endif
203!if "$(MSLU)" == "1"
204__UNICOWS_LIB_p = unicows.lib
205!endif
206!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
207__DEBUGINFO = -v
208!endif
209!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
210__DEBUGINFO = -v-
211!endif
212!if "$(DEBUG_INFO)" == "0"
213__DEBUGINFO = -v-
214!endif
215!if "$(DEBUG_INFO)" == "1"
216__DEBUGINFO = -v
217!endif
218
219
220all: $(OBJS)
221$(OBJS):
222 -if not exist $(OBJS) mkdir $(OBJS)
223
224### Targets: ###
225
226all: $(OBJS)\render.exe $(__renddll___depname)
227
228clean:
229 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
230 -if exist $(OBJS)\*.res del $(OBJS)\*.res
231 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
232 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
233 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
234 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
235 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
236 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
237 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
238 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
239 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
240 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
241 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
242 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
243 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
244
245$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
246 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
247 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
248|
249
250!if "$(SHARED)" == "1"
251$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
252 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
253 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
254|
255!endif
256
257$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
258 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) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
259
260$(OBJS)\render_render.obj: .\render.cpp
261 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
262
263$(OBJS)\renddll_renddll.obj: .\renddll.cpp
264 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**
265