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