]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.wat
Always use icons with wxToolbook in the notebook sample.
[wxWidgets.git] / samples / sockets / makefile.wat
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 # =========================================================================
6
7 !include ../../build/msw/config.wat
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 # Speed up compilation a bit:
14 !ifdef __LOADDLL__
15 ! loaddll wcc wccd
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
18 ! loaddll wpp wppdi86
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
21 ! if $(__VERSION__) >= 1280
22 ! loaddll wlink wlinkd
23 ! else
24 ! loaddll wlink wlink
25 ! endif
26 ! loaddll wlib wlibd
27 !endif
28
29 # We need these variables in some bakefile-made rules:
30 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
31
32 ### Conditionally set variables: ###
33
34 PORTNAME =
35 !ifeq USE_GUI 0
36 PORTNAME = base
37 !endif
38 !ifeq USE_GUI 1
39 PORTNAME = msw
40 !endif
41 WXDEBUGFLAG =
42 !ifeq BUILD debug
43 WXDEBUGFLAG = d
44 !endif
45 WXUNICODEFLAG =
46 !ifeq UNICODE 1
47 WXUNICODEFLAG = u
48 !endif
49 WXUNIVNAME =
50 !ifeq WXUNIV 1
51 WXUNIVNAME = univ
52 !endif
53 WXDLLFLAG =
54 !ifeq SHARED 1
55 WXDLLFLAG = dll
56 !endif
57 LIBTYPE_SUFFIX =
58 !ifeq SHARED 0
59 LIBTYPE_SUFFIX = lib
60 !endif
61 !ifeq SHARED 1
62 LIBTYPE_SUFFIX = dll
63 !endif
64 EXTRALIBS_FOR_BASE =
65 !ifeq MONOLITHIC 0
66 EXTRALIBS_FOR_BASE =
67 !endif
68 !ifeq MONOLITHIC 1
69 EXTRALIBS_FOR_BASE =
70 !endif
71 __client___depname =
72 !ifeq USE_GUI 1
73 __client___depname = $(OBJS)\client.exe
74 !endif
75 __server___depname =
76 !ifeq USE_GUI 1
77 __server___depname = $(OBJS)\server.exe
78 !endif
79 __LIB_PNG_IF_MONO_p =
80 !ifeq MONOLITHIC 1
81 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
82 !endif
83 __LIB_PNG_IF_MONO_p_1 =
84 !ifeq MONOLITHIC 1
85 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
86 !endif
87 __WXLIB_CORE_p =
88 !ifeq MONOLITHIC 0
89 __WXLIB_CORE_p = &
90 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
91 !endif
92 __LIB_TIFF_p =
93 !ifeq USE_GUI 1
94 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
95 !endif
96 __LIB_JPEG_p =
97 !ifeq USE_GUI 1
98 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
99 !endif
100 __DEBUGINFO =
101 !ifeq BUILD debug
102 !ifeq DEBUG_INFO default
103 __DEBUGINFO = -d2
104 !endif
105 !endif
106 !ifeq BUILD release
107 !ifeq DEBUG_INFO default
108 __DEBUGINFO = -d0
109 !endif
110 !endif
111 !ifeq DEBUG_INFO 0
112 __DEBUGINFO = -d0
113 !endif
114 !ifeq DEBUG_INFO 1
115 __DEBUGINFO = -d2
116 !endif
117 __DEBUGINFO_3 =
118 !ifeq BUILD debug
119 !ifeq DEBUG_INFO default
120 __DEBUGINFO_3 = debug all
121 !endif
122 !endif
123 !ifeq BUILD release
124 !ifeq DEBUG_INFO default
125 __DEBUGINFO_3 =
126 !endif
127 !endif
128 !ifeq DEBUG_INFO 0
129 __DEBUGINFO_3 =
130 !endif
131 !ifeq DEBUG_INFO 1
132 __DEBUGINFO_3 = debug all
133 !endif
134 __OPTIMIZEFLAG =
135 !ifeq BUILD debug
136 __OPTIMIZEFLAG = -od
137 !endif
138 !ifeq BUILD release
139 __OPTIMIZEFLAG = -ot -ox
140 !endif
141 __THREADSFLAG =
142 !ifeq USE_THREADS 0
143 __THREADSFLAG =
144 !endif
145 !ifeq USE_THREADS 1
146 __THREADSFLAG = -bm
147 !endif
148 __RUNTIME_LIBS =
149 !ifeq RUNTIME_LIBS dynamic
150 __RUNTIME_LIBS = -br
151 !endif
152 !ifeq RUNTIME_LIBS static
153 __RUNTIME_LIBS =
154 !endif
155 __RTTIFLAG =
156 !ifeq USE_RTTI 0
157 __RTTIFLAG =
158 !endif
159 !ifeq USE_RTTI 1
160 __RTTIFLAG = -xr
161 !endif
162 __EXCEPTIONSFLAG =
163 !ifeq USE_EXCEPTIONS 0
164 __EXCEPTIONSFLAG =
165 !endif
166 !ifeq USE_EXCEPTIONS 1
167 __EXCEPTIONSFLAG = -xs
168 !endif
169 __WXUNIV_DEFINE_p =
170 !ifeq WXUNIV 1
171 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
172 !endif
173 __DEBUG_DEFINE_p =
174 !ifeq DEBUG_FLAG 0
175 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
176 !endif
177 __NDEBUG_DEFINE_p =
178 !ifeq BUILD release
179 __NDEBUG_DEFINE_p = -dNDEBUG
180 !endif
181 __EXCEPTIONS_DEFINE_p =
182 !ifeq USE_EXCEPTIONS 0
183 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
184 !endif
185 __RTTI_DEFINE_p =
186 !ifeq USE_RTTI 0
187 __RTTI_DEFINE_p = -dwxNO_RTTI
188 !endif
189 __THREAD_DEFINE_p =
190 !ifeq USE_THREADS 0
191 __THREAD_DEFINE_p = -dwxNO_THREADS
192 !endif
193 __UNICODE_DEFINE_p =
194 !ifeq UNICODE 0
195 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
196 !endif
197 !ifeq UNICODE 1
198 __UNICODE_DEFINE_p = -d_UNICODE
199 !endif
200 ____CAIRO_INCLUDEDIR_FILENAMES =
201 !ifeq USE_CAIRO 1
202 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
203 !endif
204 __DLLFLAG_p =
205 !ifeq SHARED 1
206 __DLLFLAG_p = -dWXUSINGDLL
207 !endif
208 __WXLIB_NET_p =
209 !ifeq MONOLITHIC 0
210 __WXLIB_NET_p = &
211 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
212 !endif
213 __WXLIB_BASE_p =
214 !ifeq MONOLITHIC 0
215 __WXLIB_BASE_p = &
216 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
217 !endif
218 __WXLIB_MONO_p =
219 !ifeq MONOLITHIC 1
220 __WXLIB_MONO_p = &
221 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 !endif
223 __LIB_PNG_p =
224 !ifeq USE_GUI 1
225 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
226 !endif
227 __CAIRO_LIB_p =
228 !ifeq USE_CAIRO 1
229 __CAIRO_LIB_p = cairo.lib
230 !endif
231 ____CAIRO_LIBDIR_FILENAMES =
232 !ifeq USE_CAIRO 1
233 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
234 !endif
235
236 ### Variables: ###
237
238 WX_RELEASE_NODOT = 29
239 COMPILER_PREFIX = wat
240 OBJS = &
241 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
242 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
243 SETUPHDIR = &
244 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
245 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
246 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
247 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
248 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
249 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
250 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
251 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
252 CLIENT_OBJECTS = &
253 $(OBJS)\client_client.obj
254 SERVER_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)
261 SERVER_OBJECTS = &
262 $(OBJS)\server_server.obj
263 BASECLIENT_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) -dwxUSE_GUI=0 $(__RTTIFLAG) &
269 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
270 BASECLIENT_OBJECTS = &
271 $(OBJS)\baseclient_baseclient.obj
272 BASESERVER_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 BASESERVER_OBJECTS = &
280 $(OBJS)\baseserver_baseserver.obj
281
282
283 all : $(OBJS)
284 $(OBJS) :
285 -if not exist $(OBJS) mkdir $(OBJS)
286
287 ### Targets: ###
288
289 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
290
291 clean : .SYMBOLIC
292 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
293 -if exist $(OBJS)\*.res del $(OBJS)\*.res
294 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
295 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
296 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
297 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
298 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
299 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
300 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
301
302 !ifeq USE_GUI 1
303 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
304 @%create $(OBJS)\client.lbc
305 @%append $(OBJS)\client.lbc option quiet
306 @%append $(OBJS)\client.lbc name $^@
307 @%append $(OBJS)\client.lbc option caseexact
308 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
309 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
310 @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) $(__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
311 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_sample.res
312 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
313 wlink @$(OBJS)\client.lbc
314 !endif
315
316 !ifeq USE_GUI 1
317 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_sample.res
318 @%create $(OBJS)\server.lbc
319 @%append $(OBJS)\server.lbc option quiet
320 @%append $(OBJS)\server.lbc name $^@
321 @%append $(OBJS)\server.lbc option caseexact
322 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
323 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
324 @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) $(__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
325 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_sample.res
326 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
327 wlink @$(OBJS)\server.lbc
328 !endif
329
330 $(OBJS)\baseclient.exe : $(BASECLIENT_OBJECTS)
331 @%create $(OBJS)\baseclient.lbc
332 @%append $(OBJS)\baseclient.lbc option quiet
333 @%append $(OBJS)\baseclient.lbc name $^@
334 @%append $(OBJS)\baseclient.lbc option caseexact
335 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
336 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
337 @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
338 @%append $(OBJS)\baseclient.lbc
339 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
340 wlink @$(OBJS)\baseclient.lbc
341
342 $(OBJS)\baseserver.exe : $(BASESERVER_OBJECTS)
343 @%create $(OBJS)\baseserver.lbc
344 @%append $(OBJS)\baseserver.lbc option quiet
345 @%append $(OBJS)\baseserver.lbc name $^@
346 @%append $(OBJS)\baseserver.lbc option caseexact
347 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
348 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
349 @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
350 @%append $(OBJS)\baseserver.lbc
351 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
352 wlink @$(OBJS)\baseserver.lbc
353
354 $(OBJS)\client_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
355 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 $<
356
357 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
358 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
359
360 $(OBJS)\server_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
361 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 $<
362
363 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
364 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
365
366 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
367 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
368
369 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
370 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<
371