]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.vc
fix compilation after r50329
[wxWidgets.git] / samples / sockets / makefile.vc
CommitLineData
0706fb23
VS
1# =========================================================================
2# This makefile was generated by
444833b3 3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
0706fb23
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
7921cf2b 6
fd9f42b6 7!include <../../build/msw/config.vc>
0706fb23
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
ae4ccf12 15WX_RELEASE_NODOT = 29
444833b3 16COMPILER_PREFIX = vc
b17c1746 17OBJS = \
444833b3
CE
18 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
19LIBDIRNAME = \
20 .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21c6080d
JS
23CLIENT_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) \
3abcf424
RD
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) \
30 $(CXXFLAGS)
e9877ed3
VS
31CLIENT_OBJECTS = \
32 $(OBJS)\client_client.obj \
33 $(OBJS)\client_client.res
21c6080d
JS
34SERVER_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) \
3abcf424
RD
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) \
41 $(CXXFLAGS)
e9877ed3
VS
42SERVER_OBJECTS = \
43 $(OBJS)\server_server.obj \
44 $(OBJS)\server_server.res
0706fb23
VS
45
46### Conditionally set variables: ###
47
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
25a73439
VS
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
0706fb23
VS
58WXDEBUGFLAG = d
59!endif
0706fb23
VS
60!if "$(UNICODE)" == "1"
61WXUNICODEFLAG = u
62!endif
63!if "$(WXUNIV)" == "1"
64WXUNIVNAME = univ
65!endif
9d309aad 66!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
67DIR_SUFFIX_CPU = _amd64
68!endif
9d309aad
MW
69!if "$(TARGET_CPU)" == "amd64"
70DIR_SUFFIX_CPU = _amd64
71!endif
72!if "$(TARGET_CPU)" == "ia64"
73DIR_SUFFIX_CPU = _ia64
74!endif
75!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
76DIR_SUFFIX_CPU = _ia64
77!endif
b17c1746
DE
78!if "$(SHARED)" == "1"
79WXDLLFLAG = dll
80!endif
b14abf14
JS
81!if "$(SHARED)" == "0"
82LIBTYPE_SUFFIX = lib
83!endif
84!if "$(SHARED)" == "1"
85LIBTYPE_SUFFIX = dll
86!endif
9d309aad
MW
87!if "$(TARGET_CPU)" == "amd64"
88LINK_TARGET_CPU = /MACHINE:AMD64
89!endif
90!if "$(TARGET_CPU)" == "amd64"
ab6ea1ac
MW
91LINK_TARGET_CPU = /MACHINE:AMD64
92!endif
9d309aad
MW
93!if "$(TARGET_CPU)" == "ia64"
94LINK_TARGET_CPU = /MACHINE:IA64
95!endif
96!if "$(TARGET_CPU)" == "ia64"
ab6ea1ac
MW
97LINK_TARGET_CPU = /MACHINE:IA64
98!endif
dd65d8c8
RN
99!if "$(MONOLITHIC)" == "0"
100EXTRALIBS_FOR_BASE =
101!endif
102!if "$(MONOLITHIC)" == "1"
103EXTRALIBS_FOR_BASE =
104!endif
8c9f8f91
JS
105!if "$(RUNTIME_LIBS)" == "dynamic"
106__RUNTIME_LIBS_8 = D
107!endif
108!if "$(RUNTIME_LIBS)" == "static"
109__RUNTIME_LIBS_8 = $(__THREADSFLAG)
110!endif
8c9f8f91
JS
111!if "$(RUNTIME_LIBS)" == "dynamic"
112__RUNTIME_LIBS_22 = D
113!endif
114!if "$(RUNTIME_LIBS)" == "static"
115__RUNTIME_LIBS_22 = $(__THREADSFLAG)
b17c1746 116!endif
25a73439 117!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 118__DEBUGINFO = /Zi
250700e4 119!endif
25a73439
VS
120!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
121__DEBUGINFO =
250700e4 122!endif
25a73439
VS
123!if "$(DEBUG_INFO)" == "0"
124__DEBUGINFO =
250700e4 125!endif
25a73439 126!if "$(DEBUG_INFO)" == "1"
b17c1746 127__DEBUGINFO = /Zi
250700e4 128!endif
25a73439
VS
129!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
130__DEBUGINFO_1 = /DEBUG
250700e4 131!endif
25a73439
VS
132!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133__DEBUGINFO_1 =
250700e4 134!endif
25a73439
VS
135!if "$(DEBUG_INFO)" == "0"
136__DEBUGINFO_1 =
137!endif
138!if "$(DEBUG_INFO)" == "1"
139__DEBUGINFO_1 = /DEBUG
140!endif
21c6080d
JS
141!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
142____DEBUGRUNTIME = /D_DEBUG
25a73439 143!endif
21c6080d
JS
144!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
145____DEBUGRUNTIME =
25a73439 146!endif
21c6080d
JS
147!if "$(DEBUG_RUNTIME_LIBS)" == "0"
148____DEBUGRUNTIME =
25a73439 149!endif
21c6080d
JS
150!if "$(DEBUG_RUNTIME_LIBS)" == "1"
151____DEBUGRUNTIME = /D_DEBUG
25a73439 152!endif
21c6080d
JS
153!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
154____DEBUGRUNTIME_0 = /d _DEBUG
25a73439 155!endif
21c6080d
JS
156!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
157____DEBUGRUNTIME_0 =
25a73439 158!endif
21c6080d
JS
159!if "$(DEBUG_RUNTIME_LIBS)" == "0"
160____DEBUGRUNTIME_0 =
25a73439 161!endif
21c6080d
JS
162!if "$(DEBUG_RUNTIME_LIBS)" == "1"
163____DEBUGRUNTIME_0 = /d _DEBUG
25a73439 164!endif
21c6080d
JS
165!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
166__DEBUGRUNTIME = d
25a73439 167!endif
21c6080d
JS
168!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
169__DEBUGRUNTIME =
25a73439 170!endif
21c6080d
JS
171!if "$(DEBUG_RUNTIME_LIBS)" == "0"
172__DEBUGRUNTIME =
0706fb23 173!endif
21c6080d
JS
174!if "$(DEBUG_RUNTIME_LIBS)" == "1"
175__DEBUGRUNTIME = d
25a73439 176!endif
b17c1746
DE
177!if "$(BUILD)" == "debug"
178__OPTIMIZEFLAG = /Od
25a73439 179!endif
b17c1746
DE
180!if "$(BUILD)" == "release"
181__OPTIMIZEFLAG = /O2
0706fb23 182!endif
8c9f8f91
JS
183!if "$(USE_THREADS)" == "0"
184__THREADSFLAG = L
0706fb23 185!endif
8c9f8f91
JS
186!if "$(USE_THREADS)" == "1"
187__THREADSFLAG = T
e9877ed3 188!endif
8c9f8f91
JS
189!if "$(USE_RTTI)" == "0"
190__RTTIFLAG =
b71531ad 191!endif
8c9f8f91
JS
192!if "$(USE_RTTI)" == "1"
193__RTTIFLAG = /GR
b71531ad
VZ
194!endif
195!if "$(USE_EXCEPTIONS)" == "0"
8c9f8f91 196__EXCEPTIONSFLAG =
b71531ad
VZ
197!endif
198!if "$(USE_EXCEPTIONS)" == "1"
8c9f8f91 199__EXCEPTIONSFLAG = /EHsc
250700e4 200!endif
ec08d395
JS
201!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
202__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
203!endif
204!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
205__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
206!endif
207!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
208__NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
209!endif
210!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
211__NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
212!endif
b17c1746
DE
213!if "$(WXUNIV)" == "1"
214__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
250700e4 215!endif
b17c1746
DE
216!if "$(WXUNIV)" == "1"
217__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
250700e4 218!endif
b17c1746
DE
219!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
220__DEBUG_DEFINE_p = /D__WXDEBUG__
250700e4 221!endif
b17c1746
DE
222!if "$(DEBUG_FLAG)" == "1"
223__DEBUG_DEFINE_p = /D__WXDEBUG__
224!endif
225!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
226__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
227!endif
228!if "$(DEBUG_FLAG)" == "1"
229__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
0706fb23 230!endif
8c9f8f91
JS
231!if "$(USE_EXCEPTIONS)" == "0"
232__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
233!endif
234!if "$(USE_EXCEPTIONS)" == "0"
235__EXCEPTIONS_DEFINE_p_0 = /d wxNO_EXCEPTIONS
236!endif
237!if "$(USE_RTTI)" == "0"
238__RTTI_DEFINE_p = /DwxNO_RTTI
239!endif
240!if "$(USE_RTTI)" == "0"
241__RTTI_DEFINE_p_0 = /d wxNO_RTTI
242!endif
243!if "$(USE_THREADS)" == "0"
244__THREAD_DEFINE_p = /DwxNO_THREADS
245!endif
246!if "$(USE_THREADS)" == "0"
247__THREAD_DEFINE_p_0 = /d wxNO_THREADS
248!endif
7379e476
VZ
249!if "$(UNICODE)" == "0"
250__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
251!endif
0706fb23 252!if "$(UNICODE)" == "1"
ec08d395 253__UNICODE_DEFINE_p = /D_UNICODE
0706fb23 254!endif
7379e476
VZ
255!if "$(UNICODE)" == "0"
256__UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=0
257!endif
0706fb23 258!if "$(UNICODE)" == "1"
ec08d395 259__UNICODE_DEFINE_p_0 = /d _UNICODE
0706fb23 260!endif
2113bc77
MW
261!if "$(MSLU)" == "1"
262__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
263!endif
264!if "$(MSLU)" == "1"
265__MSLU_DEFINE_p_0 = /d wxUSE_UNICODE_MSLU=1
266!endif
3abcf424
RD
267!if "$(USE_GDIPLUS)" == "1"
268__GFXCTX_DEFINE_p = /DwxUSE_GRAPHICS_CONTEXT=1
269!endif
270!if "$(USE_GDIPLUS)" == "1"
271__GFXCTX_DEFINE_p_0 = /d wxUSE_GRAPHICS_CONTEXT=1
272!endif
b17c1746
DE
273!if "$(SHARED)" == "1"
274__DLLFLAG_p = /DWXUSINGDLL
275!endif
276!if "$(SHARED)" == "1"
277__DLLFLAG_p_0 = /d WXUSINGDLL
0706fb23
VS
278!endif
279!if "$(MONOLITHIC)" == "0"
e9877ed3 280__WXLIB_CORE_p = \
c33fae85 281 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
0706fb23 282!endif
e9877ed3 283!if "$(MONOLITHIC)" == "0"
c33fae85
RN
284__WXLIB_NET_p = \
285 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
0706fb23 286!endif
b17c1746 287!if "$(MONOLITHIC)" == "0"
c33fae85
RN
288__WXLIB_BASE_p = \
289 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
25a73439 290!endif
b17c1746
DE
291!if "$(MONOLITHIC)" == "1"
292__WXLIB_MONO_p = \
c33fae85 293 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
25a73439 294!endif
b17c1746 295!if "$(USE_GUI)" == "1"
9c2d002b 296__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
25a73439 297!endif
b17c1746 298!if "$(USE_GUI)" == "1"
9c2d002b 299__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
25a73439 300!endif
b17c1746 301!if "$(USE_GUI)" == "1"
9c2d002b 302__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
25a73439 303!endif
b17c1746
DE
304!if "$(MSLU)" == "1"
305__UNICOWS_LIB_p = unicows.lib
bdc408c4 306!endif
3abcf424
RD
307!if "$(USE_GDIPLUS)" == "1"
308__GDIPLUS_LIB_p = gdiplus.lib
309!endif
0706fb23
VS
310
311
312all: $(OBJS)
313$(OBJS):
314 -if not exist $(OBJS) mkdir $(OBJS)
315
316### Targets: ###
317
250700e4
RD
318all: $(OBJS)\client.exe $(OBJS)\server.exe
319
0706fb23
VS
320clean:
321 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
322 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 323 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
250700e4 324 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
ec08d395
JS
325 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
326 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
250700e4 327 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
ec08d395
JS
328 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
329 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
0706fb23 330
e9877ed3 331$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
ab6ea1ac 332 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
7379e476 333 $(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
0706fb23
VS
334<<
335
e9877ed3 336$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
ab6ea1ac 337 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
7379e476 338 $(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
250700e4 339<<
b17c1746
DE
340
341$(OBJS)\client_client.obj: .\client.cpp
342 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
343
344$(OBJS)\client_client.res: .\client.rc
3abcf424 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 $**
b17c1746
DE
346
347$(OBJS)\server_server.obj: .\server.cpp
348 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
349
350$(OBJS)\server_server.res: .\server.rc
3abcf424 351 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 $**
b14abf14 352