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