]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/sockets/makefile.vc
make wxrc installable
[wxWidgets.git] / samples / sockets / makefile.vc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (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
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 \
20 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
21 $(CXXFLAGS)
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)
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 \
34 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS /I..\..\samples \
35 $(CXXFLAGS)
36SERVER_OBJECTS = \
37 $(OBJS)\server_server.obj \
38 $(OBJS)\server_server.res
39
40### Conditionally set variables: ###
41
42!if "$(USE_GUI)" == "0"
43PORTNAME = base
44!endif
45!if "$(USE_GUI)" == "1"
46PORTNAME = msw
47!endif
48!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
49WXDEBUGFLAG = d
50!endif
51!if "$(DEBUG_FLAG)" == "1"
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
63!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
64__DEBUGINFO = /Zi
65!endif
66!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
67__DEBUGINFO =
68!endif
69!if "$(DEBUG_INFO)" == "0"
70__DEBUGINFO =
71!endif
72!if "$(DEBUG_INFO)" == "1"
73__DEBUGINFO = /Zi
74!endif
75!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
76__DEBUGINFO_1 = /DEBUG
77!endif
78!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
79__DEBUGINFO_1 =
80!endif
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"
118__DEBUG_DEFINE_p = /D__WXDEBUG__
119!endif
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"
127__DEBUG_DEFINE_p_0 = /d __WXDEBUG__
128!endif
129!if "$(SHARED)" == "1"
130__DLLFLAG_p = /DWXUSINGDLL
131!endif
132!if "$(SHARED)" == "1"
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
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"
154__RUNTIME_LIBS = T
155!endif
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
158!endif
159!if "$(UNICODE)" == "1"
160__UNICODE_DEFINE_p_0 = /d wxUSE_UNICODE=1
161!endif
162!if "$(MSLU)" == "1"
163__UNICOWS_LIB_p = unicows.lib
164!endif
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
167!endif
168!if "$(MONOLITHIC)" == "0"
169__WXLIB_CORE_p = \
170 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
171!endif
172!if "$(MONOLITHIC)" == "1"
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
178!endif
179!if "$(WXUNIV)" == "1"
180__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
181!endif
182!if "$(WXUNIV)" == "1"
183__WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__
184!endif
185!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186____DEBUGINFO = /d _DEBUG
187!endif
188!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
189____DEBUGINFO =
190!endif
191!if "$(DEBUG_INFO)" == "0"
192____DEBUGINFO =
193!endif
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"
201____DEBUGINFO_0 =
202!endif
203!if "$(DEBUG_INFO)" == "0"
204____DEBUGINFO_0 =
205!endif
206!if "$(DEBUG_INFO)" == "1"
207____DEBUGINFO_0 = /D_DEBUG
208!endif
209!if "$(DEBUG_RUNTIME_LIBS)" == "0"
210____DEBUGRUNTIME_12_p =
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"
219____DEBUGRUNTIME_12_p_1 =
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"
228____DEBUGRUNTIME_2_p =
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"
237____DEBUGRUNTIME_2_p_1 =
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)
244!endif
245
246
247all: $(OBJS)
248$(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251### Targets: ###
252
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
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 $**
260
261$(OBJS)\server_server.obj: .\server.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
263
264$(OBJS)\server_server.res: .\server.rc
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 $**
266
267clean:
268 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
269 -if exist $(OBJS)\*.res del $(OBJS)\*.res
270 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
271 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
272
273$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
274 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
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
276<<
277
278$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
279 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
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
281<<