1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
15 CLIENT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
16 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
17 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
18 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
19 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(CXXFLAGS) \
20 $(__EXCEPTIONSFLAG_0) $(__EXCEPTIONSFLAG)
22 $(OBJS)\client_sample.res \
23 $(OBJS)\client_client.obj
25 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
27 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \
28 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
30 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(CXXFLAGS) \
31 $(__EXCEPTIONSFLAG_0) $(__EXCEPTIONSFLAG)
33 $(OBJS)\server_sample.res \
34 $(OBJS)\server_server.obj
36 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
38 ### Conditionally set variables: ###
40 !if "$(SHARED)" == "0"
41 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
43 !if "$(SHARED)" == "1"
44 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
46 !if "$(USE_GUI)" == "0"
49 !if "$(USE_GUI)" == "1"
52 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55 !if "$(DEBUG_FLAG)" == "1"
58 !if "$(SHARED)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
70 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
73 !if "$(DEBUG_INFO)" == "0"
76 !if "$(DEBUG_INFO)" == "1"
79 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
80 __DEBUGINFO_1 = /DEBUG
82 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
85 !if "$(DEBUG_INFO)" == "0"
88 !if "$(DEBUG_INFO)" == "1"
89 __DEBUGINFO_1 = /DEBUG
91 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97 !if "$(DEBUG_INFO)" == "0"
100 !if "$(DEBUG_INFO)" == "1"
103 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
107 __DEBUGRUNTIME_16 = d
109 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
110 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
112 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
115 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
118 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
119 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
121 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
122 __DEBUG_DEFINE_p = /D__WXDEBUG__
124 !if "$(DEBUG_FLAG)" == "1"
125 __DEBUG_DEFINE_p = /D__WXDEBUG__
127 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
128 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
130 !if "$(DEBUG_FLAG)" == "1"
131 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
133 !if "$(SHARED)" == "1"
134 __DLLFLAG_p = /DWXUSINGDLL
136 !if "$(SHARED)" == "1"
137 __DLLFLAG_p_0 = /d WXUSINGDLL
139 !if "$(USE_EXCEPTIONS)" == "0"
142 !if "$(USE_EXCEPTIONS)" == "1"
143 __EXCEPTIONSFLAG = /GX
145 !if "$(USE_EXCEPTIONS)" == "0"
148 !if "$(USE_EXCEPTIONS)" == "1"
149 __EXCEPTIONSFLAG_0 = /GR
151 !if "$(USE_GUI)" == "1"
152 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
154 !if "$(USE_GUI)" == "1"
155 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
157 !if "$(USE_GUI)" == "1"
158 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
160 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
161 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
163 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
164 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
166 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
167 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
169 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
170 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
172 !if "$(BUILD)" == "debug"
175 !if "$(BUILD)" == "release"
178 !if "$(RUNTIME_LIBS)" == "dynamic"
181 !if "$(RUNTIME_LIBS)" == "static"
184 !if "$(UNICODE)" == "1"
185 __UNICODE_DEFINE_p = /D_UNICODE
187 !if "$(UNICODE)" == "1"
188 __UNICODE_DEFINE_p_0 = /d _UNICODE
191 __UNICOWS_LIB_p = unicows.lib
193 !if "$(MONOLITHIC)" == "0"
194 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
196 !if "$(MONOLITHIC)" == "0"
198 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
204 !if "$(MONOLITHIC)" == "0"
205 __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
207 !if "$(WXUNIV)" == "1"
208 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
210 !if "$(WXUNIV)" == "1"
211 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
213 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
214 ____DEBUGINFO = /D_DEBUG
216 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
219 !if "$(DEBUG_INFO)" == "0"
222 !if "$(DEBUG_INFO)" == "1"
223 ____DEBUGINFO = /D_DEBUG
225 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
226 ____DEBUGINFO_0 = /d _DEBUG
228 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
231 !if "$(DEBUG_INFO)" == "0"
234 !if "$(DEBUG_INFO)" == "1"
235 ____DEBUGINFO_0 = /d _DEBUG
237 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
238 ____DEBUGRUNTIME_15_p =
240 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
241 ____DEBUGRUNTIME_15_p = /D_DEBUG
243 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
244 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
246 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
247 ____DEBUGRUNTIME_15_p_1 =
249 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
250 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
252 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
253 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
255 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
256 ____DEBUGRUNTIME_2_p =
258 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
259 ____DEBUGRUNTIME_2_p = /D_DEBUG
261 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
262 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
264 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
265 ____DEBUGRUNTIME_2_p_1 =
267 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
268 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
270 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
271 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
277 -if not exist $(OBJS) mkdir $(OBJS)
281 all: $(OBJS)\client.exe $(OBJS)\server.exe
283 $(OBJS)\client_client.obj: .\client.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
286 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
287 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 $**
289 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
290 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 $**
292 $(OBJS)\server_server.obj: .\server.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
296 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
297 -if exist $(OBJS)\*.res del $(OBJS)\*.res
298 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
299 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
300 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
301 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
302 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
303 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
305 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
306 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
307 $(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
310 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
311 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
312 $(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