]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.wat
Don't force themed background for wxToolBar under MSW, just use the default.
[wxWidgets.git] / samples / sockets / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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 __WXLIB_CORE_p =
80 !ifeq MONOLITHIC 0
81 __WXLIB_CORE_p = &
82 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
83 !endif
84 __LIB_TIFF_p =
85 !ifeq USE_GUI 1
86 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
87 !endif
88 __LIB_JPEG_p =
89 !ifeq USE_GUI 1
90 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
91 !endif
92 __LIB_PNG_p =
93 !ifeq USE_GUI 1
94 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
95 !endif
96 __DEBUGINFO =
97 !ifeq BUILD debug
98 !ifeq DEBUG_INFO default
99 __DEBUGINFO = -d2
100 !endif
101 !endif
102 !ifeq BUILD release
103 !ifeq DEBUG_INFO default
104 __DEBUGINFO = -d0
105 !endif
106 !endif
107 !ifeq DEBUG_INFO 0
108 __DEBUGINFO = -d0
109 !endif
110 !ifeq DEBUG_INFO 1
111 __DEBUGINFO = -d2
112 !endif
113 __DEBUGINFO_3 =
114 !ifeq BUILD debug
115 !ifeq DEBUG_INFO default
116 __DEBUGINFO_3 = debug all
117 !endif
118 !endif
119 !ifeq BUILD release
120 !ifeq DEBUG_INFO default
121 __DEBUGINFO_3 =
122 !endif
123 !endif
124 !ifeq DEBUG_INFO 0
125 __DEBUGINFO_3 =
126 !endif
127 !ifeq DEBUG_INFO 1
128 __DEBUGINFO_3 = debug all
129 !endif
130 __OPTIMIZEFLAG =
131 !ifeq BUILD debug
132 __OPTIMIZEFLAG = -od
133 !endif
134 !ifeq BUILD release
135 __OPTIMIZEFLAG = -ot -ox
136 !endif
137 __THREADSFLAG =
138 !ifeq USE_THREADS 0
139 __THREADSFLAG =
140 !endif
141 !ifeq USE_THREADS 1
142 __THREADSFLAG = -bm
143 !endif
144 __RUNTIME_LIBS =
145 !ifeq RUNTIME_LIBS dynamic
146 __RUNTIME_LIBS = -br
147 !endif
148 !ifeq RUNTIME_LIBS static
149 __RUNTIME_LIBS =
150 !endif
151 __RTTIFLAG =
152 !ifeq USE_RTTI 0
153 __RTTIFLAG =
154 !endif
155 !ifeq USE_RTTI 1
156 __RTTIFLAG = -xr
157 !endif
158 __EXCEPTIONSFLAG =
159 !ifeq USE_EXCEPTIONS 0
160 __EXCEPTIONSFLAG =
161 !endif
162 !ifeq USE_EXCEPTIONS 1
163 __EXCEPTIONSFLAG = -xs
164 !endif
165 __WXUNIV_DEFINE_p =
166 !ifeq WXUNIV 1
167 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
168 !endif
169 __DEBUG_DEFINE_p =
170 !ifeq DEBUG_FLAG 0
171 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
172 !endif
173 __EXCEPTIONS_DEFINE_p =
174 !ifeq USE_EXCEPTIONS 0
175 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
176 !endif
177 __RTTI_DEFINE_p =
178 !ifeq USE_RTTI 0
179 __RTTI_DEFINE_p = -dwxNO_RTTI
180 !endif
181 __THREAD_DEFINE_p =
182 !ifeq USE_THREADS 0
183 __THREAD_DEFINE_p = -dwxNO_THREADS
184 !endif
185 __UNICODE_DEFINE_p =
186 !ifeq UNICODE 0
187 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
188 !endif
189 !ifeq UNICODE 1
190 __UNICODE_DEFINE_p = -d_UNICODE
191 !endif
192 __GFXCTX_DEFINE_p =
193 !ifeq USE_GDIPLUS 1
194 __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
195 !endif
196 ____CAIRO_INCLUDEDIR_FILENAMES =
197 !ifeq USE_CAIRO 1
198 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
199 !endif
200 __DLLFLAG_p =
201 !ifeq SHARED 1
202 __DLLFLAG_p = -dWXUSINGDLL
203 !endif
204 __WXLIB_NET_p =
205 !ifeq MONOLITHIC 0
206 __WXLIB_NET_p = &
207 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
208 !endif
209 __WXLIB_BASE_p =
210 !ifeq MONOLITHIC 0
211 __WXLIB_BASE_p = &
212 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
213 !endif
214 __WXLIB_MONO_p =
215 !ifeq MONOLITHIC 1
216 __WXLIB_MONO_p = &
217 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
218 !endif
219 __GDIPLUS_LIB_p =
220 !ifeq USE_GDIPLUS 1
221 __GDIPLUS_LIB_p = gdiplus.lib
222 !endif
223 __CAIRO_LIB_p =
224 !ifeq USE_CAIRO 1
225 __CAIRO_LIB_p = cairo.lib
226 !endif
227 ____CAIRO_LIBDIR_FILENAMES =
228 !ifeq USE_CAIRO 1
229 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
230 !endif
231
232 ### Variables: ###
233
234 WX_RELEASE_NODOT = 29
235 COMPILER_PREFIX = wat
236 OBJS = &
237 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
238 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
239 SETUPHDIR = &
240 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
241 CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
242 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
243 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
244 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
245 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
246 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
247 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
248 CLIENT_OBJECTS = &
249 $(OBJS)\client_client.obj
250 SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
251 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
252 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
253 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
254 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
255 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
256 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
257 SERVER_OBJECTS = &
258 $(OBJS)\server_server.obj
259 BASECLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
260 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
261 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
262 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
263 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
264 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
265 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
266 BASECLIENT_OBJECTS = &
267 $(OBJS)\baseclient_baseclient.obj
268 BASESERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
269 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
270 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
271 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
272 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
273 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 $(__RTTIFLAG) &
274 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
275 BASESERVER_OBJECTS = &
276 $(OBJS)\baseserver_baseserver.obj
277
278
279 all : $(OBJS)
280 $(OBJS) :
281 -if not exist $(OBJS) mkdir $(OBJS)
282
283 ### Targets: ###
284
285 all : .SYMBOLIC $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
286
287 clean : .SYMBOLIC
288 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
289 -if exist $(OBJS)\*.res del $(OBJS)\*.res
290 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
291 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
292 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
293 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
294 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
295 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
296 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
297
298 !ifeq USE_GUI 1
299 $(OBJS)\client.exe : $(CLIENT_OBJECTS) $(OBJS)\client_client.res
300 @%create $(OBJS)\client.lbc
301 @%append $(OBJS)\client.lbc option quiet
302 @%append $(OBJS)\client.lbc name $^@
303 @%append $(OBJS)\client.lbc option caseexact
304 @%append $(OBJS)\client.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
305 @for %i in ($(CLIENT_OBJECTS)) do @%append $(OBJS)\client.lbc file %i
306 @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) $(__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
307 @%append $(OBJS)\client.lbc option resource=$(OBJS)\client_client.res
308 @for %i in () do @%append $(OBJS)\client.lbc option stack=%i
309 wlink @$(OBJS)\client.lbc
310 !endif
311
312 !ifeq USE_GUI 1
313 $(OBJS)\server.exe : $(SERVER_OBJECTS) $(OBJS)\server_server.res
314 @%create $(OBJS)\server.lbc
315 @%append $(OBJS)\server.lbc option quiet
316 @%append $(OBJS)\server.lbc name $^@
317 @%append $(OBJS)\server.lbc option caseexact
318 @%append $(OBJS)\server.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
319 @for %i in ($(SERVER_OBJECTS)) do @%append $(OBJS)\server.lbc file %i
320 @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) $(__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
321 @%append $(OBJS)\server.lbc option resource=$(OBJS)\server_server.res
322 @for %i in () do @%append $(OBJS)\server.lbc option stack=%i
323 wlink @$(OBJS)\server.lbc
324 !endif
325
326 $(OBJS)\baseclient.exe : $(BASECLIENT_OBJECTS)
327 @%create $(OBJS)\baseclient.lbc
328 @%append $(OBJS)\baseclient.lbc option quiet
329 @%append $(OBJS)\baseclient.lbc name $^@
330 @%append $(OBJS)\baseclient.lbc option caseexact
331 @%append $(OBJS)\baseclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
332 @for %i in ($(BASECLIENT_OBJECTS)) do @%append $(OBJS)\baseclient.lbc file %i
333 @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) $(__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
334 @%append $(OBJS)\baseclient.lbc
335 @for %i in () do @%append $(OBJS)\baseclient.lbc option stack=%i
336 wlink @$(OBJS)\baseclient.lbc
337
338 $(OBJS)\baseserver.exe : $(BASESERVER_OBJECTS)
339 @%create $(OBJS)\baseserver.lbc
340 @%append $(OBJS)\baseserver.lbc option quiet
341 @%append $(OBJS)\baseserver.lbc name $^@
342 @%append $(OBJS)\baseserver.lbc option caseexact
343 @%append $(OBJS)\baseserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
344 @for %i in ($(BASESERVER_OBJECTS)) do @%append $(OBJS)\baseserver.lbc file %i
345 @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) $(__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
346 @%append $(OBJS)\baseserver.lbc
347 @for %i in () do @%append $(OBJS)\baseserver.lbc option stack=%i
348 wlink @$(OBJS)\baseserver.lbc
349
350 $(OBJS)\client_client.obj : .AUTODEPEND .\client.cpp
351 $(CXX) -bt=nt -zq -fo=$^@ $(CLIENT_CXXFLAGS) $<
352
353 $(OBJS)\client_client.res : .AUTODEPEND .\client.rc
354 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 $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
355
356 $(OBJS)\server_server.obj : .AUTODEPEND .\server.cpp
357 $(CXX) -bt=nt -zq -fo=$^@ $(SERVER_CXXFLAGS) $<
358
359 $(OBJS)\server_server.res : .AUTODEPEND .\server.rc
360 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 $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
361
362 $(OBJS)\baseclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
363 $(CXX) -bt=nt -zq -fo=$^@ $(BASECLIENT_CXXFLAGS) $<
364
365 $(OBJS)\baseserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
366 $(CXX) -bt=nt -zq -fo=$^@ $(BASESERVER_CXXFLAGS) $<
367