]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.wat
Correct bug with items without attributes in wxGTK wxDVC.
[wxWidgets.git] / samples / sockets / makefile.wat
CommitLineData
d5e7ffcf
KO
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.6 (http://www.bakefile.org)\r
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7!include ../../build/msw/config.wat\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13# Speed up compilation a bit:\r
14!ifdef __LOADDLL__\r
15! loaddll wcc wccd\r
16! loaddll wccaxp wccdaxp\r
17! loaddll wcc386 wccd386\r
18! loaddll wpp wppdi86\r
19! loaddll wppaxp wppdaxp\r
20! loaddll wpp386 wppd386\r
21! if $(__VERSION__) >= 1280\r
22! loaddll wlink wlinkd\r
23! else\r
24! loaddll wlink wlink\r
25! endif\r
26! loaddll wlib wlibd\r
27!endif\r
28\r
29# We need these variables in some bakefile-made rules:\r
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r
31\r
32### Conditionally set variables: ###\r
33\r
34PORTNAME =\r
35!ifeq USE_GUI 0\r
36PORTNAME = base\r
37!endif\r
38!ifeq USE_GUI 1\r
39PORTNAME = msw\r
40!endif\r
41WXDEBUGFLAG =\r
42!ifeq BUILD debug\r
43WXDEBUGFLAG = d\r
44!endif\r
45WXUNICODEFLAG =\r
46!ifeq UNICODE 1\r
47WXUNICODEFLAG = u\r
48!endif\r
49WXUNIVNAME =\r
50!ifeq WXUNIV 1\r
51WXUNIVNAME = univ\r
52!endif\r
53WXDLLFLAG =\r
54!ifeq SHARED 1\r
55WXDLLFLAG = dll\r
56!endif\r
57LIBTYPE_SUFFIX =\r
58!ifeq SHARED 0\r
59LIBTYPE_SUFFIX = lib\r
60!endif\r
61!ifeq SHARED 1\r
62LIBTYPE_SUFFIX = dll\r
63!endif\r
64EXTRALIBS_FOR_BASE =\r
65!ifeq MONOLITHIC 0\r
66EXTRALIBS_FOR_BASE = \r
67!endif\r
68!ifeq MONOLITHIC 1\r
69EXTRALIBS_FOR_BASE = \r
70!endif\r
71__client___depname =\r
72!ifeq USE_GUI 1\r
73__client___depname = $(OBJS)\client.exe\r
74!endif\r
75__server___depname =\r
76!ifeq USE_GUI 1\r
77__server___depname = $(OBJS)\server.exe\r
78!endif\r
79__WXLIB_CORE_p =\r
80!ifeq MONOLITHIC 0\r
81__WXLIB_CORE_p = &\r
82 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
83!endif\r
84__LIB_TIFF_p =\r
85!ifeq USE_GUI 1\r
86__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
87!endif\r
88__LIB_JPEG_p =\r
89!ifeq USE_GUI 1\r
90__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
91!endif\r
92__LIB_PNG_p =\r
93!ifeq USE_GUI 1\r
94__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
95!endif\r
96__DEBUGINFO =\r
97!ifeq BUILD debug\r
98!ifeq DEBUG_INFO default\r
99__DEBUGINFO = -d2\r
100!endif\r
101!endif\r
102!ifeq BUILD release\r
103!ifeq DEBUG_INFO default\r
104__DEBUGINFO = -d0\r
105!endif\r
106!endif\r
107!ifeq DEBUG_INFO 0\r
108__DEBUGINFO = -d0\r
109!endif\r
110!ifeq DEBUG_INFO 1\r
111__DEBUGINFO = -d2\r
112!endif\r
113__DEBUGINFO_3 =\r
114!ifeq BUILD debug\r
115!ifeq DEBUG_INFO default\r
116__DEBUGINFO_3 = debug all\r
117!endif\r
118!endif\r
119!ifeq BUILD release\r
120!ifeq DEBUG_INFO default\r
121__DEBUGINFO_3 = \r
122!endif\r
123!endif\r
124!ifeq DEBUG_INFO 0\r
125__DEBUGINFO_3 = \r
126!endif\r
127!ifeq DEBUG_INFO 1\r
128__DEBUGINFO_3 = debug all\r
129!endif\r
130__OPTIMIZEFLAG =\r
131!ifeq BUILD debug\r
132__OPTIMIZEFLAG = -od\r
133!endif\r
134!ifeq BUILD release\r
135__OPTIMIZEFLAG = -ot -ox\r
136!endif\r
137__THREADSFLAG =\r
138!ifeq USE_THREADS 0\r
139__THREADSFLAG = \r
140!endif\r
141!ifeq USE_THREADS 1\r
142__THREADSFLAG = -bm\r
143!endif\r
144__RUNTIME_LIBS =\r
145!ifeq RUNTIME_LIBS dynamic\r
146__RUNTIME_LIBS = -br\r
147!endif\r
148!ifeq RUNTIME_LIBS static\r
149__RUNTIME_LIBS = \r
150!endif\r
151__RTTIFLAG =\r
152!ifeq USE_RTTI 0\r
153__RTTIFLAG = \r
154!endif\r
155!ifeq USE_RTTI 1\r
156__RTTIFLAG = -xr\r
157!endif\r
158__EXCEPTIONSFLAG =\r
159!ifeq USE_EXCEPTIONS 0\r
160__EXCEPTIONSFLAG = \r
161!endif\r
162!ifeq USE_EXCEPTIONS 1\r
163__EXCEPTIONSFLAG = -xs\r
164!endif\r
165__WXUNIV_DEFINE_p =\r
166!ifeq WXUNIV 1\r
167__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
168!endif\r
169__DEBUG_DEFINE_p =\r
170!ifeq DEBUG_FLAG 0\r
171__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
172!endif\r
173__EXCEPTIONS_DEFINE_p =\r
174!ifeq USE_EXCEPTIONS 0\r
175__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
176!endif\r
177__RTTI_DEFINE_p =\r
178!ifeq USE_RTTI 0\r
179__RTTI_DEFINE_p = -dwxNO_RTTI\r
180!endif\r
181__THREAD_DEFINE_p =\r
182!ifeq USE_THREADS 0\r
183__THREAD_DEFINE_p = -dwxNO_THREADS\r
184!endif\r
185__UNICODE_DEFINE_p =\r
186!ifeq UNICODE 0\r
187__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
188!endif\r
189!ifeq UNICODE 1\r
190__UNICODE_DEFINE_p = -d_UNICODE\r
191!endif\r
192__GFXCTX_DEFINE_p =\r
193!ifeq USE_GDIPLUS 1\r
194__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1\r
195!endif\r
196__DLLFLAG_p =\r
197!ifeq SHARED 1\r
198__DLLFLAG_p = -dWXUSINGDLL\r
199!endif\r
200__WXLIB_NET_p =\r
201!ifeq MONOLITHIC 0\r
202__WXLIB_NET_p = &\r
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib\r
204!endif\r
205__WXLIB_BASE_p =\r
206!ifeq MONOLITHIC 0\r
207__WXLIB_BASE_p = &\r
208 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
209!endif\r
210__WXLIB_MONO_p =\r
211!ifeq MONOLITHIC 1\r
212__WXLIB_MONO_p = &\r
213 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
214!endif\r
215__GDIPLUS_LIB_p =\r
216!ifeq USE_GDIPLUS 1\r
217__GDIPLUS_LIB_p = gdiplus.lib\r
218!endif\r
219\r
220### Variables: ###\r
221\r
222WX_RELEASE_NODOT = 29\r
223COMPILER_PREFIX = wat\r
224OBJS = &\r
225 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
226LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
227SETUPHDIR = &\r
228 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
229CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
230 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
231 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
232 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
233 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &\r
234 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &\r
235 $(CXXFLAGS)\r
236CLIENT_OBJECTS = &\r
237 $(OBJS)\client_client.obj\r
238SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
239 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
240 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
241 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
242 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &\r
243 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &\r
244 $(CXXFLAGS)\r
245SERVER_OBJECTS = &\r
246 $(OBJS)\server_server.obj\r
247BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
248 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
249 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
250 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
251 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &\r
252 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
253BASECLIENT_OBJECTS = &\r
254 $(OBJS)\baseclient_baseclient.obj\r
255BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
256 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
257 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &\r
258 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &\r
259 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &\r
260 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
261BASESERVER_OBJECTS = &\r
262 $(OBJS)\baseserver_baseserver.obj\r
263\r
264\r
265all : $(OBJS)\r
266$(OBJS) :\r
267 -if not exist $(OBJS) mkdir $(OBJS)\r
268\r
269### Targets: ###\r
270\r
271all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe\r
272\r
273clean : .SYMBOLIC \r
274 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
275 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
276 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
277 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
278 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
279 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe\r
280 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe\r
281 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe\r
282 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe\r
283\r
284!ifeq USE_GUI 1\r
285$(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_client.res\r
286 @%create $(OBJS)\client.lbc\r
287 @%append $(OBJS)\client.lbc option quiet\r
288 @%append $(OBJS)\client.lbc name $^@\r
289 @%append $(OBJS)\client.lbc option caseexact\r
290 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)\r
291 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i\r
292 @for %i in ( $(__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) $(__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 wininet.lib) do @%append $(OBJS)\client.lbc library %i\r
293 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_client.res\r
294 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i\r
295 wlink @$(OBJS)\client.lbc\r
296!endif\r
297\r
298!ifeq USE_GUI 1\r
299$(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_server.res\r
300 @%create $(OBJS)\server.lbc\r
301 @%append $(OBJS)\server.lbc option quiet\r
302 @%append $(OBJS)\server.lbc name $^@\r
303 @%append $(OBJS)\server.lbc option caseexact\r
304 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)\r
305 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i\r
306 @for %i in ( $(__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) $(__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 wininet.lib) do @%append $(OBJS)\server.lbc library %i\r
307 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_server.res\r
308 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i\r
309 wlink @$(OBJS)\server.lbc\r
310!endif\r
311\r
312$(OBJS)\baseclient.exe : $(BASECLIENT_OBJECTS)\r
313 @%create $(OBJS)\baseclient.lbc\r
314 @%append $(OBJS)\baseclient.lbc option quiet\r
315 @%append $(OBJS)\baseclient.lbc name $^@\r
316 @%append $(OBJS)\baseclient.lbc option caseexact\r
317 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)\r
318 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i\r
319 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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 wininet.lib) do @%append $(OBJS)\baseclient.lbc library %i\r
320 @%append $(OBJS)\baseclient.lbc\r
321 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i\r
322 wlink @$(OBJS)\baseclient.lbc\r
323\r
324$(OBJS)\baseserver.exe : $(BASESERVER_OBJECTS)\r
325 @%create $(OBJS)\baseserver.lbc\r
326 @%append $(OBJS)\baseserver.lbc option quiet\r
327 @%append $(OBJS)\baseserver.lbc name $^@\r
328 @%append $(OBJS)\baseserver.lbc option caseexact\r
329 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)\r
330 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i\r
331 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__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 wininet.lib) do @%append $(OBJS)\baseserver.lbc library %i\r
332 @%append $(OBJS)\baseserver.lbc\r
333 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i\r
334 wlink @$(OBJS)\baseserver.lbc\r
335\r
336$(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp\r
337 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<\r
338\r
339$(OBJS)\client_client.res : .AUTODEPEND .\client.rc\r
340 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<\r
341\r
342$(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp\r
343 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<\r
344\r
345$(OBJS)\server_server.res : .AUTODEPEND .\server.rc\r
346 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<\r
347\r
348$(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp\r
349 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<\r
350\r
351$(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp\r
352 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<\r
353\r