1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.7 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include ../../build/msw/config.wat
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
13 # Speed up compilation a bit:
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
21 ! if $(__VERSION__) >= 1280
22 ! loaddll wlink wlinkd
29 # We need these variables in some bakefile-made rules:
30 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
32 ### Conditionally set variables: ###
73 __client___depname = $(OBJS)\client.exe
77 __server___depname = $(OBJS)\server.exe
82 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
86 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
90 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
94 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
98 !ifeq DEBUG_INFO default
103 !ifeq DEBUG_INFO default
115 !ifeq DEBUG_INFO default
116 __DEBUGINFO_3 = debug all
120 !ifeq DEBUG_INFO default
128 __DEBUGINFO_3 = debug all
135 __OPTIMIZEFLAG = -ot -ox
145 !ifeq RUNTIME_LIBS dynamic
148 !ifeq RUNTIME_LIBS static
159 !ifeq USE_EXCEPTIONS 0
162 !ifeq USE_EXCEPTIONS 1
163 __EXCEPTIONSFLAG = -xs
167 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
171 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
173 __EXCEPTIONS_DEFINE_p =
174 !ifeq USE_EXCEPTIONS 0
175 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
179 __RTTI_DEFINE_p = -dwxNO_RTTI
183 __THREAD_DEFINE_p = -dwxNO_THREADS
187 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
190 __UNICODE_DEFINE_p = -d_UNICODE
194 __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
198 __DLLFLAG_p = -dWXUSINGDLL
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
208 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
213 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
217 __GDIPLUS_LIB_p = gdiplus.lib
222 WX_RELEASE_NODOT = 29
223 COMPILER_PREFIX = wat
225 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
226 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
228 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
229 CLIENT_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) &
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) &
237 $(OBJS)\client_client.obj
238 SERVER_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) &
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) &
246 $(OBJS)\server_server.obj
247 BASECLIENT_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)
253 BASECLIENT_OBJECTS = &
254 $(OBJS)\baseclient_baseclient.obj
255 BASESERVER_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)
261 BASESERVER_OBJECTS = &
262 $(OBJS)\baseserver_baseserver.obj
267 -if not exist $(OBJS) mkdir $(OBJS)
271 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
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
278 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
279 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
280 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
281 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
282 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
285 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_client.res
286 @%create $(OBJS)\client.lbc
287 @%append $(OBJS)\client.lbc option quiet
288 @%append $(OBJS)\client.lbc name $^@
289 @%append $(OBJS)\client.lbc option caseexact
290 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
291 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
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
293 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_client.res
294 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
295 wlink @$(OBJS)\client.lbc
299 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_server.res
300 @%create $(OBJS)\server.lbc
301 @%append $(OBJS)\server.lbc option quiet
302 @%append $(OBJS)\server.lbc name $^@
303 @%append $(OBJS)\server.lbc option caseexact
304 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
305 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
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
307 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_server.res
308 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
309 wlink @$(OBJS)\server.lbc
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
317 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
318 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
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
320 @%append $(OBJS)\baseclient.lbc
321 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
322 wlink @$(OBJS)\baseclient.lbc
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
329 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
330 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
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
332 @%append $(OBJS)\baseserver.lbc
333 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
334 wlink @$(OBJS)\baseserver.lbc
336 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
337 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
339 $(OBJS)\client_client.res : .AUTODEPEND .\client.rc
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 $<
342 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
343 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
345 $(OBJS)\server_server.res : .AUTODEPEND .\server.rc
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 $<
348 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
349 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
351 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
352 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<