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