]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.bcc
Use /bin/echo for creation of Mac OS X PkgInfo files.
[wxWidgets.git] / samples / sockets / 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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
29 SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31 CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
34 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
35 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
36 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
37 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
38 CLIENT_OBJECTS = \
39 $(OBJS)\client_client.obj
40 SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
41 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
42 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
43 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
44 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
45 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
46 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
47 SERVER_OBJECTS = \
48 $(OBJS)\server_server.obj
49 BASECLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
50 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
51 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
52 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
53 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
54 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
55 $(CPPFLAGS) $(CXXFLAGS)
56 BASECLIENT_OBJECTS = \
57 $(OBJS)\baseclient_baseclient.obj
58 BASESERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
59 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
60 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
61 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
62 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
63 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
64 $(CPPFLAGS) $(CXXFLAGS)
65 BASESERVER_OBJECTS = \
66 $(OBJS)\baseserver_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 __client___depname = $(OBJS)\client.exe
102 !endif
103 !if "$(USE_GUI)" == "1"
104 __server___depname = $(OBJS)\server.exe
105 !endif
106 !if "$(MONOLITHIC)" == "1"
107 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
108 !endif
109 !if "$(MONOLITHIC)" == "1"
110 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
111 !endif
112 !if "$(WXUNIV)" == "1"
113 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
114 !endif
115 !if "$(DEBUG_FLAG)" == "0"
116 __DEBUG_DEFINE_p_0 = -dwxDEBUG_LEVEL=0
117 !endif
118 !if "$(BUILD)" == "release"
119 __NDEBUG_DEFINE_p_0 = -dNDEBUG
120 !endif
121 !if "$(USE_EXCEPTIONS)" == "0"
122 __EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
123 !endif
124 !if "$(USE_RTTI)" == "0"
125 __RTTI_DEFINE_p_0 = -dwxNO_RTTI
126 !endif
127 !if "$(USE_THREADS)" == "0"
128 __THREAD_DEFINE_p_0 = -dwxNO_THREADS
129 !endif
130 !if "$(UNICODE)" == "0"
131 __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=0
132 !endif
133 !if "$(UNICODE)" == "1"
134 __UNICODE_DEFINE_p_0 = -d_UNICODE
135 !endif
136 !if "$(MSLU)" == "1"
137 __MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
138 !endif
139 !if "$(USE_CAIRO)" == "1"
140 ____CAIRO_INCLUDEDIR_FILENAMES_0 = -i$(CAIRO_ROOT)\include\cairo
141 !endif
142 !if "$(SHARED)" == "1"
143 __DLLFLAG_p_0 = -dWXUSINGDLL
144 !endif
145 !if "$(MONOLITHIC)" == "0"
146 __WXLIB_CORE_p = \
147 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
148 !endif
149 !if "$(USE_GUI)" == "1"
150 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
151 !endif
152 !if "$(USE_GUI)" == "1"
153 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
154 !endif
155 !if "$(BUILD)" == "debug"
156 __OPTIMIZEFLAG = -Od
157 !endif
158 !if "$(BUILD)" == "release"
159 __OPTIMIZEFLAG = -O2
160 !endif
161 !if "$(USE_THREADS)" == "0"
162 __THREADSFLAG =
163 !endif
164 !if "$(USE_THREADS)" == "1"
165 __THREADSFLAG = mt
166 !endif
167 !if "$(USE_THREADS)" == "0"
168 __THREADSFLAG_2 =
169 !endif
170 !if "$(USE_THREADS)" == "1"
171 __THREADSFLAG_2 = -tWM
172 !endif
173 !if "$(RUNTIME_LIBS)" == "dynamic"
174 __RUNTIME_LIBS = -tWR
175 !endif
176 !if "$(RUNTIME_LIBS)" == "static"
177 __RUNTIME_LIBS =
178 !endif
179 !if "$(RUNTIME_LIBS)" == "dynamic"
180 __RUNTIME_LIBS_2 = i
181 !endif
182 !if "$(RUNTIME_LIBS)" == "static"
183 __RUNTIME_LIBS_2 =
184 !endif
185 !if "$(WXUNIV)" == "1"
186 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
187 !endif
188 !if "$(DEBUG_FLAG)" == "0"
189 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
190 !endif
191 !if "$(BUILD)" == "release"
192 __NDEBUG_DEFINE_p = -DNDEBUG
193 !endif
194 !if "$(USE_EXCEPTIONS)" == "0"
195 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
196 !endif
197 !if "$(USE_RTTI)" == "0"
198 __RTTI_DEFINE_p = -DwxNO_RTTI
199 !endif
200 !if "$(USE_THREADS)" == "0"
201 __THREAD_DEFINE_p = -DwxNO_THREADS
202 !endif
203 !if "$(UNICODE)" == "0"
204 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
205 !endif
206 !if "$(UNICODE)" == "1"
207 __UNICODE_DEFINE_p = -D_UNICODE
208 !endif
209 !if "$(MSLU)" == "1"
210 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
211 !endif
212 !if "$(USE_CAIRO)" == "1"
213 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
214 !endif
215 !if "$(SHARED)" == "1"
216 __DLLFLAG_p = -DWXUSINGDLL
217 !endif
218 !if "$(MONOLITHIC)" == "0"
219 __WXLIB_NET_p = \
220 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
221 !endif
222 !if "$(MONOLITHIC)" == "0"
223 __WXLIB_BASE_p = \
224 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
225 !endif
226 !if "$(MONOLITHIC)" == "1"
227 __WXLIB_MONO_p = \
228 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
229 !endif
230 !if "$(USE_GUI)" == "1"
231 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
232 !endif
233 !if "$(MSLU)" == "1"
234 __UNICOWS_LIB_p = unicows.lib
235 !endif
236 !if "$(USE_CAIRO)" == "1"
237 __CAIRO_LIB_p = cairo.lib
238 !endif
239 !if "$(USE_CAIRO)" == "1"
240 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
241 !endif
242 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
243 __DEBUGINFO = -v
244 !endif
245 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
246 __DEBUGINFO = -v-
247 !endif
248 !if "$(DEBUG_INFO)" == "0"
249 __DEBUGINFO = -v-
250 !endif
251 !if "$(DEBUG_INFO)" == "1"
252 __DEBUGINFO = -v
253 !endif
254
255
256 all: $(OBJS)
257 $(OBJS):
258 -if not exist $(OBJS) mkdir $(OBJS)
259
260 ### Targets: ###
261
262 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
263
264 clean:
265 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
266 -if exist $(OBJS)\*.res del $(OBJS)\*.res
267 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
268 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
269 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
270 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
271 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
272 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
273 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
274 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
275 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
276 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
277 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
278 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
279 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
280 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
281 -if exist $(OBJS)\baseclient.tds del $(OBJS)\baseclient.tds
282 -if exist $(OBJS)\baseclient.ilc del $(OBJS)\baseclient.ilc
283 -if exist $(OBJS)\baseclient.ild del $(OBJS)\baseclient.ild
284 -if exist $(OBJS)\baseclient.ilf del $(OBJS)\baseclient.ilf
285 -if exist $(OBJS)\baseclient.ils del $(OBJS)\baseclient.ils
286 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
287 -if exist $(OBJS)\baseserver.tds del $(OBJS)\baseserver.tds
288 -if exist $(OBJS)\baseserver.ilc del $(OBJS)\baseserver.ilc
289 -if exist $(OBJS)\baseserver.ild del $(OBJS)\baseserver.ild
290 -if exist $(OBJS)\baseserver.ilf del $(OBJS)\baseserver.ilf
291 -if exist $(OBJS)\baseserver.ils del $(OBJS)\baseserver.ils
292
293 !if "$(USE_GUI)" == "1"
294 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
295 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
296 c0w32.obj $(CLIENT_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)\client_sample.res
297 |
298 !endif
299
300 !if "$(USE_GUI)" == "1"
301 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
302 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
303 c0w32.obj $(SERVER_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)\server_sample.res
304 |
305 !endif
306
307 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
308 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
309 c0x32.obj $(BASECLIENT_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,,
310 |
311
312 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
313 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
314 c0x32.obj $(BASESERVER_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,,
315 |
316
317 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
318 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
319
320 $(OBJS)\client_client.obj: .\client.cpp
321 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) .\client.cpp
322
323 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
324 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
325
326 $(OBJS)\server_server.obj: .\server.cpp
327 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) .\server.cpp
328
329 $(OBJS)\baseclient_baseclient.obj: .\baseclient.cpp
330 $(CXX) -q -c -P -o$@ $(BASECLIENT_CXXFLAGS) .\baseclient.cpp
331
332 $(OBJS)\baseserver_baseserver.obj: .\baseserver.cpp
333 $(CXX) -q -c -P -o$@ $(BASESERVER_CXXFLAGS) .\baseserver.cpp
334