1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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)$(__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) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
25 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\client_sample.res \
29 $(OBJS)\client_client.obj
30 SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
31 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \
32 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
34 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
35 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\server_sample.res \
38 $(OBJS)\server_server.obj
40 ### Conditionally set variables: ###
42 !if "$(USE_GUI)" == "0"
45 !if "$(USE_GUI)" == "1"
48 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
51 !if "$(DEBUG_FLAG)" == "1"
54 !if "$(UNICODE)" == "1"
57 !if "$(WXUNIV)" == "1"
60 !if "$(SHARED)" == "1"
63 !if "$(SHARED)" == "0"
66 !if "$(SHARED)" == "1"
69 !if "$(MONOLITHIC)" == "0"
72 !if "$(MONOLITHIC)" == "1"
75 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
76 ____DEBUGRUNTIME_2_p =
78 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
79 ____DEBUGRUNTIME_2_p = /D_DEBUG
81 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
82 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
84 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
85 ____DEBUGRUNTIME_2_p_1 =
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
88 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
90 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
91 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
93 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
96 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
99 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
100 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
102 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
103 ____DEBUGRUNTIME_15_p =
105 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
106 ____DEBUGRUNTIME_15_p = /D_DEBUG
108 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
109 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 ____DEBUGRUNTIME_15_p_1 =
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
117 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
118 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
120 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
123 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
124 __DEBUGRUNTIME_16 = d
126 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
127 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
135 !if "$(DEBUG_INFO)" == "0"
138 !if "$(DEBUG_INFO)" == "1"
141 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142 __DEBUGINFO_1 = /DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
147 !if "$(DEBUG_INFO)" == "0"
150 !if "$(DEBUG_INFO)" == "1"
151 __DEBUGINFO_1 = /DEBUG
153 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
154 ____DEBUGINFO = /D_DEBUG
156 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 !if "$(DEBUG_INFO)" == "0"
162 !if "$(DEBUG_INFO)" == "1"
163 ____DEBUGINFO = /D_DEBUG
165 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
166 ____DEBUGINFO_0 = /d _DEBUG
168 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
171 !if "$(DEBUG_INFO)" == "0"
174 !if "$(DEBUG_INFO)" == "1"
175 ____DEBUGINFO_0 = /d _DEBUG
177 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
180 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
183 !if "$(DEBUG_INFO)" == "0"
186 !if "$(DEBUG_INFO)" == "1"
189 !if "$(BUILD)" == "debug"
192 !if "$(BUILD)" == "release"
195 !if "$(RUNTIME_LIBS)" == "dynamic"
198 !if "$(RUNTIME_LIBS)" == "static"
201 !if "$(USE_EXCEPTIONS)" == "0"
204 !if "$(USE_EXCEPTIONS)" == "1"
205 __EXCEPTIONSFLAG = /GR
207 !if "$(USE_EXCEPTIONS)" == "0"
210 !if "$(USE_EXCEPTIONS)" == "1"
211 __EXCEPTIONSFLAG_0 = /GX
213 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
214 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
216 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
217 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
219 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
220 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
222 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
223 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
225 !if "$(WXUNIV)" == "1"
226 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
228 !if "$(WXUNIV)" == "1"
229 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
231 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
232 __DEBUG_DEFINE_p = /D__WXDEBUG__
234 !if "$(DEBUG_FLAG)" == "1"
235 __DEBUG_DEFINE_p = /D__WXDEBUG__
237 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
238 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
240 !if "$(DEBUG_FLAG)" == "1"
241 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
243 !if "$(UNICODE)" == "1"
244 __UNICODE_DEFINE_p = /D_UNICODE
246 !if "$(UNICODE)" == "1"
247 __UNICODE_DEFINE_p_0 = /d _UNICODE
249 !if "$(SHARED)" == "1"
250 __DLLFLAG_p = /DWXUSINGDLL
252 !if "$(SHARED)" == "1"
253 __DLLFLAG_p_0 = /d WXUSINGDLL
255 !if "$(MONOLITHIC)" == "0"
257 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
259 !if "$(MONOLITHIC)" == "0"
261 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
263 !if "$(MONOLITHIC)" == "0"
265 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
267 !if "$(MONOLITHIC)" == "1"
269 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
271 !if "$(USE_GUI)" == "1"
272 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
274 !if "$(USE_GUI)" == "1"
275 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
277 !if "$(USE_GUI)" == "1"
278 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
281 __UNICOWS_LIB_p = unicows.lib
287 -if not exist $(OBJS) mkdir $(OBJS)
291 all: $(OBJS)\client.exe $(OBJS)\server.exe
294 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
295 -if exist $(OBJS)\*.res del $(OBJS)\*.res
296 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
297 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
298 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
299 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
300 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
301 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
302 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
304 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
305 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
306 $(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
309 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
310 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
311 $(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
314 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
315 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 $**
317 $(OBJS)\client_client.obj: .\client.cpp
318 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
320 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
321 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 $**
323 $(OBJS)\server_server.obj: .\server.cpp
324 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**