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