1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (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 # -------------------------------------------------------------------------
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME) /DWIN32 \
24 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
25 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
28 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
29 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
32 $(OBJS)\client_client.obj \
33 $(OBJS)\client_client.res
34 SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME) /DWIN32 \
35 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) \
36 $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
37 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
39 /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
40 /I.\..\..\samples /DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
43 $(OBJS)\server_server.obj \
44 $(OBJS)\server_server.res
46 ### Conditionally set variables: ###
48 !if "$(USE_GUI)" == "0"
51 !if "$(USE_GUI)" == "1"
54 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 !if "$(DEBUG_FLAG)" == "1"
60 !if "$(UNICODE)" == "1"
63 !if "$(WXUNIV)" == "1"
66 !if "$(TARGET_CPU)" == "amd64"
67 DIR_SUFFIX_CPU = _amd64
69 !if "$(TARGET_CPU)" == "amd64"
70 DIR_SUFFIX_CPU = _amd64
72 !if "$(TARGET_CPU)" == "ia64"
73 DIR_SUFFIX_CPU = _ia64
75 !if "$(TARGET_CPU)" == "ia64"
76 DIR_SUFFIX_CPU = _ia64
78 !if "$(SHARED)" == "1"
81 !if "$(SHARED)" == "0"
84 !if "$(SHARED)" == "1"
87 !if "$(TARGET_CPU)" == "amd64"
88 LINK_TARGET_CPU = /MACHINE:AMD64
90 !if "$(TARGET_CPU)" == "amd64"
91 LINK_TARGET_CPU = /MACHINE:AMD64
93 !if "$(TARGET_CPU)" == "ia64"
94 LINK_TARGET_CPU = /MACHINE:IA64
96 !if "$(TARGET_CPU)" == "ia64"
97 LINK_TARGET_CPU = /MACHINE:IA64
99 !if "$(MONOLITHIC)" == "0"
102 !if "$(MONOLITHIC)" == "1"
105 !if "$(RUNTIME_LIBS)" == "dynamic"
108 !if "$(RUNTIME_LIBS)" == "static"
109 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
111 !if "$(RUNTIME_LIBS)" == "dynamic"
112 __RUNTIME_LIBS_22 = D
114 !if "$(RUNTIME_LIBS)" == "static"
115 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
117 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
120 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
123 !if "$(DEBUG_INFO)" == "0"
126 !if "$(DEBUG_INFO)" == "1"
129 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
130 __DEBUGINFO_1 = /DEBUG
132 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
135 !if "$(DEBUG_INFO)" == "0"
138 !if "$(DEBUG_INFO)" == "1"
139 __DEBUGINFO_1 = /DEBUG
141 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
142 ____DEBUGRUNTIME = /D_DEBUG
144 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
147 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
150 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
151 ____DEBUGRUNTIME = /D_DEBUG
153 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154 ____DEBUGRUNTIME_0 = /d _DEBUG
156 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
159 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
162 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
163 ____DEBUGRUNTIME_0 = /d _DEBUG
165 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
168 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
171 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
174 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
177 !if "$(BUILD)" == "debug"
180 !if "$(BUILD)" == "release"
183 !if "$(USE_THREADS)" == "0"
186 !if "$(USE_THREADS)" == "1"
189 !if "$(USE_RTTI)" == "0"
192 !if "$(USE_RTTI)" == "1"
195 !if "$(USE_EXCEPTIONS)" == "0"
198 !if "$(USE_EXCEPTIONS)" == "1"
199 __EXCEPTIONSFLAG = /EHsc
201 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
202 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
204 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
205 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
207 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
208 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
210 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
211 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
213 !if "$(WXUNIV)" == "1"
214 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
216 !if "$(WXUNIV)" == "1"
217 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
219 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
220 __DEBUG_DEFINE_p = /D__WXDEBUG__
222 !if "$(DEBUG_FLAG)" == "1"
223 __DEBUG_DEFINE_p = /D__WXDEBUG__
225 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
226 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
228 !if "$(DEBUG_FLAG)" == "1"
229 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
231 !if "$(USE_EXCEPTIONS)" == "0"
232 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
234 !if "$(USE_EXCEPTIONS)" == "0"
235 __EXCEPTIONS_DEFINE_p_0 = /d wxNO_EXCEPTIONS
237 !if "$(USE_RTTI)" == "0"
238 __RTTI_DEFINE_p = /DwxNO_RTTI
240 !if "$(USE_RTTI)" == "0"
241 __RTTI_DEFINE_p_0 = /d wxNO_RTTI
243 !if "$(USE_THREADS)" == "0"
244 __THREAD_DEFINE_p = /DwxNO_THREADS
246 !if "$(USE_THREADS)" == "0"
247 __THREAD_DEFINE_p_0 = /d wxNO_THREADS
249 !if "$(UNICODE)" == "1"
250 __UNICODE_DEFINE_p = /D_UNICODE
252 !if "$(UNICODE)" == "1"
253 __UNICODE_DEFINE_p_0 = /d _UNICODE
256 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
259 __MSLU_DEFINE_p_0 = /d wxUSE_UNICODE_MSLU=1
261 !if "$(USE_GDIPLUS)" == "1"
262 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
264 !if "$(USE_GDIPLUS)" == "1"
265 __GFXCTX_DEFINE_p_0 = /d wxUSE_GRAPHICS_CONTEXT=1
267 !if "$(SHARED)" == "1"
268 __DLLFLAG_p = /DWXUSINGDLL
270 !if "$(SHARED)" == "1"
271 __DLLFLAG_p_0 = /d WXUSINGDLL
273 !if "$(MONOLITHIC)" == "0"
275 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
277 !if "$(MONOLITHIC)" == "0"
279 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
281 !if "$(MONOLITHIC)" == "0"
283 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
285 !if "$(MONOLITHIC)" == "1"
287 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
289 !if "$(USE_GUI)" == "1"
290 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
292 !if "$(USE_GUI)" == "1"
293 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
295 !if "$(USE_GUI)" == "1"
296 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
299 __UNICOWS_LIB_p = unicows.lib
301 !if "$(USE_GDIPLUS)" == "1"
302 __GDIPLUS_LIB_p = gdiplus.lib
308 -if not exist $(OBJS) mkdir $(OBJS)
312 all: $(OBJS)\client.exe $(OBJS)\server.exe
315 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
316 -if exist $(OBJS)\*.res del $(OBJS)\*.res
317 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
318 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
319 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
320 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
321 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
322 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
323 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
325 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
326 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
327 $(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) $(__GDIPLUS_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 odbc32.lib
330 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
331 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
332 $(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) $(__GDIPLUS_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 odbc32.lib
335 $(OBJS)\client_client.obj: .\client.cpp
336 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
338 $(OBJS)\client_client.res: .\client.rc
339 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_0) $(__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) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples /d NOPCH $**
341 $(OBJS)\server_server.obj: .\server.cpp
342 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
344 $(OBJS)\server_server.res: .\server.rc
345 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_0) $(__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) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) /i $(SETUPHDIR) /i .\..\..\include /i . $(__DLLFLAG_p_0) /d _WINDOWS /i .\..\..\samples /d NOPCH $**