1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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: ###
39 PORTNAME = msw$(TOOLKIT_VERSION)
42 !ifeq OFFICIAL_BUILD 1
43 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
77 __client___depname = $(OBJS)\client.exe
81 __server___depname = $(OBJS)\server.exe
85 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
87 __LIB_PNG_IF_MONO_p_1 =
89 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
94 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
96 __LIB_SCINTILLA_IF_MONO_p =
98 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
102 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
106 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
110 !ifeq DEBUG_INFO default
115 !ifeq DEBUG_INFO default
127 !ifeq DEBUG_INFO default
128 __DEBUGINFO_3 = debug all
132 !ifeq DEBUG_INFO default
140 __DEBUGINFO_3 = debug all
147 __OPTIMIZEFLAG = -ot -ox
157 !ifeq RUNTIME_LIBS dynamic
160 !ifeq RUNTIME_LIBS static
171 !ifeq USE_EXCEPTIONS 0
174 !ifeq USE_EXCEPTIONS 1
175 __EXCEPTIONSFLAG = -xs
179 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
183 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
187 __NDEBUG_DEFINE_p = -dNDEBUG
189 __EXCEPTIONS_DEFINE_p =
190 !ifeq USE_EXCEPTIONS 0
191 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
195 __RTTI_DEFINE_p = -dwxNO_RTTI
199 __THREAD_DEFINE_p = -dwxNO_THREADS
203 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
206 __UNICODE_DEFINE_p = -d_UNICODE
208 ____CAIRO_INCLUDEDIR_FILENAMES =
210 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
214 __DLLFLAG_p = -dWXUSINGDLL
219 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
224 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
229 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
233 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
237 __CAIRO_LIB_p = cairo.lib
239 ____CAIRO_LIBDIR_FILENAMES =
241 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
246 WX_RELEASE_NODOT = 29
247 COMPILER_PREFIX = wat
249 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
251 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
253 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
254 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
255 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
256 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
257 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
258 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
259 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
260 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
262 $(OBJS)\client_client.obj
263 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
264 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
265 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
266 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
267 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
268 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
269 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
271 $(OBJS)\server_server.obj
272 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
273 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
274 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
275 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
276 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
277 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
278 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
279 BASECLIENT_OBJECTS = &
280 $(OBJS)\baseclient_baseclient.obj
281 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
282 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
283 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
284 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
285 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
286 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
287 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
288 BASESERVER_OBJECTS = &
289 $(OBJS)\baseserver_baseserver.obj
294 -if not exist $(OBJS) mkdir $(OBJS)
298 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
301 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
302 -if exist $(OBJS)\*.res del $(OBJS)\*.res
303 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
304 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
305 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
306 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
307 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
308 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
309 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
312 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
313 @%create $(OBJS)\client.lbc
314 @%append $(OBJS)\client.lbc option quiet
315 @%append $(OBJS)\client.lbc name $^@
316 @%append $(OBJS)\client.lbc option caseexact
317 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
318 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
319 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_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
320 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_sample.res
321 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
322 wlink @$(OBJS)\client.lbc
326 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_sample.res
327 @%create $(OBJS)\server.lbc
328 @%append $(OBJS)\server.lbc option quiet
329 @%append $(OBJS)\server.lbc name $^@
330 @%append $(OBJS)\server.lbc option caseexact
331 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
332 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
333 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_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
334 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_sample.res
335 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
336 wlink @$(OBJS)\server.lbc
339 $(OBJS)\baseclient.exe : $(BASECLIENT_OBJECTS)
340 @%create $(OBJS)\baseclient.lbc
341 @%append $(OBJS)\baseclient.lbc option quiet
342 @%append $(OBJS)\baseclient.lbc name $^@
343 @%append $(OBJS)\baseclient.lbc option caseexact
344 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
345 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
346 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_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
347 @%append $(OBJS)\baseclient.lbc
348 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
349 wlink @$(OBJS)\baseclient.lbc
351 $(OBJS)\baseserver.exe : $(BASESERVER_OBJECTS)
352 @%create $(OBJS)\baseserver.lbc
353 @%append $(OBJS)\baseserver.lbc option quiet
354 @%append $(OBJS)\baseserver.lbc name $^@
355 @%append $(OBJS)\baseserver.lbc option caseexact
356 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
357 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
358 @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p_1) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_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
359 @%append $(OBJS)\baseserver.lbc
360 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
361 wlink @$(OBJS)\baseserver.lbc
363 $(OBJS)\client_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
364 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
366 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
367 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
369 $(OBJS)\server_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
370 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
372 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
373 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
375 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
376 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
378 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
379 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<