1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
23 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG) \
24 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\client_client.obj \
27 $(OBJS)\client_client.res
28 SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
29 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \
30 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
31 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
32 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG) \
33 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\server_server.obj \
36 $(OBJS)\server_server.res
38 ### Conditionally set variables: ###
40 !if "$(USE_GUI)" == "0"
43 !if "$(USE_GUI)" == "1"
46 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49 !if "$(DEBUG_FLAG)" == "1"
52 !if "$(UNICODE)" == "1"
55 !if "$(WXUNIV)" == "1"
58 !if "$(SHARED)" == "1"
61 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
62 ____DEBUGRUNTIME_2_p =
64 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
65 ____DEBUGRUNTIME_2_p = /D_DEBUG
67 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
68 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
70 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
71 ____DEBUGRUNTIME_2_p_1 =
73 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
74 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
76 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
77 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
79 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
82 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
85 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
86 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
88 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
89 ____DEBUGRUNTIME_15_p =
91 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
92 ____DEBUGRUNTIME_15_p = /D_DEBUG
94 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
95 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
97 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
98 ____DEBUGRUNTIME_15_p_1 =
100 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
101 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
103 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
104 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
106 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
109 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
110 __DEBUGRUNTIME_16 = d
112 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
113 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
115 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
118 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
121 !if "$(DEBUG_INFO)" == "0"
124 !if "$(DEBUG_INFO)" == "1"
127 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
128 __DEBUGINFO_1 = /DEBUG
130 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133 !if "$(DEBUG_INFO)" == "0"
136 !if "$(DEBUG_INFO)" == "1"
137 __DEBUGINFO_1 = /DEBUG
139 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
140 ____DEBUGINFO = /D_DEBUG
142 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145 !if "$(DEBUG_INFO)" == "0"
148 !if "$(DEBUG_INFO)" == "1"
149 ____DEBUGINFO = /D_DEBUG
151 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
152 ____DEBUGINFO_0 = /d _DEBUG
154 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
157 !if "$(DEBUG_INFO)" == "0"
160 !if "$(DEBUG_INFO)" == "1"
161 ____DEBUGINFO_0 = /d _DEBUG
163 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
166 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
169 !if "$(DEBUG_INFO)" == "0"
172 !if "$(DEBUG_INFO)" == "1"
175 !if "$(BUILD)" == "debug"
178 !if "$(BUILD)" == "release"
181 !if "$(RUNTIME_LIBS)" == "dynamic"
184 !if "$(RUNTIME_LIBS)" == "static"
187 !if "$(USE_EXCEPTIONS)" == "0"
190 !if "$(USE_EXCEPTIONS)" == "1"
191 __EXCEPTIONSFLAG = /GR
193 !if "$(USE_EXCEPTIONS)" == "0"
196 !if "$(USE_EXCEPTIONS)" == "1"
197 __EXCEPTIONSFLAG_0 = /GX
199 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
200 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
202 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
203 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
205 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
206 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
208 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
209 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
211 !if "$(WXUNIV)" == "1"
212 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
214 !if "$(WXUNIV)" == "1"
215 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
217 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
218 __DEBUG_DEFINE_p = /D__WXDEBUG__
220 !if "$(DEBUG_FLAG)" == "1"
221 __DEBUG_DEFINE_p = /D__WXDEBUG__
223 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
224 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
226 !if "$(DEBUG_FLAG)" == "1"
227 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
229 !if "$(UNICODE)" == "1"
230 __UNICODE_DEFINE_p = /D_UNICODE
232 !if "$(UNICODE)" == "1"
233 __UNICODE_DEFINE_p_0 = /d _UNICODE
235 !if "$(SHARED)" == "0"
236 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
238 !if "$(SHARED)" == "1"
239 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
241 !if "$(SHARED)" == "1"
242 __DLLFLAG_p = /DWXUSINGDLL
244 !if "$(SHARED)" == "1"
245 __DLLFLAG_p_0 = /d WXUSINGDLL
247 !if "$(MONOLITHIC)" == "0"
249 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
251 !if "$(MONOLITHIC)" == "0"
252 __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
254 !if "$(MONOLITHIC)" == "0"
255 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
257 !if "$(MONOLITHIC)" == "1"
259 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
261 !if "$(USE_GUI)" == "1"
262 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
264 !if "$(USE_GUI)" == "1"
265 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
267 !if "$(USE_GUI)" == "1"
268 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
271 __UNICOWS_LIB_p = unicows.lib
277 -if not exist $(OBJS) mkdir $(OBJS)
281 all: $(OBJS)\client.exe $(OBJS)\server.exe
284 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
285 -if exist $(OBJS)\*.res del $(OBJS)\*.res
286 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
287 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
288 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
289 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
290 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
291 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
293 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
294 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
295 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib
298 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
299 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
300 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib
303 $(OBJS)\client_client.obj: .\client.cpp
304 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
306 $(OBJS)\client_client.res: .\client.rc
307 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_0) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples $**
309 $(OBJS)\server_server.obj: .\server.cpp
310 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
312 $(OBJS)\server_server.res: .\server.rc
313 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_15_p_1) $(__NO_VC_CRTDBG_p_0) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples $**