]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.bcc
Add missing wxSTDCALL to fix wxWebView compilation with Borland.
[wxWidgets.git] / samples / ipc / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
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 COMPILER_PREFIX = bcc
26 OBJS = \
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = \
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
30 SETUPHDIR = \
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32 IPCCLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
35 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
36 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
37 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
39 IPCCLIENT_OBJECTS = \
40 $(OBJS)\ipcclient_client.obj
41 IPCSERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
42 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
43 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
44 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
45 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
46 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
47 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
48 IPCSERVER_OBJECTS = \
49 $(OBJS)\ipcserver_server.obj
50 BASEIPCCLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
51 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
52 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
53 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
54 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
55 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
56 $(CPPFLAGS) $(CXXFLAGS)
57 BASEIPCCLIENT_OBJECTS = \
58 $(OBJS)\baseipcclient_baseclient.obj
59 BASEIPCSERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
60 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
61 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
62 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
63 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
64 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
65 $(CPPFLAGS) $(CXXFLAGS)
66 BASEIPCSERVER_OBJECTS = \
67 $(OBJS)\baseipcserver_baseserver.obj
68
69 ### Conditionally set variables: ###
70
71 !if "$(USE_GUI)" == "0"
72 PORTNAME = base
73 !endif
74 !if "$(USE_GUI)" == "1"
75 PORTNAME = msw
76 !endif
77 !if "$(OFFICIAL_BUILD)" == "1"
78 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
79 !endif
80 !if "$(BUILD)" == "debug"
81 WXDEBUGFLAG = d
82 !endif
83 !if "$(UNICODE)" == "1"
84 WXUNICODEFLAG = u
85 !endif
86 !if "$(WXUNIV)" == "1"
87 WXUNIVNAME = univ
88 !endif
89 !if "$(SHARED)" == "1"
90 WXDLLFLAG = dll
91 !endif
92 !if "$(SHARED)" == "0"
93 LIBTYPE_SUFFIX = lib
94 !endif
95 !if "$(SHARED)" == "1"
96 LIBTYPE_SUFFIX = dll
97 !endif
98 !if "$(MONOLITHIC)" == "0"
99 EXTRALIBS_FOR_BASE =
100 !endif
101 !if "$(MONOLITHIC)" == "1"
102 EXTRALIBS_FOR_BASE =
103 !endif
104 !if "$(USE_GUI)" == "1"
105 __ipcclient___depname = $(OBJS)\ipcclient.exe
106 !endif
107 !if "$(USE_GUI)" == "1"
108 __ipcserver___depname = $(OBJS)\ipcserver.exe
109 !endif
110 !if "$(MONOLITHIC)" == "1"
111 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
112 !endif
113 !if "$(MONOLITHIC)" == "1"
114 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
115 !endif
116 !if "$(WXUNIV)" == "1"
117 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
118 !endif
119 !if "$(DEBUG_FLAG)" == "0"
120 __DEBUG_DEFINE_p_0 = -dwxDEBUG_LEVEL=0
121 !endif
122 !if "$(BUILD)" == "release"
123 __NDEBUG_DEFINE_p_0 = -dNDEBUG
124 !endif
125 !if "$(USE_EXCEPTIONS)" == "0"
126 __EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
127 !endif
128 !if "$(USE_RTTI)" == "0"
129 __RTTI_DEFINE_p_0 = -dwxNO_RTTI
130 !endif
131 !if "$(USE_THREADS)" == "0"
132 __THREAD_DEFINE_p_0 = -dwxNO_THREADS
133 !endif
134 !if "$(UNICODE)" == "0"
135 __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=0
136 !endif
137 !if "$(UNICODE)" == "1"
138 __UNICODE_DEFINE_p_0 = -d_UNICODE
139 !endif
140 !if "$(MSLU)" == "1"
141 __MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
142 !endif
143 !if "$(USE_CAIRO)" == "1"
144 ____CAIRO_INCLUDEDIR_FILENAMES_0 = -i$(CAIRO_ROOT)\include\cairo
145 !endif
146 !if "$(SHARED)" == "1"
147 __DLLFLAG_p_0 = -dWXUSINGDLL
148 !endif
149 !if "$(MONOLITHIC)" == "0"
150 __WXLIB_CORE_p = \
151 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
152 !endif
153 !if "$(USE_GUI)" == "1"
154 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
155 !endif
156 !if "$(USE_GUI)" == "1"
157 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
158 !endif
159 !if "$(BUILD)" == "debug"
160 __OPTIMIZEFLAG = -Od
161 !endif
162 !if "$(BUILD)" == "release"
163 __OPTIMIZEFLAG = -O2
164 !endif
165 !if "$(USE_THREADS)" == "0"
166 __THREADSFLAG =
167 !endif
168 !if "$(USE_THREADS)" == "1"
169 __THREADSFLAG = mt
170 !endif
171 !if "$(USE_THREADS)" == "0"
172 __THREADSFLAG_2 =
173 !endif
174 !if "$(USE_THREADS)" == "1"
175 __THREADSFLAG_2 = -tWM
176 !endif
177 !if "$(RUNTIME_LIBS)" == "dynamic"
178 __RUNTIME_LIBS = -tWR
179 !endif
180 !if "$(RUNTIME_LIBS)" == "static"
181 __RUNTIME_LIBS =
182 !endif
183 !if "$(RUNTIME_LIBS)" == "dynamic"
184 __RUNTIME_LIBS_2 = i
185 !endif
186 !if "$(RUNTIME_LIBS)" == "static"
187 __RUNTIME_LIBS_2 =
188 !endif
189 !if "$(WXUNIV)" == "1"
190 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
191 !endif
192 !if "$(DEBUG_FLAG)" == "0"
193 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
194 !endif
195 !if "$(BUILD)" == "release"
196 __NDEBUG_DEFINE_p = -DNDEBUG
197 !endif
198 !if "$(USE_EXCEPTIONS)" == "0"
199 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
200 !endif
201 !if "$(USE_RTTI)" == "0"
202 __RTTI_DEFINE_p = -DwxNO_RTTI
203 !endif
204 !if "$(USE_THREADS)" == "0"
205 __THREAD_DEFINE_p = -DwxNO_THREADS
206 !endif
207 !if "$(UNICODE)" == "0"
208 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
209 !endif
210 !if "$(UNICODE)" == "1"
211 __UNICODE_DEFINE_p = -D_UNICODE
212 !endif
213 !if "$(MSLU)" == "1"
214 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
215 !endif
216 !if "$(USE_CAIRO)" == "1"
217 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
218 !endif
219 !if "$(SHARED)" == "1"
220 __DLLFLAG_p = -DWXUSINGDLL
221 !endif
222 !if "$(MONOLITHIC)" == "0"
223 __WXLIB_NET_p = \
224 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
225 !endif
226 !if "$(MONOLITHIC)" == "0"
227 __WXLIB_BASE_p = \
228 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
229 !endif
230 !if "$(MONOLITHIC)" == "1"
231 __WXLIB_MONO_p = \
232 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
233 !endif
234 !if "$(USE_GUI)" == "1"
235 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
236 !endif
237 !if "$(MSLU)" == "1"
238 __UNICOWS_LIB_p = unicows.lib
239 !endif
240 !if "$(USE_CAIRO)" == "1"
241 __CAIRO_LIB_p = cairo.lib
242 !endif
243 !if "$(USE_CAIRO)" == "1"
244 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
245 !endif
246 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
247 __DEBUGINFO = -v
248 !endif
249 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
250 __DEBUGINFO = -v-
251 !endif
252 !if "$(DEBUG_INFO)" == "0"
253 __DEBUGINFO = -v-
254 !endif
255 !if "$(DEBUG_INFO)" == "1"
256 __DEBUGINFO = -v
257 !endif
258
259
260 all: $(OBJS)
261 $(OBJS):
262 -if not exist $(OBJS) mkdir $(OBJS)
263
264 ### Targets: ###
265
266 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
267
268 clean:
269 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
270 -if exist $(OBJS)\*.res del $(OBJS)\*.res
271 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
272 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
273 -if exist $(OBJS)\ipcclient.tds del $(OBJS)\ipcclient.tds
274 -if exist $(OBJS)\ipcclient.ilc del $(OBJS)\ipcclient.ilc
275 -if exist $(OBJS)\ipcclient.ild del $(OBJS)\ipcclient.ild
276 -if exist $(OBJS)\ipcclient.ilf del $(OBJS)\ipcclient.ilf
277 -if exist $(OBJS)\ipcclient.ils del $(OBJS)\ipcclient.ils
278 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
279 -if exist $(OBJS)\ipcserver.tds del $(OBJS)\ipcserver.tds
280 -if exist $(OBJS)\ipcserver.ilc del $(OBJS)\ipcserver.ilc
281 -if exist $(OBJS)\ipcserver.ild del $(OBJS)\ipcserver.ild
282 -if exist $(OBJS)\ipcserver.ilf del $(OBJS)\ipcserver.ilf
283 -if exist $(OBJS)\ipcserver.ils del $(OBJS)\ipcserver.ils
284 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
285 -if exist $(OBJS)\baseipcclient.tds del $(OBJS)\baseipcclient.tds
286 -if exist $(OBJS)\baseipcclient.ilc del $(OBJS)\baseipcclient.ilc
287 -if exist $(OBJS)\baseipcclient.ild del $(OBJS)\baseipcclient.ild
288 -if exist $(OBJS)\baseipcclient.ilf del $(OBJS)\baseipcclient.ilf
289 -if exist $(OBJS)\baseipcclient.ils del $(OBJS)\baseipcclient.ils
290 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
291 -if exist $(OBJS)\baseipcserver.tds del $(OBJS)\baseipcserver.tds
292 -if exist $(OBJS)\baseipcserver.ilc del $(OBJS)\baseipcserver.ilc
293 -if exist $(OBJS)\baseipcserver.ild del $(OBJS)\baseipcserver.ild
294 -if exist $(OBJS)\baseipcserver.ilf del $(OBJS)\baseipcserver.ilf
295 -if exist $(OBJS)\baseipcserver.ils del $(OBJS)\baseipcserver.ils
296
297 !if "$(USE_GUI)" == "1"
298 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample.res
299 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
300 c0w32.obj $(IPCCLIENT_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\ipcclient_sample.res
301 |
302 !endif
303
304 !if "$(USE_GUI)" == "1"
305 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample.res
306 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
307 c0w32.obj $(IPCSERVER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\ipcserver_sample.res
308 |
309 !endif
310
311 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
312 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
313 c0x32.obj $(BASEIPCCLIENT_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
314 |
315
316 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
317 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
318 c0x32.obj $(BASEIPCSERVER_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p_1) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
319 |
320
321 $(OBJS)\ipcclient_sample.res: .\..\..\samples\sample.rc
322 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_0) -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc
323
324 $(OBJS)\ipcclient_client.obj: .\client.cpp
325 $(CXX) -q -c -P -o$@ $(IPCCLIENT_CXXFLAGS) .\client.cpp
326
327 $(OBJS)\ipcserver_sample.res: .\..\..\samples\sample.rc
328 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_0) -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc
329
330 $(OBJS)\ipcserver_server.obj: .\server.cpp
331 $(CXX) -q -c -P -o$@ $(IPCSERVER_CXXFLAGS) .\server.cpp
332
333 $(OBJS)\baseipcclient_baseclient.obj: .\baseclient.cpp
334 $(CXX) -q -c -P -o$@ $(BASEIPCCLIENT_CXXFLAGS) .\baseclient.cpp
335
336 $(OBJS)\baseipcserver_baseserver.obj: .\baseserver.cpp
337 $(CXX) -q -c -P -o$@ $(BASEIPCSERVER_CXXFLAGS) .\baseserver.cpp
338