1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
24 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
25 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\client_client.obj \
28 $(OBJS)\client_client.res
29 SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
30 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \
31 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
33 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
34 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
36 $(OBJS)\server_server.obj \
37 $(OBJS)\server_server.res
39 ### Conditionally set variables: ###
41 !if "$(USE_GUI)" == "0"
44 !if "$(USE_GUI)" == "1"
47 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50 !if "$(DEBUG_FLAG)" == "1"
53 !if "$(UNICODE)" == "1"
56 !if "$(WXUNIV)" == "1"
59 !if "$(SHARED)" == "1"
62 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
63 ____DEBUGRUNTIME_2_p =
65 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
66 ____DEBUGRUNTIME_2_p = /D_DEBUG
68 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
69 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
71 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
72 ____DEBUGRUNTIME_2_p_1 =
74 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
75 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
77 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
78 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
80 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
83 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
86 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
87 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
89 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
90 ____DEBUGRUNTIME_15_p =
92 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
93 ____DEBUGRUNTIME_15_p = /D_DEBUG
95 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
96 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
98 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
99 ____DEBUGRUNTIME_15_p_1 =
101 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
102 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
104 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
105 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
107 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
110 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
111 __DEBUGRUNTIME_16 = d
113 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
114 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
116 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
119 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
122 !if "$(DEBUG_INFO)" == "0"
125 !if "$(DEBUG_INFO)" == "1"
128 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
129 __DEBUGINFO_1 = /DEBUG
131 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
134 !if "$(DEBUG_INFO)" == "0"
137 !if "$(DEBUG_INFO)" == "1"
138 __DEBUGINFO_1 = /DEBUG
140 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
141 ____DEBUGINFO = /D_DEBUG
143 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
146 !if "$(DEBUG_INFO)" == "0"
149 !if "$(DEBUG_INFO)" == "1"
150 ____DEBUGINFO = /D_DEBUG
152 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
153 ____DEBUGINFO_0 = /d _DEBUG
155 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
158 !if "$(DEBUG_INFO)" == "0"
161 !if "$(DEBUG_INFO)" == "1"
162 ____DEBUGINFO_0 = /d _DEBUG
164 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170 !if "$(DEBUG_INFO)" == "0"
173 !if "$(DEBUG_INFO)" == "1"
176 !if "$(BUILD)" == "debug"
179 !if "$(BUILD)" == "release"
182 !if "$(RUNTIME_LIBS)" == "dynamic"
185 !if "$(RUNTIME_LIBS)" == "static"
188 !if "$(USE_EXCEPTIONS)" == "0"
191 !if "$(USE_EXCEPTIONS)" == "1"
192 __EXCEPTIONSFLAG = /GR
194 !if "$(USE_EXCEPTIONS)" == "0"
197 !if "$(USE_EXCEPTIONS)" == "1"
198 __EXCEPTIONSFLAG_0 = /GX
200 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
201 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
203 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
204 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
206 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
207 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
209 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
210 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
212 !if "$(WXUNIV)" == "1"
213 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
215 !if "$(WXUNIV)" == "1"
216 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
218 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
219 __DEBUG_DEFINE_p = /D__WXDEBUG__
221 !if "$(DEBUG_FLAG)" == "1"
222 __DEBUG_DEFINE_p = /D__WXDEBUG__
224 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
225 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
227 !if "$(DEBUG_FLAG)" == "1"
228 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
230 !if "$(UNICODE)" == "1"
231 __UNICODE_DEFINE_p = /D_UNICODE
233 !if "$(UNICODE)" == "1"
234 __UNICODE_DEFINE_p_0 = /d _UNICODE
236 !if "$(SHARED)" == "0"
237 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
239 !if "$(SHARED)" == "1"
240 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
242 !if "$(SHARED)" == "1"
243 __DLLFLAG_p = /DWXUSINGDLL
245 !if "$(SHARED)" == "1"
246 __DLLFLAG_p_0 = /d WXUSINGDLL
248 !if "$(MONOLITHIC)" == "0"
250 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
252 !if "$(MONOLITHIC)" == "0"
254 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
256 !if "$(MONOLITHIC)" == "0"
258 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
260 !if "$(MONOLITHIC)" == "1"
262 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264 !if "$(USE_GUI)" == "1"
265 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
267 !if "$(USE_GUI)" == "1"
268 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
270 !if "$(USE_GUI)" == "1"
271 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
274 __UNICOWS_LIB_p = unicows.lib
280 -if not exist $(OBJS) mkdir $(OBJS)
284 all: $(OBJS)\client.exe $(OBJS)\server.exe
287 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
288 -if exist $(OBJS)\*.res del $(OBJS)\*.res
289 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
290 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
291 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
292 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
293 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
294 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
296 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
297 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
298 $(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)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
301 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
302 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
303 $(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)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
306 $(OBJS)\client_client.obj: .\client.cpp
307 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
309 $(OBJS)\client_client.res: .\client.rc
310 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 /d NOPCH $**
312 $(OBJS)\server_server.obj: .\server.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
315 $(OBJS)\server_server.res: .\server.rc
316 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 /d NOPCH $**