1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
22 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
26 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\client_client.obj \
30 $(OBJS)\client_client.res
31 SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME_17) /DWIN32 \
32 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_16_p) \
33 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
36 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH $(__RTTIFLAG) \
37 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\server_server.obj \
40 $(OBJS)\server_server.res
42 ### Conditionally set variables: ###
44 !if "$(USE_GUI)" == "0"
47 !if "$(USE_GUI)" == "1"
50 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53 !if "$(DEBUG_FLAG)" == "1"
56 !if "$(UNICODE)" == "1"
59 !if "$(WXUNIV)" == "1"
62 !if "$(SHARED)" == "1"
65 !if "$(SHARED)" == "0"
68 !if "$(SHARED)" == "1"
71 !if "$(MONOLITHIC)" == "0"
74 !if "$(MONOLITHIC)" == "1"
77 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
78 ____DEBUGRUNTIME_2_p =
80 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
81 ____DEBUGRUNTIME_2_p = /D_DEBUG
83 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
84 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
86 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
87 ____DEBUGRUNTIME_2_p_1 =
89 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
90 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
92 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
93 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
95 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
98 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
101 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
102 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
104 !if "$(RUNTIME_LIBS)" == "dynamic"
107 !if "$(RUNTIME_LIBS)" == "static"
108 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
110 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
111 ____DEBUGRUNTIME_16_p =
113 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
114 ____DEBUGRUNTIME_16_p = /D_DEBUG
116 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
117 ____DEBUGRUNTIME_16_p = $(____DEBUGINFO)
119 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
120 ____DEBUGRUNTIME_16_p_1 =
122 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
123 ____DEBUGRUNTIME_16_p_1 = /d _DEBUG
125 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
126 ____DEBUGRUNTIME_16_p_1 = $(____DEBUGINFO_0)
128 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
131 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
132 __DEBUGRUNTIME_17 = d
134 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
135 __DEBUGRUNTIME_17 = $(__DEBUGINFO_2)
137 !if "$(RUNTIME_LIBS)" == "dynamic"
138 __RUNTIME_LIBS_22 = D
140 !if "$(RUNTIME_LIBS)" == "static"
141 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
143 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
146 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
149 !if "$(DEBUG_INFO)" == "0"
152 !if "$(DEBUG_INFO)" == "1"
155 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
156 __DEBUGINFO_1 = /DEBUG
158 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
161 !if "$(DEBUG_INFO)" == "0"
164 !if "$(DEBUG_INFO)" == "1"
165 __DEBUGINFO_1 = /DEBUG
167 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
168 ____DEBUGINFO = /D_DEBUG
170 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
173 !if "$(DEBUG_INFO)" == "0"
176 !if "$(DEBUG_INFO)" == "1"
177 ____DEBUGINFO = /D_DEBUG
179 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
180 ____DEBUGINFO_0 = /d _DEBUG
182 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
185 !if "$(DEBUG_INFO)" == "0"
188 !if "$(DEBUG_INFO)" == "1"
189 ____DEBUGINFO_0 = /d _DEBUG
191 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
194 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
197 !if "$(DEBUG_INFO)" == "0"
200 !if "$(DEBUG_INFO)" == "1"
203 !if "$(BUILD)" == "debug"
206 !if "$(BUILD)" == "release"
209 !if "$(USE_THREADS)" == "0"
212 !if "$(USE_THREADS)" == "1"
215 !if "$(USE_RTTI)" == "0"
218 !if "$(USE_RTTI)" == "1"
221 !if "$(USE_EXCEPTIONS)" == "0"
224 !if "$(USE_EXCEPTIONS)" == "1"
225 __EXCEPTIONSFLAG = /EHsc
227 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
228 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
230 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
231 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
233 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
234 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
236 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
237 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
239 !if "$(WXUNIV)" == "1"
240 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
242 !if "$(WXUNIV)" == "1"
243 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
245 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
246 __DEBUG_DEFINE_p = /D__WXDEBUG__
248 !if "$(DEBUG_FLAG)" == "1"
249 __DEBUG_DEFINE_p = /D__WXDEBUG__
251 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
252 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
254 !if "$(DEBUG_FLAG)" == "1"
255 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
257 !if "$(USE_EXCEPTIONS)" == "0"
258 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
260 !if "$(USE_EXCEPTIONS)" == "0"
261 __EXCEPTIONS_DEFINE_p_0 = /d wxNO_EXCEPTIONS
263 !if "$(USE_RTTI)" == "0"
264 __RTTI_DEFINE_p = /DwxNO_RTTI
266 !if "$(USE_RTTI)" == "0"
267 __RTTI_DEFINE_p_0 = /d wxNO_RTTI
269 !if "$(USE_THREADS)" == "0"
270 __THREAD_DEFINE_p = /DwxNO_THREADS
272 !if "$(USE_THREADS)" == "0"
273 __THREAD_DEFINE_p_0 = /d wxNO_THREADS
275 !if "$(UNICODE)" == "1"
276 __UNICODE_DEFINE_p = /D_UNICODE
278 !if "$(UNICODE)" == "1"
279 __UNICODE_DEFINE_p_0 = /d _UNICODE
281 !if "$(SHARED)" == "1"
282 __DLLFLAG_p = /DWXUSINGDLL
284 !if "$(SHARED)" == "1"
285 __DLLFLAG_p_0 = /d WXUSINGDLL
287 !if "$(MONOLITHIC)" == "0"
289 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
291 !if "$(MONOLITHIC)" == "0"
293 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
295 !if "$(MONOLITHIC)" == "0"
297 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
299 !if "$(MONOLITHIC)" == "1"
301 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
303 !if "$(USE_GUI)" == "1"
304 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
306 !if "$(USE_GUI)" == "1"
307 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
309 !if "$(USE_GUI)" == "1"
310 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
313 __UNICOWS_LIB_p = unicows.lib
319 -if not exist $(OBJS) mkdir $(OBJS)
323 all: $(OBJS)\client.exe $(OBJS)\server.exe
326 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
327 -if exist $(OBJS)\*.res del $(OBJS)\*.res
328 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
329 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
330 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
331 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
332 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
333 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
334 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
336 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
337 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
338 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
341 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
342 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
343 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
346 $(OBJS)\client_client.obj: .\client.cpp
347 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
349 $(OBJS)\client_client.res: .\client.rc
350 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_0) /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) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples /d NOPCH $**
352 $(OBJS)\server_server.obj: .\server.cpp
353 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
355 $(OBJS)\server_server.res: .\server.rc
356 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_16_p_1) $(__NO_VC_CRTDBG_p_0) /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) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples /d NOPCH $**