]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
506e9b7e | 3 | # Bakefile 0.2.5 (http://www.bakefile.org) |
2d611b5c VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
9bfe7ad9 VS |
7 | .autodepend |
8 | ||
2d611b5c | 9 | !ifndef BCCDIR |
9bfe7ad9 VS |
10 | !ifndef MAKEDIR |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
12 | !endif | |
2d611b5c VS |
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 | ||
2d611b5c VS |
22 | ### Variables: ### |
23 | ||
ae4ccf12 RD |
24 | WX_RELEASE_NODOT = 29 |
25 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0 | |
444833b3 | 26 | COMPILER_PREFIX = bcc |
2d611b5c | 27 | OBJS = \ |
444833b3 CE |
28 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
29 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
b17c1746 DE |
30 | SETUPHDIR = \ |
31 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
32 | RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ | |
8c9f8f91 JS |
33 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
34 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 35 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
36 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \ |
37 | -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) | |
2d611b5c VS |
38 | RENDER_OBJECTS = \ |
39 | $(OBJS)\render_render.obj | |
b17c1746 | 40 | RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
8c9f8f91 JS |
41 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
42 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 43 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
44 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \ |
45 | $(CPPFLAGS) $(CXXFLAGS) | |
b17c1746 DE |
46 | RENDDLL_OBJECTS = \ |
47 | $(OBJS)\renddll_renddll.obj | |
2d611b5c VS |
48 | |
49 | ### Conditionally set variables: ### | |
50 | ||
51 | !if "$(USE_GUI)" == "0" | |
52 | PORTNAME = base | |
53 | !endif | |
54 | !if "$(USE_GUI)" == "1" | |
55 | PORTNAME = msw | |
56 | !endif | |
57 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
58 | WXDEBUGFLAG = d | |
59 | !endif | |
60 | !if "$(DEBUG_FLAG)" == "1" | |
61 | WXDEBUGFLAG = d | |
62 | !endif | |
2d611b5c VS |
63 | !if "$(UNICODE)" == "1" |
64 | WXUNICODEFLAG = u | |
65 | !endif | |
66 | !if "$(WXUNIV)" == "1" | |
67 | WXUNIVNAME = univ | |
68 | !endif | |
b17c1746 DE |
69 | !if "$(SHARED)" == "1" |
70 | WXDLLFLAG = dll | |
2d611b5c | 71 | !endif |
b14abf14 JS |
72 | !if "$(SHARED)" == "0" |
73 | LIBTYPE_SUFFIX = lib | |
74 | !endif | |
75 | !if "$(SHARED)" == "1" | |
76 | LIBTYPE_SUFFIX = dll | |
77 | !endif | |
dd65d8c8 RN |
78 | !if "$(MONOLITHIC)" == "0" |
79 | EXTRALIBS_FOR_BASE = | |
80 | !endif | |
81 | !if "$(MONOLITHIC)" == "1" | |
82 | EXTRALIBS_FOR_BASE = | |
83 | !endif | |
078c7a59 | 84 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0" |
314a6446 | 85 | PLUGINSUFFIX = d |
078c7a59 VS |
86 | !endif |
87 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1" | |
314a6446 | 88 | PLUGINSUFFIX = ud |
078c7a59 VS |
89 | !endif |
90 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "0" | |
91 | PLUGINSUFFIX = | |
92 | !endif | |
93 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "1" | |
314a6446 | 94 | PLUGINSUFFIX = u |
078c7a59 | 95 | !endif |
b17c1746 DE |
96 | !if "$(WXUNIV)" == "1" |
97 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
2d611b5c VS |
98 | !endif |
99 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
100 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
101 | !endif | |
102 | !if "$(DEBUG_FLAG)" == "1" | |
103 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
104 | !endif | |
8c9f8f91 JS |
105 | !if "$(USE_EXCEPTIONS)" == "0" |
106 | __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS | |
107 | !endif | |
108 | !if "$(USE_RTTI)" == "0" | |
109 | __RTTI_DEFINE_p_1 = -dwxNO_RTTI | |
110 | !endif | |
111 | !if "$(USE_THREADS)" == "0" | |
112 | __THREAD_DEFINE_p_1 = -dwxNO_THREADS | |
113 | !endif | |
7379e476 VZ |
114 | !if "$(UNICODE)" == "0" |
115 | __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0 | |
116 | !endif | |
b17c1746 DE |
117 | !if "$(UNICODE)" == "1" |
118 | __UNICODE_DEFINE_p_1 = -d_UNICODE | |
119 | !endif | |
2113bc77 MW |
120 | !if "$(MSLU)" == "1" |
121 | __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1 | |
122 | !endif | |
3abcf424 RD |
123 | !if "$(USE_GDIPLUS)" == "1" |
124 | __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1 | |
125 | !endif | |
2d611b5c VS |
126 | !if "$(SHARED)" == "1" |
127 | __DLLFLAG_p = -DWXUSINGDLL | |
128 | !endif | |
129 | !if "$(SHARED)" == "1" | |
130 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
131 | !endif | |
b17c1746 DE |
132 | !if "$(SHARED)" == "1" |
133 | __renddll___depname = \ | |
ae4ccf12 | 134 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll |
2d611b5c VS |
135 | !endif |
136 | !if "$(BUILD)" == "debug" | |
137 | __OPTIMIZEFLAG = -Od | |
138 | !endif | |
139 | !if "$(BUILD)" == "release" | |
140 | __OPTIMIZEFLAG = -O2 | |
141 | !endif | |
8c9f8f91 JS |
142 | !if "$(USE_THREADS)" == "0" |
143 | __THREADSFLAG = | |
144 | !endif | |
145 | !if "$(USE_THREADS)" == "1" | |
146 | __THREADSFLAG = mt | |
147 | !endif | |
148 | !if "$(USE_THREADS)" == "0" | |
149 | __THREADSFLAG_0 = | |
150 | !endif | |
151 | !if "$(USE_THREADS)" == "1" | |
152 | __THREADSFLAG_0 = -tWM | |
153 | !endif | |
2d611b5c | 154 | !if "$(RUNTIME_LIBS)" == "dynamic" |
b17c1746 | 155 | __RUNTIME_LIBS = -tWR |
2d611b5c VS |
156 | !endif |
157 | !if "$(RUNTIME_LIBS)" == "static" | |
158 | __RUNTIME_LIBS = | |
159 | !endif | |
160 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 161 | __RUNTIME_LIBS_0 = i |
2d611b5c VS |
162 | !endif |
163 | !if "$(RUNTIME_LIBS)" == "static" | |
164 | __RUNTIME_LIBS_0 = | |
165 | !endif | |
b17c1746 DE |
166 | !if "$(WXUNIV)" == "1" |
167 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
168 | !endif | |
169 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
170 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
171 | !endif | |
172 | !if "$(DEBUG_FLAG)" == "1" | |
173 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 174 | !endif |
8c9f8f91 JS |
175 | !if "$(USE_EXCEPTIONS)" == "0" |
176 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
177 | !endif | |
178 | !if "$(USE_RTTI)" == "0" | |
179 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
180 | !endif | |
181 | !if "$(USE_THREADS)" == "0" | |
182 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
183 | !endif | |
7379e476 VZ |
184 | !if "$(UNICODE)" == "0" |
185 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
186 | !endif | |
2d611b5c | 187 | !if "$(UNICODE)" == "1" |
b17c1746 | 188 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 189 | !endif |
2113bc77 MW |
190 | !if "$(MSLU)" == "1" |
191 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
192 | !endif | |
3abcf424 RD |
193 | !if "$(USE_GDIPLUS)" == "1" |
194 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
195 | !endif | |
2d611b5c VS |
196 | !if "$(MONOLITHIC)" == "0" |
197 | __WXLIB_CORE_p = \ | |
c33fae85 | 198 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
2d611b5c | 199 | !endif |
b17c1746 | 200 | !if "$(MONOLITHIC)" == "0" |
c33fae85 RN |
201 | __WXLIB_BASE_p = \ |
202 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 203 | !endif |
2d611b5c VS |
204 | !if "$(MONOLITHIC)" == "1" |
205 | __WXLIB_MONO_p = \ | |
c33fae85 | 206 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
2d611b5c | 207 | !endif |
b17c1746 | 208 | !if "$(USE_GUI)" == "1" |
9c2d002b | 209 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
2d611b5c | 210 | !endif |
b17c1746 | 211 | !if "$(USE_GUI)" == "1" |
9c2d002b | 212 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
2d611b5c | 213 | !endif |
b17c1746 | 214 | !if "$(USE_GUI)" == "1" |
9c2d002b | 215 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
216 | !endif |
217 | !if "$(MSLU)" == "1" | |
218 | __UNICOWS_LIB_p = unicows.lib | |
219 | !endif | |
3abcf424 RD |
220 | !if "$(USE_GDIPLUS)" == "1" |
221 | __GDIPLUS_LIB_p = gdiplus.lib | |
222 | !endif | |
b17c1746 DE |
223 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
224 | __DEBUGINFO = -v | |
225 | !endif | |
226 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
227 | __DEBUGINFO = -v- | |
228 | !endif | |
229 | !if "$(DEBUG_INFO)" == "0" | |
230 | __DEBUGINFO = -v- | |
231 | !endif | |
232 | !if "$(DEBUG_INFO)" == "1" | |
233 | __DEBUGINFO = -v | |
2d611b5c VS |
234 | !endif |
235 | ||
2d611b5c VS |
236 | |
237 | all: $(OBJS) | |
238 | $(OBJS): | |
239 | -if not exist $(OBJS) mkdir $(OBJS) | |
240 | ||
241 | ### Targets: ### | |
242 | ||
243 | all: $(OBJS)\render.exe $(__renddll___depname) | |
244 | ||
2d611b5c VS |
245 | clean: |
246 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
247 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
b14abf14 | 248 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
2d611b5c | 249 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe |
ec08d395 JS |
250 | -if exist $(OBJS)\render.tds del $(OBJS)\render.tds |
251 | -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc | |
252 | -if exist $(OBJS)\render.ild del $(OBJS)\render.ild | |
253 | -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf | |
254 | -if exist $(OBJS)\render.ils del $(OBJS)\render.ils | |
ae4ccf12 RD |
255 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll |
256 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds | |
257 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc | |
258 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild | |
259 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf | |
260 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils | |
2d611b5c | 261 | |
b17c1746 | 262 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res |
8ece421c | 263 | ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&| |
7379e476 | 264 | 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 import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res |
b17c1746 DE |
265 | | |
266 | ||
2d611b5c | 267 | !if "$(SHARED)" == "1" |
ae4ccf12 | 268 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS) |
8ece421c | 269 | ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(LDFLAGS) @&&| |
7379e476 | 270 | 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 import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, |
2d611b5c VS |
271 | | |
272 | !endif | |
273 | ||
b17c1746 | 274 | $(OBJS)\render_sample.res: .\..\..\samples\sample.rc |
6e0fbb3d | 275 | 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 -dNOPCH .\..\..\samples\sample.rc |
b17c1746 DE |
276 | |
277 | $(OBJS)\render_render.obj: .\render.cpp | |
6e0fbb3d | 278 | $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) .\render.cpp |
b17c1746 DE |
279 | |
280 | $(OBJS)\renddll_renddll.obj: .\renddll.cpp | |
6e0fbb3d | 281 | $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) .\renddll.cpp |
b14abf14 | 282 |