1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
24 CLIENT_CXXFLAGS = $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include $(__DEBUGINFO) \
25 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
27 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\client_client.obj
31 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
32 SERVER_CXXFLAGS = $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
35 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\server_server.obj
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
41 ### Conditionally set variables: ###
43 !if "$(SHARED)" == "0"
44 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
46 !if "$(SHARED)" == "1"
47 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(UNICODE)" == "1"
67 !if "$(WXUNIV)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
73 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
76 !if "$(DEBUG_INFO)" == "0"
79 !if "$(DEBUG_INFO)" == "1"
82 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
85 !if "$(DEBUG_FLAG)" == "1"
86 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
91 !if "$(DEBUG_FLAG)" == "1"
92 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
94 !if "$(SHARED)" == "1"
95 __DLLFLAG_p = -DWXUSINGDLL
97 !if "$(SHARED)" == "1"
98 __DLLFLAG_p_0 = -dWXUSINGDLL
100 !if "$(USE_GUI)" == "1"
101 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
103 !if "$(USE_GUI)" == "1"
104 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
106 !if "$(USE_GUI)" == "1"
107 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
109 !if "$(BUILD)" == "debug"
112 !if "$(BUILD)" == "release"
115 !if "$(RUNTIME_LIBS)" == "dynamic"
118 !if "$(RUNTIME_LIBS)" == "static"
121 !if "$(RUNTIME_LIBS)" == "dynamic"
122 __RUNTIME_LIBS_0 = -tWR
124 !if "$(RUNTIME_LIBS)" == "static"
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p = -D_UNICODE
130 !if "$(UNICODE)" == "1"
131 __UNICODE_DEFINE_p_0 = -d_UNICODE
134 __UNICOWS_LIB_p = unicows.lib
136 !if "$(MONOLITHIC)" == "0"
137 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
139 !if "$(MONOLITHIC)" == "0"
141 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
143 !if "$(MONOLITHIC)" == "1"
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
147 !if "$(MONOLITHIC)" == "0"
148 __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
150 !if "$(WXUNIV)" == "1"
151 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153 !if "$(WXUNIV)" == "1"
154 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
160 -if not exist $(OBJS) mkdir $(OBJS)
164 all: $(OBJS)\client.exe $(OBJS)\server.exe
166 $(OBJS)\client_client.obj: .\client.cpp
167 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
169 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
170 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
172 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
173 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
175 $(OBJS)\server_server.obj: .\server.cpp
176 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**
179 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
180 -if exist $(OBJS)\*.res del $(OBJS)\*.res
181 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
182 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
183 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
184 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
185 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
186 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
187 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
188 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
189 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
190 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
191 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
192 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
194 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
195 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
196 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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS).lib,, $(OBJS)\client_sample.res
199 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
200 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
201 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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS).lib,, $(OBJS)\server_sample.res