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