]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.vc
Fixes
[wxWidgets.git] / samples / sockets / makefile.vc
CommitLineData
0706fb23
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (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
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
b17c1746 22 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395
JS
23 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
c33fae85
RN
25 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
e9877ed3
VS
27CLIENT_OBJECTS = \
28 $(OBJS)\client_client.obj \
29 $(OBJS)\client_client.res
9bfe7ad9 30SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
b17c1746 31 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \
ec08d395
JS
32 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
c33fae85
RN
34 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples /DNOPCH \
35 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
e9877ed3
VS
36SERVER_OBJECTS = \
37 $(OBJS)\server_server.obj \
38 $(OBJS)\server_server.res
0706fb23
VS
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
25a73439
VS
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
0706fb23
VS
52WXDEBUGFLAG = d
53!endif
0706fb23
VS
54!if "$(UNICODE)" == "1"
55WXUNICODEFLAG = u
56!endif
57!if "$(WXUNIV)" == "1"
58WXUNIVNAME = univ
59!endif
b17c1746
DE
60!if "$(SHARED)" == "1"
61WXDLLFLAG = dll
62!endif
b14abf14
JS
63!if "$(SHARED)" == "0"
64LIBTYPE_SUFFIX = lib
65!endif
66!if "$(SHARED)" == "1"
67LIBTYPE_SUFFIX = dll
68!endif
dd65d8c8
RN
69!if "$(MONOLITHIC)" == "0"
70EXTRALIBS_FOR_BASE =
71!endif
72!if "$(MONOLITHIC)" == "1"
73EXTRALIBS_FOR_BASE =
74!endif
b17c1746
DE
75!if "$(DEBUG_RUNTIME_LIBS)" == "0"
76____DEBUGRUNTIME_2_p =
77!endif
78!if "$(DEBUG_RUNTIME_LIBS)" == "1"
79____DEBUGRUNTIME_2_p = /D_DEBUG
80!endif
81!if "$(DEBUG_RUNTIME_LIBS)" == "default"
82____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
83!endif
84!if "$(DEBUG_RUNTIME_LIBS)" == "0"
85____DEBUGRUNTIME_2_p_1 =
86!endif
87!if "$(DEBUG_RUNTIME_LIBS)" == "1"
88____DEBUGRUNTIME_2_p_1 = /d _DEBUG
89!endif
90!if "$(DEBUG_RUNTIME_LIBS)" == "default"
91____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0)
92!endif
93!if "$(DEBUG_RUNTIME_LIBS)" == "0"
94__DEBUGRUNTIME_3 =
95!endif
96!if "$(DEBUG_RUNTIME_LIBS)" == "1"
97__DEBUGRUNTIME_3 = d
98!endif
99!if "$(DEBUG_RUNTIME_LIBS)" == "default"
100__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
101!endif
102!if "$(DEBUG_RUNTIME_LIBS)" == "0"
103____DEBUGRUNTIME_15_p =
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "1"
106____DEBUGRUNTIME_15_p = /D_DEBUG
107!endif
108!if "$(DEBUG_RUNTIME_LIBS)" == "default"
109____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "0"
112____DEBUGRUNTIME_15_p_1 =
113!endif
114!if "$(DEBUG_RUNTIME_LIBS)" == "1"
115____DEBUGRUNTIME_15_p_1 = /d _DEBUG
116!endif
117!if "$(DEBUG_RUNTIME_LIBS)" == "default"
118____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0)
119!endif
120!if "$(DEBUG_RUNTIME_LIBS)" == "0"
121__DEBUGRUNTIME_16 =
122!endif
123!if "$(DEBUG_RUNTIME_LIBS)" == "1"
124__DEBUGRUNTIME_16 = d
125!endif
126!if "$(DEBUG_RUNTIME_LIBS)" == "default"
127__DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
128!endif
25a73439 129!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 130__DEBUGINFO = /Zi
250700e4 131!endif
25a73439
VS
132!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
133__DEBUGINFO =
250700e4 134!endif
25a73439
VS
135!if "$(DEBUG_INFO)" == "0"
136__DEBUGINFO =
250700e4 137!endif
25a73439 138!if "$(DEBUG_INFO)" == "1"
b17c1746 139__DEBUGINFO = /Zi
250700e4 140!endif
25a73439
VS
141!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
142__DEBUGINFO_1 = /DEBUG
250700e4 143!endif
25a73439
VS
144!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
145__DEBUGINFO_1 =
250700e4 146!endif
25a73439
VS
147!if "$(DEBUG_INFO)" == "0"
148__DEBUGINFO_1 =
149!endif
150!if "$(DEBUG_INFO)" == "1"
151__DEBUGINFO_1 = /DEBUG
152!endif
153!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 154____DEBUGINFO = /D_DEBUG
25a73439
VS
155!endif
156!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 157____DEBUGINFO =
25a73439
VS
158!endif
159!if "$(DEBUG_INFO)" == "0"
b17c1746 160____DEBUGINFO =
25a73439
VS
161!endif
162!if "$(DEBUG_INFO)" == "1"
b17c1746 163____DEBUGINFO = /D_DEBUG
25a73439 164!endif
b17c1746
DE
165!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
166____DEBUGINFO_0 = /d _DEBUG
25a73439 167!endif
b17c1746
DE
168!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
169____DEBUGINFO_0 =
25a73439 170!endif
b17c1746
DE
171!if "$(DEBUG_INFO)" == "0"
172____DEBUGINFO_0 =
25a73439 173!endif
b17c1746
DE
174!if "$(DEBUG_INFO)" == "1"
175____DEBUGINFO_0 = /d _DEBUG
25a73439 176!endif
b17c1746
DE
177!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
178__DEBUGINFO_2 = d
25a73439 179!endif
b17c1746
DE
180!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
181__DEBUGINFO_2 =
25a73439 182!endif
b17c1746
DE
183!if "$(DEBUG_INFO)" == "0"
184__DEBUGINFO_2 =
0706fb23 185!endif
b17c1746
DE
186!if "$(DEBUG_INFO)" == "1"
187__DEBUGINFO_2 = d
25a73439 188!endif
b17c1746
DE
189!if "$(BUILD)" == "debug"
190__OPTIMIZEFLAG = /Od
25a73439 191!endif
b17c1746
DE
192!if "$(BUILD)" == "release"
193__OPTIMIZEFLAG = /O2
0706fb23 194!endif
b17c1746
DE
195!if "$(RUNTIME_LIBS)" == "dynamic"
196__RUNTIME_LIBS = D
0706fb23 197!endif
b17c1746
DE
198!if "$(RUNTIME_LIBS)" == "static"
199__RUNTIME_LIBS = T
e9877ed3 200!endif
b71531ad
VZ
201!if "$(USE_EXCEPTIONS)" == "0"
202__EXCEPTIONSFLAG =
203!endif
204!if "$(USE_EXCEPTIONS)" == "1"
b17c1746 205__EXCEPTIONSFLAG = /GR
b71531ad
VZ
206!endif
207!if "$(USE_EXCEPTIONS)" == "0"
208__EXCEPTIONSFLAG_0 =
209!endif
210!if "$(USE_EXCEPTIONS)" == "1"
b17c1746 211__EXCEPTIONSFLAG_0 = /GX
250700e4 212!endif
ec08d395
JS
213!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
214__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
215!endif
216!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
217__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
218!endif
219!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
220__NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
221!endif
222!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
223__NO_VC_CRTDBG_p_0 = /d __NO_VC_CRTDBG__
224!endif
b17c1746
DE
225!if "$(WXUNIV)" == "1"
226__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
250700e4 227!endif
b17c1746
DE
228!if "$(WXUNIV)" == "1"
229__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
250700e4 230!endif
b17c1746
DE
231!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
232__DEBUG_DEFINE_p = /D__WXDEBUG__
250700e4 233!endif
b17c1746
DE
234!if "$(DEBUG_FLAG)" == "1"
235__DEBUG_DEFINE_p = /D__WXDEBUG__
236!endif
237!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
238__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
239!endif
240!if "$(DEBUG_FLAG)" == "1"
241__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
0706fb23
VS
242!endif
243!if "$(UNICODE)" == "1"
ec08d395 244__UNICODE_DEFINE_p = /D_UNICODE
0706fb23
VS
245!endif
246!if "$(UNICODE)" == "1"
ec08d395 247__UNICODE_DEFINE_p_0 = /d _UNICODE
0706fb23 248!endif
b17c1746
DE
249!if "$(SHARED)" == "1"
250__DLLFLAG_p = /DWXUSINGDLL
251!endif
252!if "$(SHARED)" == "1"
253__DLLFLAG_p_0 = /d WXUSINGDLL
0706fb23
VS
254!endif
255!if "$(MONOLITHIC)" == "0"
e9877ed3 256__WXLIB_CORE_p = \
c33fae85 257 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
0706fb23 258!endif
e9877ed3 259!if "$(MONOLITHIC)" == "0"
c33fae85
RN
260__WXLIB_NET_p = \
261 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
0706fb23 262!endif
b17c1746 263!if "$(MONOLITHIC)" == "0"
c33fae85
RN
264__WXLIB_BASE_p = \
265 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
25a73439 266!endif
b17c1746
DE
267!if "$(MONOLITHIC)" == "1"
268__WXLIB_MONO_p = \
c33fae85 269 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
25a73439 270!endif
b17c1746 271!if "$(USE_GUI)" == "1"
9c2d002b 272__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
25a73439 273!endif
b17c1746 274!if "$(USE_GUI)" == "1"
9c2d002b 275__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
25a73439 276!endif
b17c1746 277!if "$(USE_GUI)" == "1"
9c2d002b 278__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
25a73439 279!endif
b17c1746
DE
280!if "$(MSLU)" == "1"
281__UNICOWS_LIB_p = unicows.lib
bdc408c4 282!endif
0706fb23
VS
283
284
285all: $(OBJS)
286$(OBJS):
287 -if not exist $(OBJS) mkdir $(OBJS)
288
289### Targets: ###
290
250700e4
RD
291all: $(OBJS)\client.exe $(OBJS)\server.exe
292
0706fb23
VS
293clean:
294 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
295 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 296 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
250700e4 297 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
ec08d395
JS
298 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
299 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
250700e4 300 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
ec08d395
JS
301 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
302 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
0706fb23 303
e9877ed3 304$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
75a0a7b7 305 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
dd65d8c8 306 $(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
0706fb23
VS
307<<
308
e9877ed3 309$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
75a0a7b7 310 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
dd65d8c8 311 $(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
250700e4 312<<
b17c1746
DE
313
314$(OBJS)\client_client.obj: .\client.cpp
315 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
316
317$(OBJS)\client_client.res: .\client.rc
b14abf14 318 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 /d NOPCH $**
b17c1746
DE
319
320$(OBJS)\server_server.obj: .\server.cpp
321 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
322
323$(OBJS)\server_server.res: .\server.rc
b14abf14
JS
324 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 /d NOPCH $**
325