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