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