]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.vc
Moved version number to 2.7.2.0 and rebaked
[wxWidgets.git] / samples / ipc / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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
15 WX_RELEASE_NODOT = 27
16 OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
18 LIBDIRNAME = .\..\..\lib\vc$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CLIENT_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) \
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)
29 CLIENT_OBJECTS = \
30 $(OBJS)\client_sample.res \
31 $(OBJS)\client_client.obj
32 SERVER_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) \
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)
40 SERVER_OBJECTS = \
41 $(OBJS)\server_sample.res \
42 $(OBJS)\server_server.obj
43
44 ### Conditionally set variables: ###
45
46 !if "$(USE_GUI)" == "0"
47 PORTNAME = base
48 !endif
49 !if "$(USE_GUI)" == "1"
50 PORTNAME = msw
51 !endif
52 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53 WXDEBUGFLAG = d
54 !endif
55 !if "$(DEBUG_FLAG)" == "1"
56 WXDEBUGFLAG = d
57 !endif
58 !if "$(UNICODE)" == "1"
59 WXUNICODEFLAG = u
60 !endif
61 !if "$(WXUNIV)" == "1"
62 WXUNIVNAME = univ
63 !endif
64 !if "$(TARGET_CPU)" == "amd64"
65 DIR_SUFFIX_CPU = _amd64
66 !endif
67 !if "$(TARGET_CPU)" == "amd64"
68 DIR_SUFFIX_CPU = _amd64
69 !endif
70 !if "$(TARGET_CPU)" == "ia64"
71 DIR_SUFFIX_CPU = _ia64
72 !endif
73 !if "$(TARGET_CPU)" == "ia64"
74 DIR_SUFFIX_CPU = _ia64
75 !endif
76 !if "$(SHARED)" == "1"
77 WXDLLFLAG = dll
78 !endif
79 !if "$(SHARED)" == "0"
80 LIBTYPE_SUFFIX = lib
81 !endif
82 !if "$(SHARED)" == "1"
83 LIBTYPE_SUFFIX = dll
84 !endif
85 !if "$(TARGET_CPU)" == "amd64"
86 LINK_TARGET_CPU = /MACHINE:AMD64
87 !endif
88 !if "$(TARGET_CPU)" == "amd64"
89 LINK_TARGET_CPU = /MACHINE:AMD64
90 !endif
91 !if "$(TARGET_CPU)" == "ia64"
92 LINK_TARGET_CPU = /MACHINE:IA64
93 !endif
94 !if "$(TARGET_CPU)" == "ia64"
95 LINK_TARGET_CPU = /MACHINE:IA64
96 !endif
97 !if "$(MONOLITHIC)" == "0"
98 EXTRALIBS_FOR_BASE =
99 !endif
100 !if "$(MONOLITHIC)" == "1"
101 EXTRALIBS_FOR_BASE =
102 !endif
103 !if "$(RUNTIME_LIBS)" == "dynamic"
104 __RUNTIME_LIBS_8 = D
105 !endif
106 !if "$(RUNTIME_LIBS)" == "static"
107 __RUNTIME_LIBS_8 = $(__THREADSFLAG)
108 !endif
109 !if "$(RUNTIME_LIBS)" == "dynamic"
110 __RUNTIME_LIBS_22 = D
111 !endif
112 !if "$(RUNTIME_LIBS)" == "static"
113 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
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_RUNTIME_LIBS)" == "default"
140 ____DEBUGRUNTIME = /D_DEBUG
141 !endif
142 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
143 ____DEBUGRUNTIME =
144 !endif
145 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
146 ____DEBUGRUNTIME =
147 !endif
148 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
149 ____DEBUGRUNTIME = /D_DEBUG
150 !endif
151 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
152 ____DEBUGRUNTIME_0 = /d _DEBUG
153 !endif
154 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
155 ____DEBUGRUNTIME_0 =
156 !endif
157 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
158 ____DEBUGRUNTIME_0 =
159 !endif
160 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
161 ____DEBUGRUNTIME_0 = /d _DEBUG
162 !endif
163 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
164 __DEBUGRUNTIME = d
165 !endif
166 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
167 __DEBUGRUNTIME =
168 !endif
169 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
170 __DEBUGRUNTIME =
171 !endif
172 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
173 __DEBUGRUNTIME = d
174 !endif
175 !if "$(BUILD)" == "debug"
176 __OPTIMIZEFLAG = /Od
177 !endif
178 !if "$(BUILD)" == "release"
179 __OPTIMIZEFLAG = /O2
180 !endif
181 !if "$(USE_THREADS)" == "0"
182 __THREADSFLAG = L
183 !endif
184 !if "$(USE_THREADS)" == "1"
185 __THREADSFLAG = T
186 !endif
187 !if "$(USE_RTTI)" == "0"
188 __RTTIFLAG =
189 !endif
190 !if "$(USE_RTTI)" == "1"
191 __RTTIFLAG = /GR
192 !endif
193 !if "$(USE_EXCEPTIONS)" == "0"
194 __EXCEPTIONSFLAG =
195 !endif
196 !if "$(USE_EXCEPTIONS)" == "1"
197 __EXCEPTIONSFLAG = /EHsc
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 "$(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
247 !if "$(UNICODE)" == "1"
248 __UNICODE_DEFINE_p = /D_UNICODE
249 !endif
250 !if "$(UNICODE)" == "1"
251 __UNICODE_DEFINE_p_0 = /d _UNICODE
252 !endif
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
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
265 !if "$(SHARED)" == "1"
266 __DLLFLAG_p = /DWXUSINGDLL
267 !endif
268 !if "$(SHARED)" == "1"
269 __DLLFLAG_p_0 = /d WXUSINGDLL
270 !endif
271 !if "$(MONOLITHIC)" == "0"
272 __WXLIB_CORE_p = \
273 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
274 !endif
275 !if "$(MONOLITHIC)" == "0"
276 __WXLIB_NET_p = \
277 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
278 !endif
279 !if "$(MONOLITHIC)" == "0"
280 __WXLIB_BASE_p = \
281 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
282 !endif
283 !if "$(MONOLITHIC)" == "1"
284 __WXLIB_MONO_p = \
285 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
286 !endif
287 !if "$(USE_GUI)" == "1"
288 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
289 !endif
290 !if "$(USE_GUI)" == "1"
291 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
292 !endif
293 !if "$(USE_GUI)" == "1"
294 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
295 !endif
296 !if "$(MSLU)" == "1"
297 __UNICOWS_LIB_p = unicows.lib
298 !endif
299 !if "$(USE_GDIPLUS)" == "1"
300 __GDIPLUS_LIB_p = gdiplus.lib
301 !endif
302
303
304 all: $(OBJS)
305 $(OBJS):
306 -if not exist $(OBJS) mkdir $(OBJS)
307
308 ### Targets: ###
309
310 all: $(OBJS)\client.exe $(OBJS)\server.exe
311
312 clean:
313 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
314 -if exist $(OBJS)\*.res del $(OBJS)\*.res
315 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
316 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
317 -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk
318 -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb
319 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
320 -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk
321 -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb
322
323 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
324 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
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
326 <<
327
328 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
329 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
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
331 <<
332
333 $(OBJS)\client_sample.res: .\..\..\samples\sample.rc
334 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 $**
335
336 $(OBJS)\client_client.obj: .\client.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $**
338
339 $(OBJS)\server_sample.res: .\..\..\samples\sample.rc
340 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 $**
341
342 $(OBJS)\server_server.obj: .\server.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $**
344