1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
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
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
28 ### Conditionally set variables: ###
39 !ifeq DEBUG_FLAG default
74 !ifeq DEBUG_INFO default
79 !ifeq DEBUG_INFO default
91 !ifeq DEBUG_INFO default
92 __DEBUGINFO_1 = debug all
96 !ifeq DEBUG_INFO default
104 __DEBUGINFO_1 = debug all
111 __OPTIMIZEFLAG = -ot -ox
114 !ifeq RUNTIME_LIBS dynamic
117 !ifeq RUNTIME_LIBS static
121 !ifeq USE_EXCEPTIONS 0
124 !ifeq USE_EXCEPTIONS 1
125 __EXCEPTIONSFLAG = -xr
128 !ifeq USE_EXCEPTIONS 0
131 !ifeq USE_EXCEPTIONS 1
132 __EXCEPTIONSFLAG_0 = -xs
137 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
142 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
147 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
152 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
156 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
160 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
164 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
168 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
172 !ifeq DEBUG_FLAG default
173 __DEBUG_DEFINE_p = -d__WXDEBUG__
177 __DEBUG_DEFINE_p = -d__WXDEBUG__
181 __UNICODE_DEFINE_p = -d_UNICODE
185 __DLLFLAG_p = -dWXUSINGDLL
190 WX_RELEASE_NODOT = 25
192 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
193 LIBDIRNAME = .\..\..\lib\wat_$(LIBTYPE_SUFFIX)$(CFG)
195 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
196 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
197 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
198 -i=.\..\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
199 $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG) &
200 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
202 $(OBJS)\client_client.obj
203 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
204 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
205 -i=.\..\..\include -i=$(SETUPHDIR) -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. &
206 $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG) &
207 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
209 $(OBJS)\server_server.obj
214 -if not exist $(OBJS) mkdir $(OBJS)
218 all : .SYMBOLIC $(OBJS)\client.exe $(OBJS)\server.exe
221 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
222 -if exist $(OBJS)\*.res del $(OBJS)\*.res
223 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
224 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
225 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
226 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
227 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
229 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_client.res
230 @%create $(OBJS)\client.lbc
231 @%append $(OBJS)\client.lbc option quiet
232 @%append $(OBJS)\client.lbc name $^@
233 @%append $(OBJS)\client.lbc option caseexact
234 @%append $(OBJS)\client.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
235 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
236 @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) 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 odbc32.lib ) do @%append $(OBJS)\client.lbc library %i
237 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_client.res
238 wlink @$(OBJS)\client.lbc
240 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_server.res
241 @%create $(OBJS)\server.lbc
242 @%append $(OBJS)\server.lbc option quiet
243 @%append $(OBJS)\server.lbc name $^@
244 @%append $(OBJS)\server.lbc option caseexact
245 @%append $(OBJS)\server.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
246 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
247 @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) 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 odbc32.lib ) do @%append $(OBJS)\server.lbc library %i
248 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_server.res
249 wlink @$(OBJS)\server.lbc
251 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
252 $(CXX) -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
254 $(OBJS)\client_client.res : .AUTODEPEND .\client.rc
255 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
257 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
258 $(CXX) -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
260 $(OBJS)\server_server.res : .AUTODEPEND .\server.rc
261 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<