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