1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (http://www.bakefile.org)
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
45 BASECLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS_36)$(__DEBUGRUNTIME) /DWIN32 \
46 $(__DEBUGINFO) /Fd$(OBJS)\baseclient.pdb $(____DEBUGRUNTIME) \
47 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
49 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
50 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
51 /D_CONSOLE /DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
53 BASECLIENT_OBJECTS = \
54 $(OBJS)\baseclient_baseclient.obj
55 BASESERVER_CXXFLAGS = /M$(__RUNTIME_LIBS_50)$(__DEBUGRUNTIME) /DWIN32 \
56 $(__DEBUGINFO) /Fd$(OBJS)\baseserver.pdb $(____DEBUGRUNTIME) \
57 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
58 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
59 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
60 $(__GFXCTX_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include /W4 /I. $(__DLLFLAG_p) \
61 /D_CONSOLE /DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
63 BASESERVER_OBJECTS = \
64 $(OBJS)\baseserver_baseserver.obj
66 ### Conditionally set variables: ###
68 !if "$(USE_GUI)" == "0"
71 !if "$(USE_GUI)" == "1"
74 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
77 !if "$(DEBUG_FLAG)" == "1"
80 !if "$(UNICODE)" == "1"
83 !if "$(WXUNIV)" == "1"
86 !if "$(TARGET_CPU)" == "AMD64"
87 DIR_SUFFIX_CPU = _amd64
89 !if "$(TARGET_CPU)" == "IA64"
90 DIR_SUFFIX_CPU = _ia64
92 !if "$(TARGET_CPU)" == "amd64"
93 DIR_SUFFIX_CPU = _amd64
95 !if "$(TARGET_CPU)" == "ia64"
96 DIR_SUFFIX_CPU = _ia64
98 !if "$(SHARED)" == "1"
101 !if "$(SHARED)" == "0"
104 !if "$(SHARED)" == "1"
107 !if "$(TARGET_CPU)" == "AMD64"
108 LINK_TARGET_CPU = /MACHINE:AMD64
110 !if "$(TARGET_CPU)" == "IA64"
111 LINK_TARGET_CPU = /MACHINE:IA64
113 !if "$(TARGET_CPU)" == "amd64"
114 LINK_TARGET_CPU = /MACHINE:AMD64
116 !if "$(TARGET_CPU)" == "ia64"
117 LINK_TARGET_CPU = /MACHINE:IA64
119 !if "$(MONOLITHIC)" == "0"
122 !if "$(MONOLITHIC)" == "1"
125 !if "$(USE_GUI)" == "1"
126 __client___depname = $(OBJS)\client.exe
128 !if "$(RUNTIME_LIBS)" == "dynamic"
131 !if "$(RUNTIME_LIBS)" == "static"
132 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
134 !if "$(USE_GUI)" == "1"
135 __server___depname = $(OBJS)\server.exe
137 !if "$(RUNTIME_LIBS)" == "dynamic"
138 __RUNTIME_LIBS_22 = D
140 !if "$(RUNTIME_LIBS)" == "static"
141 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
143 !if "$(RUNTIME_LIBS)" == "dynamic"
144 __RUNTIME_LIBS_36 = D
146 !if "$(RUNTIME_LIBS)" == "static"
147 __RUNTIME_LIBS_36 = $(__THREADSFLAG)
149 !if "$(RUNTIME_LIBS)" == "dynamic"
150 __RUNTIME_LIBS_50 = D
152 !if "$(RUNTIME_LIBS)" == "static"
153 __RUNTIME_LIBS_50 = $(__THREADSFLAG)
155 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
156 ____DEBUGRUNTIME_0 = /d _DEBUG
158 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
161 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
164 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
165 ____DEBUGRUNTIME_0 = /d _DEBUG
167 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
168 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
170 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
171 __NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
173 !if "$(WXUNIV)" == "1"
174 __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
176 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
177 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
179 !if "$(DEBUG_FLAG)" == "1"
180 __DEBUG_DEFINE_p_0 = /d __WXDEBUG__
182 !if "$(USE_EXCEPTIONS)" == "0"
183 __EXCEPTIONS_DEFINE_p_0 = /d wxNO_EXCEPTIONS
185 !if "$(USE_RTTI)" == "0"
186 __RTTI_DEFINE_p_0 = /d wxNO_RTTI
188 !if "$(USE_THREADS)" == "0"
189 __THREAD_DEFINE_p_0 = /d wxNO_THREADS
191 !if "$(UNICODE)" == "0"
192 __UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=0
194 !if "$(UNICODE)" == "1"
195 __UNICODE_DEFINE_p_0 = /d _UNICODE
198 __MSLU_DEFINE_p_0 = /d wxUSE_UNICODE_MSLU=1
200 !if "$(USE_GDIPLUS)" == "1"
201 __GFXCTX_DEFINE_p_0 = /d wxUSE_GRAPHICS_CONTEXT=1
203 !if "$(SHARED)" == "1"
204 __DLLFLAG_p_0 = /d WXUSINGDLL
206 !if "$(MONOLITHIC)" == "0"
208 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
210 !if "$(USE_GUI)" == "1"
211 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
213 !if "$(USE_GUI)" == "1"
214 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
216 !if "$(USE_GUI)" == "1"
217 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
219 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
222 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
225 !if "$(DEBUG_INFO)" == "0"
228 !if "$(DEBUG_INFO)" == "1"
231 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
232 __DEBUGINFO_3 = /DEBUG
234 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
237 !if "$(DEBUG_INFO)" == "0"
240 !if "$(DEBUG_INFO)" == "1"
241 __DEBUGINFO_3 = /DEBUG
243 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
244 ____DEBUGRUNTIME = /D_DEBUG
246 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
249 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
252 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
253 ____DEBUGRUNTIME = /D_DEBUG
255 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
258 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
261 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
264 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
267 !if "$(BUILD)" == "debug"
270 !if "$(BUILD)" == "release"
273 !if "$(USE_THREADS)" == "0"
276 !if "$(USE_THREADS)" == "1"
279 !if "$(USE_RTTI)" == "0"
282 !if "$(USE_RTTI)" == "1"
285 !if "$(USE_EXCEPTIONS)" == "0"
288 !if "$(USE_EXCEPTIONS)" == "1"
289 __EXCEPTIONSFLAG = /EHsc
291 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
292 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
294 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
295 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
297 !if "$(WXUNIV)" == "1"
298 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
300 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
301 __DEBUG_DEFINE_p = /D__WXDEBUG__
303 !if "$(DEBUG_FLAG)" == "1"
304 __DEBUG_DEFINE_p = /D__WXDEBUG__
306 !if "$(USE_EXCEPTIONS)" == "0"
307 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
309 !if "$(USE_RTTI)" == "0"
310 __RTTI_DEFINE_p = /DwxNO_RTTI
312 !if "$(USE_THREADS)" == "0"
313 __THREAD_DEFINE_p = /DwxNO_THREADS
315 !if "$(UNICODE)" == "0"
316 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
318 !if "$(UNICODE)" == "1"
319 __UNICODE_DEFINE_p = /D_UNICODE
322 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
324 !if "$(USE_GDIPLUS)" == "1"
325 __GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
327 !if "$(SHARED)" == "1"
328 __DLLFLAG_p = /DWXUSINGDLL
330 !if "$(MONOLITHIC)" == "0"
332 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
334 !if "$(MONOLITHIC)" == "0"
336 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
338 !if "$(MONOLITHIC)" == "1"
340 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
343 __UNICOWS_LIB_p = unicows.lib
345 !if "$(USE_GDIPLUS)" == "1"
346 __GDIPLUS_LIB_p = gdiplus.lib
352 -if not exist $(OBJS) mkdir $(OBJS)
356 all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
359 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
360 -if exist $(OBJS)\*.res del $(OBJS)\*.res
361 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
362 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
363 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
364 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
365 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
366 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
367 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
368 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
369 -if exist $(OBJS)\baseclient.ilk del $(OBJS)\baseclient.ilk
370 -if exist $(OBJS)\baseclient.pdb del $(OBJS)\baseclient.pdb
371 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
372 -if exist $(OBJS)\baseserver.ilk del $(OBJS)\baseserver.ilk
373 -if exist $(OBJS)\baseserver.pdb del $(OBJS)\baseserver.pdb
375 !if "$(USE_GUI)" == "1"
376 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
377 link /NOLOGO /OUT:$@ $(__DEBUGINFO_3) /pdb:"$(OBJS)\client.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
378 $(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 wininet.lib
382 !if "$(USE_GUI)" == "1"
383 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
384 link /NOLOGO /OUT:$@ $(__DEBUGINFO_3) /pdb:"$(OBJS)\server.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<
385 $(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 wininet.lib
389 $(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
390 link /NOLOGO /OUT:$@ $(__DEBUGINFO_3) /pdb:"$(OBJS)\baseclient.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(LDFLAGS) @<<
391 $(BASECLIENT_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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 wininet.lib
394 $(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
395 link /NOLOGO /OUT:$@ $(__DEBUGINFO_3) /pdb:"$(OBJS)\baseserver.pdb" $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(LDFLAGS) @<<
396 $(BASESERVER_OBJECTS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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 wininet.lib
399 $(OBJS)\client_client.obj: .\client.cpp
400 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) .\client.cpp
402 $(OBJS)\client_client.res: .\client.rc
403 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 .\client.rc
405 $(OBJS)\server_server.obj: .\server.cpp
406 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) .\server.cpp
408 $(OBJS)\server_server.res: .\server.rc
409 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 .\server.rc
411 $(OBJS)\baseclient_baseclient.obj: .\baseclient.cpp
412 $(CXX) /c /nologo /TP /Fo$@ $(BASECLIENT_CXXFLAGS) .\baseclient.cpp
414 $(OBJS)\baseserver_baseserver.obj: .\baseserver.cpp
415 $(CXX) /c /nologo /TP /Fo$@ $(BASESERVER_CXXFLAGS) .\baseserver.cpp