1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.6 (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: ###
43 !ifeq DEBUG_FLAG default
78 __client___depname = $(OBJS)\client.exe
82 __server___depname = $(OBJS)\server.exe
87 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
91 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
95 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
99 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
103 !ifeq DEBUG_INFO default
108 !ifeq DEBUG_INFO default
120 !ifeq DEBUG_INFO default
121 __DEBUGINFO_3 = debug all
125 !ifeq DEBUG_INFO default
133 __DEBUGINFO_3 = debug all
140 __OPTIMIZEFLAG = -ot -ox
150 !ifeq RUNTIME_LIBS dynamic
153 !ifeq RUNTIME_LIBS static
164 !ifeq USE_EXCEPTIONS 0
167 !ifeq USE_EXCEPTIONS 1
168 __EXCEPTIONSFLAG = -xs
172 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
176 !ifeq DEBUG_FLAG default
177 __DEBUG_DEFINE_p = -d__WXDEBUG__
181 __DEBUG_DEFINE_p = -d__WXDEBUG__
183 __EXCEPTIONS_DEFINE_p =
184 !ifeq USE_EXCEPTIONS 0
185 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
189 __RTTI_DEFINE_p = -dwxNO_RTTI
193 __THREAD_DEFINE_p = -dwxNO_THREADS
197 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
200 __UNICODE_DEFINE_p = -d_UNICODE
204 __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
208 __DLLFLAG_p = -dWXUSINGDLL
213 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
218 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
223 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
227 __GDIPLUS_LIB_p = gdiplus.lib
232 WX_RELEASE_NODOT = 29
233 COMPILER_PREFIX = wat
235 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
236 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
238 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
239 CLIENT_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) &
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) &
247 $(OBJS)\client_client.obj
248 SERVER_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) &
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) &
256 $(OBJS)\server_server.obj
257 BASECLIENT_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)
263 BASECLIENT_OBJECTS = &
264 $(OBJS)\baseclient_baseclient.obj
265 BASESERVER_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)
271 BASESERVER_OBJECTS = &
272 $(OBJS)\baseserver_baseserver.obj
277 -if not exist $(OBJS) mkdir $(OBJS)
281 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
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
288 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
289 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
290 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
291 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
292 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
295 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_client.res
296 @%create $(OBJS)\client.lbc
297 @%append $(OBJS)\client.lbc option quiet
298 @%append $(OBJS)\client.lbc name $^@
299 @%append $(OBJS)\client.lbc option caseexact
300 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
301 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
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
303 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_client.res
304 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
305 wlink @$(OBJS)\client.lbc
309 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_server.res
310 @%create $(OBJS)\server.lbc
311 @%append $(OBJS)\server.lbc option quiet
312 @%append $(OBJS)\server.lbc name $^@
313 @%append $(OBJS)\server.lbc option caseexact
314 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
315 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
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
317 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_server.res
318 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
319 wlink @$(OBJS)\server.lbc
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
327 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
328 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
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
330 @%append $(OBJS)\baseclient.lbc
331 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
332 wlink @$(OBJS)\baseclient.lbc
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
339 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
340 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
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
342 @%append $(OBJS)\baseserver.lbc
343 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
344 wlink @$(OBJS)\baseserver.lbc
346 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
347 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
349 $(OBJS)\client_client.res : .AUTODEPEND .\client.rc
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 $<
352 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
353 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
355 $(OBJS)\server_server.res : .AUTODEPEND .\server.rc
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 $<
358 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
359 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
361 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
362 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<