1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.6 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
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) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\client_client.obj
39 SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
40 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
43 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
44 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
46 $(OBJS)\server_server.obj
47 BASECLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
48 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
49 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
50 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
51 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
52 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
53 BASECLIENT_OBJECTS = \
54 $(OBJS)\baseclient_baseclient.obj
55 BASESERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
56 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
57 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
58 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
59 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
60 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
61 BASESERVER_OBJECTS = \
62 $(OBJS)\baseserver_baseserver.obj
64 ### Conditionally set variables: ###
66 !if "$(USE_GUI)" == "0"
69 !if "$(USE_GUI)" == "1"
72 !if "$(BUILD)" == "debug"
75 !if "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
81 !if "$(SHARED)" == "1"
84 !if "$(SHARED)" == "0"
87 !if "$(SHARED)" == "1"
90 !if "$(MONOLITHIC)" == "0"
93 !if "$(MONOLITHIC)" == "1"
96 !if "$(USE_GUI)" == "1"
97 __client___depname = $(OBJS)\client.exe
99 !if "$(USE_GUI)" == "1"
100 __server___depname = $(OBJS)\server.exe
102 !if "$(WXUNIV)" == "1"
103 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
105 !if "$(DEBUG_FLAG)" == "0"
106 __DEBUG_DEFINE_p_0 = -dwxDEBUG_LEVEL=0
108 !if "$(USE_EXCEPTIONS)" == "0"
109 __EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
111 !if "$(USE_RTTI)" == "0"
112 __RTTI_DEFINE_p_0 = -dwxNO_RTTI
114 !if "$(USE_THREADS)" == "0"
115 __THREAD_DEFINE_p_0 = -dwxNO_THREADS
117 !if "$(UNICODE)" == "0"
118 __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=0
120 !if "$(UNICODE)" == "1"
121 __UNICODE_DEFINE_p_0 = -d_UNICODE
124 __MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
126 !if "$(USE_GDIPLUS)" == "1"
127 __GFXCTX_DEFINE_p_0 = -dwxUSE_GRAPHICS_CONTEXT=1
129 !if "$(SHARED)" == "1"
130 __DLLFLAG_p_0 = -dWXUSINGDLL
132 !if "$(MONOLITHIC)" == "0"
134 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
136 !if "$(USE_GUI)" == "1"
137 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
139 !if "$(USE_GUI)" == "1"
140 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
142 !if "$(USE_GUI)" == "1"
143 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
145 !if "$(BUILD)" == "debug"
148 !if "$(BUILD)" == "release"
151 !if "$(USE_THREADS)" == "0"
154 !if "$(USE_THREADS)" == "1"
157 !if "$(USE_THREADS)" == "0"
160 !if "$(USE_THREADS)" == "1"
161 __THREADSFLAG_2 = -tWM
163 !if "$(RUNTIME_LIBS)" == "dynamic"
164 __RUNTIME_LIBS = -tWR
166 !if "$(RUNTIME_LIBS)" == "static"
169 !if "$(RUNTIME_LIBS)" == "dynamic"
172 !if "$(RUNTIME_LIBS)" == "static"
175 !if "$(WXUNIV)" == "1"
176 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
178 !if "$(DEBUG_FLAG)" == "0"
179 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
181 !if "$(USE_EXCEPTIONS)" == "0"
182 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
184 !if "$(USE_RTTI)" == "0"
185 __RTTI_DEFINE_p = -DwxNO_RTTI
187 !if "$(USE_THREADS)" == "0"
188 __THREAD_DEFINE_p = -DwxNO_THREADS
190 !if "$(UNICODE)" == "0"
191 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
193 !if "$(UNICODE)" == "1"
194 __UNICODE_DEFINE_p = -D_UNICODE
197 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
199 !if "$(USE_GDIPLUS)" == "1"
200 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
202 !if "$(SHARED)" == "1"
203 __DLLFLAG_p = -DWXUSINGDLL
205 !if "$(MONOLITHIC)" == "0"
207 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
209 !if "$(MONOLITHIC)" == "0"
211 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
213 !if "$(MONOLITHIC)" == "1"
215 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
218 __UNICOWS_LIB_p = unicows.lib
220 !if "$(USE_GDIPLUS)" == "1"
221 __GDIPLUS_LIB_p = gdiplus.lib
223 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
229 !if "$(DEBUG_INFO)" == "0"
232 !if "$(DEBUG_INFO)" == "1"
239 -if not exist $(OBJS) mkdir $(OBJS)
243 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
246 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
247 -if exist $(OBJS)\*.res del $(OBJS)\*.res
248 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
249 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
250 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
251 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
252 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
253 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
254 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
255 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
256 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
257 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
258 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
259 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
260 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
261 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
262 -if exist $(OBJS)\baseclient.tds del $(OBJS)\baseclient.tds
263 -if exist $(OBJS)\baseclient.ilc del $(OBJS)\baseclient.ilc
264 -if exist $(OBJS)\baseclient.ild del $(OBJS)\baseclient.ild
265 -if exist $(OBJS)\baseclient.ilf del $(OBJS)\baseclient.ilf
266 -if exist $(OBJS)\baseclient.ils del $(OBJS)\baseclient.ils
267 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
268 -if exist $(OBJS)\baseserver.tds del $(OBJS)\baseserver.tds
269 -if exist $(OBJS)\baseserver.ilc del $(OBJS)\baseserver.ilc
270 -if exist $(OBJS)\baseserver.ild del $(OBJS)\baseserver.ild
271 -if exist $(OBJS)\baseserver.ilf del $(OBJS)\baseserver.ilf
272 -if exist $(OBJS)\baseserver.ils del $(OBJS)\baseserver.ils
274 !if "$(USE_GUI)" == "1"
275 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
276 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
277 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) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\client_client.res
281 !if "$(USE_GUI)" == "1"
282 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
283 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
284 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) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\server_server.res
288 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
289 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(LDFLAGS) @&&|
290 c0x32.obj $(BASECLIENT_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) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
293 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
294 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(LDFLAGS) @&&|
295 c0x32.obj $(BASESERVER_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) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
298 $(OBJS)\client_client.obj: .\client.cpp
299 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) .\client.cpp
301 $(OBJS)\client_client.res: .\client.rc
302 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 -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\client.rc
304 $(OBJS)\server_server.obj: .\server.cpp
305 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) .\server.cpp
307 $(OBJS)\server_server.res: .\server.rc
308 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 -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\server.rc
310 $(OBJS)\baseclient_baseclient.obj: .\baseclient.cpp
311 $(CXX) -q -c -P -o$@ $(BASECLIENT_CXXFLAGS) .\baseclient.cpp
313 $(OBJS)\baseserver_baseserver.obj: .\baseserver.cpp
314 $(CXX) -q -c -P -o$@ $(BASESERVER_CXXFLAGS) .\baseserver.cpp