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