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