]>
Commit | Line | Data |
---|---|---|
0706fb23 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c3255f5f | 3 | # Bakefile 0.1.3 (http://bakefile.sourceforge.net) |
0706fb23 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
7921cf2b | 6 | |
fd9f42b6 | 7 | !include <../../build/msw/config.vc> |
0706fb23 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
b17c1746 DE |
15 | OBJS = \ |
16 | vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 19 | CLIENT_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \ |
b17c1746 | 20 | $(__DEBUGINFO) /Fd$(OBJS)\client.pdb $(____DEBUGRUNTIME_2_p) \ |
ec08d395 JS |
21 | $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
22 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \ | |
b17c1746 DE |
23 | /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG) \ |
24 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
25 | CLIENT_OBJECTS = \ |
26 | $(OBJS)\client_sample.res \ | |
27 | $(OBJS)\client_client.obj | |
9bfe7ad9 | 28 | SERVER_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \ |
b17c1746 | 29 | $(__DEBUGINFO) /Fd$(OBJS)\server.pdb $(____DEBUGRUNTIME_15_p) \ |
ec08d395 JS |
30 | $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \ |
31 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \ | |
b17c1746 DE |
32 | /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG) \ |
33 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
34 | SERVER_OBJECTS = \ |
35 | $(OBJS)\server_sample.res \ | |
36 | $(OBJS)\server_server.obj | |
0706fb23 VS |
37 | |
38 | ### Conditionally set variables: ### | |
39 | ||
40 | !if "$(USE_GUI)" == "0" | |
41 | PORTNAME = base | |
42 | !endif | |
43 | !if "$(USE_GUI)" == "1" | |
44 | PORTNAME = msw | |
45 | !endif | |
076f10e0 VS |
46 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
47 | WXDEBUGFLAG = d | |
48 | !endif | |
49 | !if "$(DEBUG_FLAG)" == "1" | |
0706fb23 VS |
50 | WXDEBUGFLAG = d |
51 | !endif | |
0706fb23 VS |
52 | !if "$(UNICODE)" == "1" |
53 | WXUNICODEFLAG = u | |
54 | !endif | |
55 | !if "$(WXUNIV)" == "1" | |
56 | WXUNIVNAME = univ | |
57 | !endif | |
b17c1746 DE |
58 | !if "$(SHARED)" == "1" |
59 | WXDLLFLAG = dll | |
60 | !endif | |
61 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
62 | ____DEBUGRUNTIME_2_p = | |
63 | !endif | |
64 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
65 | ____DEBUGRUNTIME_2_p = /D_DEBUG | |
66 | !endif | |
67 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
68 | ____DEBUGRUNTIME_2_p = $(____DEBUGINFO) | |
69 | !endif | |
70 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
71 | ____DEBUGRUNTIME_2_p_1 = | |
72 | !endif | |
73 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
74 | ____DEBUGRUNTIME_2_p_1 = /d _DEBUG | |
75 | !endif | |
76 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
77 | ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_0) | |
78 | !endif | |
79 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
80 | __DEBUGRUNTIME_3 = | |
81 | !endif | |
82 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
83 | __DEBUGRUNTIME_3 = d | |
84 | !endif | |
85 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
86 | __DEBUGRUNTIME_3 = $(__DEBUGINFO_2) | |
87 | !endif | |
88 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
89 | ____DEBUGRUNTIME_15_p = | |
90 | !endif | |
91 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
92 | ____DEBUGRUNTIME_15_p = /D_DEBUG | |
93 | !endif | |
94 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
95 | ____DEBUGRUNTIME_15_p = $(____DEBUGINFO) | |
96 | !endif | |
97 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
98 | ____DEBUGRUNTIME_15_p_1 = | |
99 | !endif | |
100 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
101 | ____DEBUGRUNTIME_15_p_1 = /d _DEBUG | |
102 | !endif | |
103 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
104 | ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_0) | |
105 | !endif | |
106 | !if "$(DEBUG_RUNTIME_LIBS)" == "0" | |
107 | __DEBUGRUNTIME_16 = | |
108 | !endif | |
109 | !if "$(DEBUG_RUNTIME_LIBS)" == "1" | |
110 | __DEBUGRUNTIME_16 = d | |
111 | !endif | |
112 | !if "$(DEBUG_RUNTIME_LIBS)" == "default" | |
113 | __DEBUGRUNTIME_16 = $(__DEBUGINFO_2) | |
114 | !endif | |
076f10e0 | 115 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
b17c1746 | 116 | __DEBUGINFO = /Zi |
250700e4 | 117 | !endif |
076f10e0 | 118 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
d179e30b | 119 | __DEBUGINFO = |
250700e4 | 120 | !endif |
076f10e0 | 121 | !if "$(DEBUG_INFO)" == "0" |
d179e30b | 122 | __DEBUGINFO = |
250700e4 | 123 | !endif |
076f10e0 | 124 | !if "$(DEBUG_INFO)" == "1" |
b17c1746 | 125 | __DEBUGINFO = /Zi |
250700e4 | 126 | !endif |
076f10e0 VS |
127 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
128 | __DEBUGINFO_1 = /DEBUG | |
250700e4 | 129 | !endif |
076f10e0 VS |
130 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
131 | __DEBUGINFO_1 = | |
250700e4 | 132 | !endif |
076f10e0 VS |
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_INFO)" == "default" | |
b17c1746 | 140 | ____DEBUGINFO = /D_DEBUG |
076f10e0 VS |
141 | !endif |
142 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
b17c1746 | 143 | ____DEBUGINFO = |
076f10e0 VS |
144 | !endif |
145 | !if "$(DEBUG_INFO)" == "0" | |
b17c1746 | 146 | ____DEBUGINFO = |
076f10e0 VS |
147 | !endif |
148 | !if "$(DEBUG_INFO)" == "1" | |
b17c1746 | 149 | ____DEBUGINFO = /D_DEBUG |
d179e30b | 150 | !endif |
b17c1746 DE |
151 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
152 | ____DEBUGINFO_0 = /d _DEBUG | |
d179e30b | 153 | !endif |
b17c1746 DE |
154 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
155 | ____DEBUGINFO_0 = | |
d179e30b | 156 | !endif |
b17c1746 DE |
157 | !if "$(DEBUG_INFO)" == "0" |
158 | ____DEBUGINFO_0 = | |
076f10e0 | 159 | !endif |
b17c1746 DE |
160 | !if "$(DEBUG_INFO)" == "1" |
161 | ____DEBUGINFO_0 = /d _DEBUG | |
076f10e0 | 162 | !endif |
b17c1746 DE |
163 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
164 | __DEBUGINFO_2 = d | |
076f10e0 | 165 | !endif |
b17c1746 DE |
166 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
167 | __DEBUGINFO_2 = | |
076f10e0 | 168 | !endif |
b17c1746 DE |
169 | !if "$(DEBUG_INFO)" == "0" |
170 | __DEBUGINFO_2 = | |
0706fb23 | 171 | !endif |
b17c1746 DE |
172 | !if "$(DEBUG_INFO)" == "1" |
173 | __DEBUGINFO_2 = d | |
076f10e0 | 174 | !endif |
b17c1746 DE |
175 | !if "$(BUILD)" == "debug" |
176 | __OPTIMIZEFLAG = /Od | |
076f10e0 | 177 | !endif |
b17c1746 DE |
178 | !if "$(BUILD)" == "release" |
179 | __OPTIMIZEFLAG = /O2 | |
0706fb23 | 180 | !endif |
b17c1746 DE |
181 | !if "$(RUNTIME_LIBS)" == "dynamic" |
182 | __RUNTIME_LIBS = D | |
0706fb23 | 183 | !endif |
b17c1746 DE |
184 | !if "$(RUNTIME_LIBS)" == "static" |
185 | __RUNTIME_LIBS = T | |
076f10e0 | 186 | !endif |
b71531ad VZ |
187 | !if "$(USE_EXCEPTIONS)" == "0" |
188 | __EXCEPTIONSFLAG = | |
189 | !endif | |
190 | !if "$(USE_EXCEPTIONS)" == "1" | |
b17c1746 | 191 | __EXCEPTIONSFLAG = /GR |
b71531ad VZ |
192 | !endif |
193 | !if "$(USE_EXCEPTIONS)" == "0" | |
194 | __EXCEPTIONSFLAG_0 = | |
195 | !endif | |
196 | !if "$(USE_EXCEPTIONS)" == "1" | |
b17c1746 | 197 | __EXCEPTIONSFLAG_0 = /GX |
0706fb23 | 198 | !endif |
ec08d395 JS |
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 | |
b17c1746 DE |
211 | !if "$(WXUNIV)" == "1" |
212 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__ | |
250700e4 | 213 | !endif |
b17c1746 DE |
214 | !if "$(WXUNIV)" == "1" |
215 | __WXUNIV_DEFINE_p_0 = /d __WXUNIVERSAL__ | |
250700e4 | 216 | !endif |
b17c1746 DE |
217 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
218 | __DEBUG_DEFINE_p = /D__WXDEBUG__ | |
250700e4 | 219 | !endif |
b17c1746 DE |
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__ | |
250700e4 | 228 | !endif |
0706fb23 | 229 | !if "$(UNICODE)" == "1" |
ec08d395 | 230 | __UNICODE_DEFINE_p = /D_UNICODE |
0706fb23 VS |
231 | !endif |
232 | !if "$(UNICODE)" == "1" | |
ec08d395 | 233 | __UNICODE_DEFINE_p_0 = /d _UNICODE |
0706fb23 | 234 | !endif |
b17c1746 DE |
235 | !if "$(SHARED)" == "0" |
236 | LIBDIRNAME = .\..\..\lib\vc_lib$(CFG) | |
4e209a20 | 237 | !endif |
b17c1746 DE |
238 | !if "$(SHARED)" == "1" |
239 | LIBDIRNAME = .\..\..\lib\vc_dll$(CFG) | |
240 | !endif | |
241 | !if "$(SHARED)" == "1" | |
242 | __DLLFLAG_p = /DWXUSINGDLL | |
243 | !endif | |
244 | !if "$(SHARED)" == "1" | |
245 | __DLLFLAG_p_0 = /d WXUSINGDLL | |
0706fb23 VS |
246 | !endif |
247 | !if "$(MONOLITHIC)" == "0" | |
076f10e0 VS |
248 | __WXLIB_CORE_p = \ |
249 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
0706fb23 | 250 | !endif |
d179e30b VS |
251 | !if "$(MONOLITHIC)" == "0" |
252 | __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib | |
253 | !endif | |
b17c1746 DE |
254 | !if "$(MONOLITHIC)" == "0" |
255 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
076f10e0 | 256 | !endif |
b17c1746 DE |
257 | !if "$(MONOLITHIC)" == "1" |
258 | __WXLIB_MONO_p = \ | |
259 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
076f10e0 | 260 | !endif |
b17c1746 DE |
261 | !if "$(USE_GUI)" == "1" |
262 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
076f10e0 | 263 | !endif |
b17c1746 DE |
264 | !if "$(USE_GUI)" == "1" |
265 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
076f10e0 | 266 | !endif |
b17c1746 DE |
267 | !if "$(USE_GUI)" == "1" |
268 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
076f10e0 | 269 | !endif |
b17c1746 DE |
270 | !if "$(MSLU)" == "1" |
271 | __UNICOWS_LIB_p = unicows.lib | |
bdc408c4 | 272 | !endif |
0706fb23 VS |
273 | |
274 | ||
275 | all: $(OBJS) | |
276 | $(OBJS): | |
277 | -if not exist $(OBJS) mkdir $(OBJS) | |
278 | ||
279 | ### Targets: ### | |
280 | ||
d179e30b VS |
281 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
282 | ||
0706fb23 VS |
283 | clean: |
284 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
285 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
d179e30b | 286 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
ec08d395 JS |
287 | -if exist $(OBJS)\client.ilk del $(OBJS)\client.ilk |
288 | -if exist $(OBJS)\client.pdb del $(OBJS)\client.pdb | |
d179e30b | 289 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe |
ec08d395 JS |
290 | -if exist $(OBJS)\server.ilk del $(OBJS)\server.ilk |
291 | -if exist $(OBJS)\server.pdb del $(OBJS)\server.pdb | |
d179e30b VS |
292 | |
293 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res | |
75a0a7b7 | 294 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<< |
b92ca8cf | 295 | $(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 $(__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 |
d179e30b | 296 | << |
0706fb23 | 297 | |
d179e30b | 298 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res |
75a0a7b7 | 299 | link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<< |
b92ca8cf | 300 | $(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 $(__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 |
0706fb23 | 301 | << |
b17c1746 DE |
302 | |
303 | $(OBJS)\client_sample.res: .\..\..\samples\sample.rc | |
304 | 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 $** | |
305 | ||
306 | $(OBJS)\client_client.obj: .\client.cpp | |
307 | $(CXX) /c /nologo /TP /Fo$@ $(CLIENT_CXXFLAGS) $** | |
308 | ||
309 | $(OBJS)\server_sample.res: .\..\..\samples\sample.rc | |
310 | 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 $** | |
311 | ||
312 | $(OBJS)\server_server.obj: .\server.cpp | |
313 | $(CXX) /c /nologo /TP /Fo$@ $(SERVER_CXXFLAGS) $** |