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 =
99 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
104 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
108 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
112 !ifeq DEBUG_INFO default
117 !ifeq DEBUG_INFO default
129 !ifeq DEBUG_INFO default
130 __DEBUGINFO_3 = debug all
134 !ifeq DEBUG_INFO default
142 __DEBUGINFO_3 = debug all
149 __OPTIMIZEFLAG = -ot -ox
159 !ifeq RUNTIME_LIBS dynamic
162 !ifeq RUNTIME_LIBS static
173 !ifeq USE_EXCEPTIONS 0
176 !ifeq USE_EXCEPTIONS 1
177 __EXCEPTIONSFLAG = -xs
181 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
185 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
189 __NDEBUG_DEFINE_p = -dNDEBUG
191 __EXCEPTIONS_DEFINE_p =
192 !ifeq USE_EXCEPTIONS 0
193 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
197 __RTTI_DEFINE_p = -dwxNO_RTTI
201 __THREAD_DEFINE_p = -dwxNO_THREADS
205 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
208 __UNICODE_DEFINE_p = -d_UNICODE
210 ____CAIRO_INCLUDEDIR_FILENAMES =
212 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
216 __DLLFLAG_p = -dWXUSINGDLL
221 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
226 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
231 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
235 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
239 __CAIRO_LIB_p = cairo.lib
241 ____CAIRO_LIBDIR_FILENAMES =
243 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
248 WX_RELEASE_NODOT = 30
249 COMPILER_PREFIX = wat
251 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
253 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
255 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
256 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
257 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
258 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
259 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
260 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
261 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
262 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
264 $(OBJS)\client_client.obj
265 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
266 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
267 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
268 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
269 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
270 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
271 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
273 $(OBJS)\server_server.obj
274 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
275 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
276 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
277 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
278 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
279 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
280 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
281 BASECLIENT_OBJECTS = &
282 $(OBJS)\baseclient_baseclient.obj
283 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
284 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
285 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
286 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
287 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
288 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
289 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
290 BASESERVER_OBJECTS = &
291 $(OBJS)\baseserver_baseserver.obj
296 -if not exist $(OBJS) mkdir $(OBJS)
300 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
303 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
304 -if exist $(OBJS)\*.res del $(OBJS)\*.res
305 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
306 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
307 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
308 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
309 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
310 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
311 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
314 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
315 @%create $(OBJS)\client.lbc
316 @%append $(OBJS)\client.lbc option quiet
317 @%append $(OBJS)\client.lbc name $^@
318 @%append $(OBJS)\client.lbc option caseexact
319 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
320 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
321 @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
322 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_sample.res
323 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
324 wlink @$(OBJS)\client.lbc
328 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_sample.res
329 @%create $(OBJS)\server.lbc
330 @%append $(OBJS)\server.lbc option quiet
331 @%append $(OBJS)\server.lbc name $^@
332 @%append $(OBJS)\server.lbc option caseexact
333 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
334 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
335 @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
336 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_sample.res
337 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
338 wlink @$(OBJS)\server.lbc
341 $(OBJS)\baseclient.exe : $(BASECLIENT_OBJECTS)
342 @%create $(OBJS)\baseclient.lbc
343 @%append $(OBJS)\baseclient.lbc option quiet
344 @%append $(OBJS)\baseclient.lbc name $^@
345 @%append $(OBJS)\baseclient.lbc option caseexact
346 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
347 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
348 @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
349 @%append $(OBJS)\baseclient.lbc
350 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
351 wlink @$(OBJS)\baseclient.lbc
353 $(OBJS)\baseserver.exe : $(BASESERVER_OBJECTS)
354 @%create $(OBJS)\baseserver.lbc
355 @%append $(OBJS)\baseserver.lbc option quiet
356 @%append $(OBJS)\baseserver.lbc name $^@
357 @%append $(OBJS)\baseserver.lbc option caseexact
358 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
359 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
360 @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
361 @%append $(OBJS)\baseserver.lbc
362 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
363 wlink @$(OBJS)\baseserver.lbc
365 $(OBJS)\client_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
366 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 $<
368 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
369 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
371 $(OBJS)\server_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
372 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 $<
374 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
375 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
377 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
378 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
380 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
381 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<