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_sample.res \
28 $(OBJS)\client_client.obj
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_sample.res \
37 $(OBJS)\server_server.obj
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 "$(MONOLITHIC)" == "0"
65 !if "$(MONOLITHIC)" == "1"
68 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
69 ____DEBUGRUNTIME_2_p =
71 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
72 ____DEBUGRUNTIME_2_p = /D_DEBUG
74 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
75 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
77 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
78 ____DEBUGRUNTIME_2_p_1 =
80 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
81 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
83 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
84 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
86 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
89 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
92 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
93 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
95 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
96 ____DEBUGRUNTIME_15_p =
98 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
99 ____DEBUGRUNTIME_15_p = /D_DEBUG
101 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
102 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
104 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
105 ____DEBUGRUNTIME_15_p_1 =
107 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
108 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
110 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
111 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
113 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
116 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
117 __DEBUGRUNTIME_16 = d
119 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
120 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
122 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
125 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
128 !if "$(DEBUG_INFO)" == "0"
131 !if "$(DEBUG_INFO)" == "1"
134 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
135 __DEBUGINFO_1 = /DEBUG
137 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
140 !if "$(DEBUG_INFO)" == "0"
143 !if "$(DEBUG_INFO)" == "1"
144 __DEBUGINFO_1 = /DEBUG
146 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
147 ____DEBUGINFO = /D_DEBUG
149 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
152 !if "$(DEBUG_INFO)" == "0"
155 !if "$(DEBUG_INFO)" == "1"
156 ____DEBUGINFO = /D_DEBUG
158 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
159 ____DEBUGINFO_0 = /d _DEBUG
161 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
164 !if "$(DEBUG_INFO)" == "0"
167 !if "$(DEBUG_INFO)" == "1"
168 ____DEBUGINFO_0 = /d _DEBUG
170 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
173 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
176 !if "$(DEBUG_INFO)" == "0"
179 !if "$(DEBUG_INFO)" == "1"
182 !if "$(BUILD)" == "debug"
185 !if "$(BUILD)" == "release"
188 !if "$(RUNTIME_LIBS)" == "dynamic"
191 !if "$(RUNTIME_LIBS)" == "static"
194 !if "$(USE_EXCEPTIONS)" == "0"
197 !if "$(USE_EXCEPTIONS)" == "1"
198 __EXCEPTIONSFLAG = /GR
200 !if "$(USE_EXCEPTIONS)" == "0"
203 !if "$(USE_EXCEPTIONS)" == "1"
204 __EXCEPTIONSFLAG_0 = /GX
206 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
207 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
209 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
210 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
212 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
213 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
215 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
216 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
218 !if "$(WXUNIV)" == "1"
219 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
221 !if "$(WXUNIV)" == "1"
222 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
224 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
225 __DEBUG_DEFINE_p = /D__WXDEBUG__
227 !if "$(DEBUG_FLAG)" == "1"
228 __DEBUG_DEFINE_p = /D__WXDEBUG__
230 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
231 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
233 !if "$(DEBUG_FLAG)" == "1"
234 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
236 !if "$(UNICODE)" == "1"
237 __UNICODE_DEFINE_p = /D_UNICODE
239 !if "$(UNICODE)" == "1"
240 __UNICODE_DEFINE_p_0 = /d _UNICODE
242 !if "$(SHARED)" == "0"
243 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
245 !if "$(SHARED)" == "1"
246 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
248 !if "$(SHARED)" == "1"
249 __DLLFLAG_p = /DWXUSINGDLL
251 !if "$(SHARED)" == "1"
252 __DLLFLAG_p_0 = /d WXUSINGDLL
254 !if "$(MONOLITHIC)" == "0"
256 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
258 !if "$(MONOLITHIC)" == "0"
260 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
262 !if "$(MONOLITHIC)" == "0"
264 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
266 !if "$(MONOLITHIC)" == "1"
268 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
270 !if "$(USE_GUI)" == "1"
271 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
273 !if "$(USE_GUI)" == "1"
274 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
276 !if "$(USE_GUI)" == "1"
277 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
280 __UNICOWS_LIB_p = unicows.lib
286 -if not exist $(OBJS) mkdir $(OBJS)
290 all: $(OBJS)\client.exe $(OBJS)\server.exe
293 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
294 -if exist $(OBJS)\*.res del $(OBJS)\*.res
295 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
296 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
297 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
298 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
299 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
300 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
302 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
303 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
304 $(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
307 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
308 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
309 $(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
312 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
313 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 $**
315 $(OBJS)\client_client.obj: .\client.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
318 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
319 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 $**
321 $(OBJS)\server_server.obj: .\server.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**