]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
77a7dfc1 | 3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) |
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 | ||
4cbcfb73 | 24 | WX_RELEASE_NODOT = 27 |
3abcf424 | 25 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)1 |
2d611b5c VS |
26 | OBJS = \ |
27 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 28 | LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
29 | SETUPHDIR = \ |
30 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
31 | RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ | |
8c9f8f91 JS |
32 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
33 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 34 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
35 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \ |
36 | -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) | |
2d611b5c VS |
37 | RENDER_OBJECTS = \ |
38 | $(OBJS)\render_render.obj | |
b17c1746 | 39 | RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
8c9f8f91 JS |
40 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
41 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 42 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
43 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -DWXUSINGDLL \ |
44 | $(CPPFLAGS) $(CXXFLAGS) | |
b17c1746 DE |
45 | RENDDLL_OBJECTS = \ |
46 | $(OBJS)\renddll_renddll.obj | |
2d611b5c VS |
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 | |
2d611b5c VS |
62 | !if "$(UNICODE)" == "1" |
63 | WXUNICODEFLAG = u | |
64 | !endif | |
65 | !if "$(WXUNIV)" == "1" | |
66 | WXUNIVNAME = univ | |
67 | !endif | |
b17c1746 DE |
68 | !if "$(SHARED)" == "1" |
69 | WXDLLFLAG = dll | |
2d611b5c | 70 | !endif |
b14abf14 JS |
71 | !if "$(SHARED)" == "0" |
72 | LIBTYPE_SUFFIX = lib | |
73 | !endif | |
74 | !if "$(SHARED)" == "1" | |
75 | LIBTYPE_SUFFIX = dll | |
76 | !endif | |
dd65d8c8 RN |
77 | !if "$(MONOLITHIC)" == "0" |
78 | EXTRALIBS_FOR_BASE = | |
79 | !endif | |
80 | !if "$(MONOLITHIC)" == "1" | |
81 | EXTRALIBS_FOR_BASE = | |
82 | !endif | |
078c7a59 | 83 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0" |
314a6446 | 84 | PLUGINSUFFIX = d |
078c7a59 VS |
85 | !endif |
86 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1" | |
314a6446 | 87 | PLUGINSUFFIX = ud |
078c7a59 VS |
88 | !endif |
89 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "0" | |
90 | PLUGINSUFFIX = | |
91 | !endif | |
92 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "1" | |
314a6446 | 93 | PLUGINSUFFIX = u |
078c7a59 | 94 | !endif |
b17c1746 DE |
95 | !if "$(WXUNIV)" == "1" |
96 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
2d611b5c VS |
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 | |
8c9f8f91 JS |
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 | |
b17c1746 DE |
113 | !if "$(UNICODE)" == "1" |
114 | __UNICODE_DEFINE_p_1 = -d_UNICODE | |
115 | !endif | |
2113bc77 MW |
116 | !if "$(MSLU)" == "1" |
117 | __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1 | |
118 | !endif | |
3abcf424 RD |
119 | !if "$(USE_GDIPLUS)" == "1" |
120 | __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1 | |
121 | !endif | |
2d611b5c VS |
122 | !if "$(SHARED)" == "1" |
123 | __DLLFLAG_p = -DWXUSINGDLL | |
124 | !endif | |
125 | !if "$(SHARED)" == "1" | |
126 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
127 | !endif | |
b17c1746 DE |
128 | !if "$(SHARED)" == "1" |
129 | __renddll___depname = \ | |
4cbcfb73 | 130 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll |
2d611b5c VS |
131 | !endif |
132 | !if "$(BUILD)" == "debug" | |
133 | __OPTIMIZEFLAG = -Od | |
134 | !endif | |
135 | !if "$(BUILD)" == "release" | |
136 | __OPTIMIZEFLAG = -O2 | |
137 | !endif | |
8c9f8f91 JS |
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 | |
2d611b5c | 150 | !if "$(RUNTIME_LIBS)" == "dynamic" |
b17c1746 | 151 | __RUNTIME_LIBS = -tWR |
2d611b5c VS |
152 | !endif |
153 | !if "$(RUNTIME_LIBS)" == "static" | |
154 | __RUNTIME_LIBS = | |
155 | !endif | |
156 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 157 | __RUNTIME_LIBS_0 = i |
2d611b5c VS |
158 | !endif |
159 | !if "$(RUNTIME_LIBS)" == "static" | |
160 | __RUNTIME_LIBS_0 = | |
161 | !endif | |
b17c1746 DE |
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__ | |
2d611b5c | 170 | !endif |
8c9f8f91 JS |
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 | |
2d611b5c | 180 | !if "$(UNICODE)" == "1" |
b17c1746 | 181 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 182 | !endif |
2113bc77 MW |
183 | !if "$(MSLU)" == "1" |
184 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
185 | !endif | |
3abcf424 RD |
186 | !if "$(USE_GDIPLUS)" == "1" |
187 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
188 | !endif | |
2d611b5c VS |
189 | !if "$(MONOLITHIC)" == "0" |
190 | __WXLIB_CORE_p = \ | |
c33fae85 | 191 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
2d611b5c | 192 | !endif |
b17c1746 | 193 | !if "$(MONOLITHIC)" == "0" |
c33fae85 RN |
194 | __WXLIB_BASE_p = \ |
195 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 196 | !endif |
2d611b5c VS |
197 | !if "$(MONOLITHIC)" == "1" |
198 | __WXLIB_MONO_p = \ | |
c33fae85 | 199 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
2d611b5c | 200 | !endif |
b17c1746 | 201 | !if "$(USE_GUI)" == "1" |
9c2d002b | 202 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
2d611b5c | 203 | !endif |
b17c1746 | 204 | !if "$(USE_GUI)" == "1" |
9c2d002b | 205 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
2d611b5c | 206 | !endif |
b17c1746 | 207 | !if "$(USE_GUI)" == "1" |
9c2d002b | 208 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
209 | !endif |
210 | !if "$(MSLU)" == "1" | |
211 | __UNICOWS_LIB_p = unicows.lib | |
212 | !endif | |
3abcf424 RD |
213 | !if "$(USE_GDIPLUS)" == "1" |
214 | __GDIPLUS_LIB_p = gdiplus.lib | |
215 | !endif | |
b17c1746 DE |
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 | |
2d611b5c VS |
227 | !endif |
228 | ||
2d611b5c VS |
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 | ||
2d611b5c VS |
238 | clean: |
239 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
240 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
b14abf14 | 241 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
2d611b5c | 242 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe |
ec08d395 JS |
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 | |
4cbcfb73 VZ |
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 | |
2d611b5c | 254 | |
b17c1746 DE |
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 @&&| | |
3abcf424 | 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 |
b17c1746 DE |
258 | | |
259 | ||
2d611b5c | 260 | !if "$(SHARED)" == "1" |
4cbcfb73 | 261 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS) |
9bfe7ad9 | 262 | ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| |
3abcf424 | 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,, |
2d611b5c VS |
264 | | |
265 | !endif | |
266 | ||
b17c1746 | 267 | $(OBJS)\render_sample.res: .\..\..\samples\sample.rc |
3abcf424 | 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 $** |
b17c1746 DE |
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) $** | |
b14abf14 | 275 |