]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.vc
expat must be added to the template, not generated wxWindows.dsp
[wxWidgets.git] / samples / sockets / makefile.vc
CommitLineData
0706fb23
VS
1# =========================================================================
2# This makefile was generated by
f509d00d 3# Bakefile 0.1.1 (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
25a73439
VS
15CLIENT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
16 $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \
17 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
18 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
19 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
4e209a20
VS
20 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
21 $(CXXFLAGS)
e9877ed3
VS
22CLIENT_OBJECTS = \
23 $(OBJS)\client_client.obj \
24 $(OBJS)\client_client.res
25LIBDIRNAME = \
26 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27OBJS = \
28 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25a73439
VS
29SERVER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) /DWIN32 \
30 $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_12_p) \
31 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
33 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
4e209a20
VS
34 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
35 $(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
54!if "$(SHARED)" == "1"
55WXDLLFLAG = dll
56!endif
57!if "$(UNICODE)" == "1"
58WXUNICODEFLAG = u
59!endif
60!if "$(WXUNIV)" == "1"
61WXUNIVNAME = univ
62!endif
25a73439
VS
63!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64__DEBUGINFO = /Zi
250700e4 65!endif
25a73439
VS
66!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67__DEBUGINFO =
250700e4 68!endif
25a73439
VS
69!if "$(DEBUG_INFO)" == "0"
70__DEBUGINFO =
250700e4 71!endif
25a73439
VS
72!if "$(DEBUG_INFO)" == "1"
73__DEBUGINFO = /Zi
250700e4 74!endif
25a73439
VS
75!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
76__DEBUGINFO_1 = /DEBUG
250700e4 77!endif
25a73439
VS
78!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79__DEBUGINFO_1 =
250700e4 80!endif
25a73439
VS
81!if "$(DEBUG_INFO)" == "0"
82__DEBUGINFO_1 =
83!endif
84!if "$(DEBUG_INFO)" == "1"
85__DEBUGINFO_1 = /DEBUG
86!endif
87!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
88__DEBUGINFO_2 = d
89!endif
90!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
91__DEBUGINFO_2 =
92!endif
93!if "$(DEBUG_INFO)" == "0"
94__DEBUGINFO_2 =
95!endif
96!if "$(DEBUG_INFO)" == "1"
97__DEBUGINFO_2 = d
98!endif
99!if "$(DEBUG_RUNTIME_LIBS)" == "0"
100__DEBUGRUNTIME_13 =
101!endif
102!if "$(DEBUG_RUNTIME_LIBS)" == "1"
103__DEBUGRUNTIME_13 = d
104!endif
105!if "$(DEBUG_RUNTIME_LIBS)" == "default"
106__DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
107!endif
108!if "$(DEBUG_RUNTIME_LIBS)" == "0"
109__DEBUGRUNTIME_3 =
110!endif
111!if "$(DEBUG_RUNTIME_LIBS)" == "1"
112__DEBUGRUNTIME_3 = d
113!endif
114!if "$(DEBUG_RUNTIME_LIBS)" == "default"
115__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
116!endif
117!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
0706fb23
VS
118__DEBUG_DEFINE_p = /D__WXDEBUG__
119!endif
25a73439
VS
120!if "$(DEBUG_FLAG)" == "1"
121__DEBUG_DEFINE_p = /D__WXDEBUG__
122!endif
123!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
124__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
125!endif
126!if "$(DEBUG_FLAG)" == "1"
e9877ed3 127__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
0706fb23
VS
128!endif
129!if "$(SHARED)" == "1"
130__DLLFLAG_p = /DWXUSINGDLL
131!endif
132!if "$(SHARED)" == "1"
e9877ed3
VS
133__DLLFLAG_p_0 = /d WXUSINGDLL
134!endif
135!if "$(USE_GUI)" == "1"
136__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
137!endif
138!if "$(USE_GUI)" == "1"
139__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
140!endif
141!if "$(USE_GUI)" == "1"
142__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
250700e4
RD
143!endif
144!if "$(BUILD)" == "debug"
145__OPTIMIZEFLAG = /Od
146!endif
147!if "$(BUILD)" == "release"
148__OPTIMIZEFLAG = /O2
149!endif
150!if "$(RUNTIME_LIBS)" == "dynamic"
151__RUNTIME_LIBS = D
152!endif
153!if "$(RUNTIME_LIBS)" == "static"
f509d00d 154__RUNTIME_LIBS = T
0706fb23
VS
155!endif
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
158!endif
159!if "$(UNICODE)" == "1"
e9877ed3 160__UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1
0706fb23 161!endif
4e209a20
VS
162!if "$(MSLU)" == "1"
163__UNICOWS_LIB_p = unicows.lib
164!endif
0706fb23
VS
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
167!endif
168!if "$(MONOLITHIC)" == "0"
e9877ed3
VS
169__WXLIB_CORE_p = \
170 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
0706fb23
VS
171!endif
172!if "$(MONOLITHIC)" == "1"
e9877ed3
VS
173__WXLIB_MONO_p = \
174 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
175!endif
176!if "$(MONOLITHIC)" == "0"
177__WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
0706fb23
VS
178!endif
179!if "$(WXUNIV)" == "1"
180__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
181!endif
182!if "$(WXUNIV)" == "1"
e9877ed3 183__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
0706fb23 184!endif
25a73439
VS
185!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186____DEBUGINFO = /d _DEBUG
bdc408c4 187!endif
25a73439 188!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 189____DEBUGINFO =
bdc408c4 190!endif
25a73439 191!if "$(DEBUG_INFO)" == "0"
fd9f42b6 192____DEBUGINFO =
bdc408c4 193!endif
25a73439
VS
194!if "$(DEBUG_INFO)" == "1"
195____DEBUGINFO = /d _DEBUG
196!endif
197!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
198____DEBUGINFO_0 = /D_DEBUG
199!endif
200!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
fd9f42b6 201____DEBUGINFO_0 =
25a73439
VS
202!endif
203!if "$(DEBUG_INFO)" == "0"
fd9f42b6 204____DEBUGINFO_0 =
25a73439
VS
205!endif
206!if "$(DEBUG_INFO)" == "1"
207____DEBUGINFO_0 = /D_DEBUG
208!endif
209!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 210____DEBUGRUNTIME_12_p =
25a73439
VS
211!endif
212!if "$(DEBUG_RUNTIME_LIBS)" == "1"
213____DEBUGRUNTIME_12_p = /D_DEBUG
214!endif
215!if "$(DEBUG_RUNTIME_LIBS)" == "default"
216____DEBUGRUNTIME_12_p = $(____DEBUGINFO_0)
217!endif
218!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 219____DEBUGRUNTIME_12_p_1 =
25a73439
VS
220!endif
221!if "$(DEBUG_RUNTIME_LIBS)" == "1"
222____DEBUGRUNTIME_12_p_1 = /d _DEBUG
223!endif
224!if "$(DEBUG_RUNTIME_LIBS)" == "default"
225____DEBUGRUNTIME_12_p_1 = $(____DEBUGINFO)
226!endif
227!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 228____DEBUGRUNTIME_2_p =
25a73439
VS
229!endif
230!if "$(DEBUG_RUNTIME_LIBS)" == "1"
231____DEBUGRUNTIME_2_p = /D_DEBUG
232!endif
233!if "$(DEBUG_RUNTIME_LIBS)" == "default"
234____DEBUGRUNTIME_2_p = $(____DEBUGINFO_0)
235!endif
236!if "$(DEBUG_RUNTIME_LIBS)" == "0"
fd9f42b6 237____DEBUGRUNTIME_2_p_1 =
25a73439
VS
238!endif
239!if "$(DEBUG_RUNTIME_LIBS)" == "1"
240____DEBUGRUNTIME_2_p_1 = /d _DEBUG
241!endif
242!if "$(DEBUG_RUNTIME_LIBS)" == "default"
243____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO)
bdc408c4 244!endif
0706fb23
VS
245
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
250700e4
RD
253all: $(OBJS)\client.exe $(OBJS)\server.exe
254
255$(OBJS)\client_client.obj: .\client.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
257
258$(OBJS)\client_client.res: .\client.rc
4e209a20 259 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS /i ..\..\samples $**
0706fb23 260
250700e4
RD
261$(OBJS)\server_server.obj: .\server.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
0706fb23 263
250700e4 264$(OBJS)\server_server.res: .\server.rc
4e209a20 265 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_12_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_0) /d _WINDOWS /i ..\..\samples $**
0706fb23
VS
266
267clean:
268 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
269 -if exist $(OBJS)\*.res del $(OBJS)\*.res
250700e4
RD
270 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
271 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
0706fb23 272
e9877ed3 273$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
25a73439 274 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
4e209a20 275 $(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 odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
0706fb23
VS
276<<
277
e9877ed3 278$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
25a73439 279 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
4e209a20 280 $(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 odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
250700e4 281<<