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 # =========================================================================
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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32 CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WX$(TOOLKIT)__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
37 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
38 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
40 $(OBJS)\client_client.obj
41 SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
42 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WX$(TOOLKIT)__ \
43 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
44 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
45 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
46 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
47 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
49 $(OBJS)\server_server.obj
50 BASECLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
51 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WX$(TOOLKIT)__ \
52 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
53 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
54 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
55 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
56 $(CPPFLAGS) $(CXXFLAGS)
57 BASECLIENT_OBJECTS = \
58 $(OBJS)\baseclient_baseclient.obj
59 BASESERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
60 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WX$(TOOLKIT)__ \
61 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
62 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
63 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
64 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
65 $(CPPFLAGS) $(CXXFLAGS)
66 BASESERVER_OBJECTS = \
67 $(OBJS)\baseserver_baseserver.obj
69 ### Conditionally set variables: ###
71 !if "$(TOOLKIT)" == "GTK"
72 WIN32_TOOLKIT_LOWERCASE = gtk
74 !if "$(TOOLKIT)" == "MSW"
75 WIN32_TOOLKIT_LOWERCASE = msw
77 !if "$(USE_GUI)" == "0"
80 !if "$(USE_GUI)" == "1"
81 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
83 !if "$(TOOLKIT)" == "MAC"
86 !if "$(OFFICIAL_BUILD)" == "1"
87 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
89 !if "$(BUILD)" == "debug"
92 !if "$(UNICODE)" == "1"
95 !if "$(WXUNIV)" == "1"
98 !if "$(SHARED)" == "1"
101 !if "$(SHARED)" == "0"
104 !if "$(SHARED)" == "1"
107 !if "$(MONOLITHIC)" == "0"
110 !if "$(MONOLITHIC)" == "1"
113 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
114 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
115 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
118 !if "$(USE_GUI)" == "1"
119 __client___depname = $(OBJS)\client.exe
121 !if "$(USE_GUI)" == "1"
122 __server___depname = $(OBJS)\server.exe
124 !if "$(MONOLITHIC)" == "1"
125 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
127 !if "$(MONOLITHIC)" == "1"
128 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
130 !if "$(WXUNIV)" == "1"
131 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
133 !if "$(DEBUG_FLAG)" == "0"
134 __DEBUG_DEFINE_p_0 = -dwxDEBUG_LEVEL=0
136 !if "$(BUILD)" == "release"
137 __NDEBUG_DEFINE_p_0 = -dNDEBUG
139 !if "$(USE_EXCEPTIONS)" == "0"
140 __EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
142 !if "$(USE_RTTI)" == "0"
143 __RTTI_DEFINE_p_0 = -dwxNO_RTTI
145 !if "$(USE_THREADS)" == "0"
146 __THREAD_DEFINE_p_0 = -dwxNO_THREADS
148 !if "$(UNICODE)" == "0"
149 __UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=0
151 !if "$(UNICODE)" == "1"
152 __UNICODE_DEFINE_p_0 = -d_UNICODE
155 __MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
157 !if "$(USE_CAIRO)" == "1"
158 ____CAIRO_INCLUDEDIR_FILENAMES_0 = -i$(CAIRO_ROOT)\include\cairo
160 !if "$(SHARED)" == "1"
161 __DLLFLAG_p_0 = -dWXUSINGDLL
163 !if "$(MONOLITHIC)" == "0"
165 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
167 !if "$(USE_GUI)" == "1"
168 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
170 !if "$(USE_GUI)" == "1"
171 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
173 !if "$(BUILD)" == "debug"
176 !if "$(BUILD)" == "release"
179 !if "$(USE_THREADS)" == "0"
182 !if "$(USE_THREADS)" == "1"
185 !if "$(USE_THREADS)" == "0"
188 !if "$(USE_THREADS)" == "1"
189 __THREADSFLAG_2 = -tWM
191 !if "$(RUNTIME_LIBS)" == "dynamic"
192 __RUNTIME_LIBS = -tWR
194 !if "$(RUNTIME_LIBS)" == "static"
197 !if "$(RUNTIME_LIBS)" == "dynamic"
200 !if "$(RUNTIME_LIBS)" == "static"
203 !if "$(WXUNIV)" == "1"
204 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
206 !if "$(DEBUG_FLAG)" == "0"
207 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
209 !if "$(BUILD)" == "release"
210 __NDEBUG_DEFINE_p = -DNDEBUG
212 !if "$(USE_EXCEPTIONS)" == "0"
213 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
215 !if "$(USE_RTTI)" == "0"
216 __RTTI_DEFINE_p = -DwxNO_RTTI
218 !if "$(USE_THREADS)" == "0"
219 __THREAD_DEFINE_p = -DwxNO_THREADS
221 !if "$(UNICODE)" == "0"
222 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
224 !if "$(UNICODE)" == "1"
225 __UNICODE_DEFINE_p = -D_UNICODE
228 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
230 !if "$(USE_CAIRO)" == "1"
231 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
233 !if "$(SHARED)" == "1"
234 __DLLFLAG_p = -DWXUSINGDLL
236 !if "$(MONOLITHIC)" == "0"
238 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
240 !if "$(MONOLITHIC)" == "0"
242 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
244 !if "$(MONOLITHIC)" == "1"
246 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
248 !if "$(USE_GUI)" == "1"
249 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
252 __UNICOWS_LIB_p = unicows.lib
254 !if "$(USE_CAIRO)" == "1"
255 __CAIRO_LIB_p = cairo.lib
257 !if "$(USE_CAIRO)" == "1"
258 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
260 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
263 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
266 !if "$(DEBUG_INFO)" == "0"
269 !if "$(DEBUG_INFO)" == "1"
276 -if not exist $(OBJS) mkdir $(OBJS)
280 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
283 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
284 -if exist $(OBJS)\*.res del $(OBJS)\*.res
285 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
286 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
287 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
288 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
289 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
290 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
291 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
292 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
293 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
294 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
295 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
296 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
297 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
298 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
299 -if exist $(OBJS)\baseclient.tds del $(OBJS)\baseclient.tds
300 -if exist $(OBJS)\baseclient.ilc del $(OBJS)\baseclient.ilc
301 -if exist $(OBJS)\baseclient.ild del $(OBJS)\baseclient.ild
302 -if exist $(OBJS)\baseclient.ilf del $(OBJS)\baseclient.ilf
303 -if exist $(OBJS)\baseclient.ils del $(OBJS)\baseclient.ils
304 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
305 -if exist $(OBJS)\baseserver.tds del $(OBJS)\baseserver.tds
306 -if exist $(OBJS)\baseserver.ilc del $(OBJS)\baseserver.ilc
307 -if exist $(OBJS)\baseserver.ild del $(OBJS)\baseserver.ild
308 -if exist $(OBJS)\baseserver.ilf del $(OBJS)\baseserver.ilf
309 -if exist $(OBJS)\baseserver.ils del $(OBJS)\baseserver.ils
311 !if "$(USE_GUI)" == "1"
312 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
313 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
314 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) $(LIB_GTK) 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
318 !if "$(USE_GUI)" == "1"
319 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
320 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
321 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) $(LIB_GTK) 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
325 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
326 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
327 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,,
330 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
331 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
332 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,,
335 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
336 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WX$(TOOLKIT)__ $(__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
338 $(OBJS)\client_client.obj: .\client.cpp
339 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) .\client.cpp
341 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
342 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WX$(TOOLKIT)__ $(__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
344 $(OBJS)\server_server.obj: .\server.cpp
345 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) .\server.cpp
347 $(OBJS)\baseclient_baseclient.obj: .\baseclient.cpp
348 $(CXX) -q -c -P -o$@ $(BASECLIENT_CXXFLAGS) .\baseclient.cpp
350 $(OBJS)\baseserver_baseserver.obj: .\baseserver.cpp
351 $(CXX) -q -c -P -o$@ $(BASESERVER_CXXFLAGS) .\baseserver.cpp