]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/sockets/makefile.vc
part of Ictrl -> Iscntrl change I forgot to commit (not important, anyhow)
[wxWidgets.git] / samples / sockets / makefile.vc
... / ...
CommitLineData
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
15OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19CLIENT_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)
25CLIENT_OBJECTS = \
26 $(OBJS)\client_client.obj \
27 $(OBJS)\client_client.res
28SERVER_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)
34SERVER_OBJECTS = \
35 $(OBJS)\server_server.obj \
36 $(OBJS)\server_server.res
37
38### Conditionally set variables: ###
39
40!if "$(USE_GUI)" == "0"
41PORTNAME = base
42!endif
43!if "$(USE_GUI)" == "1"
44PORTNAME = msw
45!endif
46!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47WXDEBUGFLAG = d
48!endif
49!if "$(DEBUG_FLAG)" == "1"
50WXDEBUGFLAG = d
51!endif
52!if "$(UNICODE)" == "1"
53WXUNICODEFLAG = u
54!endif
55!if "$(WXUNIV)" == "1"
56WXUNIVNAME = univ
57!endif
58!if "$(SHARED)" == "1"
59WXDLLFLAG = 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"
236LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
237!endif
238!if "$(SHARED)" == "1"
239LIBDIRNAME = .\..\..\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
275all: $(OBJS)
276$(OBJS):
277 -if not exist $(OBJS) mkdir $(OBJS)
278
279### Targets: ###
280
281all: $(OBJS)\client.exe $(OBJS)\server.exe
282
283clean:
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 $**