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