]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.wat
Use wxART_BUTTON instead of wxART_MENU for info bar icons.
[wxWidgets.git] / samples / ipc / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.6 (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 __ipcclient___depname =
72 !ifeq USE_GUI 1
73 __ipcclient___depname = $(OBJS)\ipcclient.exe
74 !endif
75 __ipcserver___depname =
76 !ifeq USE_GUI 1
77 __ipcserver___depname = $(OBJS)\ipcserver.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 __DLLFLAG_p =
197 !ifeq SHARED 1
198 __DLLFLAG_p = -dWXUSINGDLL
199 !endif
200 __WXLIB_NET_p =
201 !ifeq MONOLITHIC 0
202 __WXLIB_NET_p = &
203 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
204 !endif
205 __WXLIB_BASE_p =
206 !ifeq MONOLITHIC 0
207 __WXLIB_BASE_p = &
208 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
209 !endif
210 __WXLIB_MONO_p =
211 !ifeq MONOLITHIC 1
212 __WXLIB_MONO_p = &
213 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
214 !endif
215 __GDIPLUS_LIB_p =
216 !ifeq USE_GDIPLUS 1
217 __GDIPLUS_LIB_p = gdiplus.lib
218 !endif
219
220 ### Variables: ###
221
222 WX_RELEASE_NODOT = 29
223 COMPILER_PREFIX = wat
224 OBJS = &
225 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
226 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
227 SETUPHDIR = &
228 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
229 IPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
230 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
231 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
232 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
233 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
234 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
235 $(CXXFLAGS)
236 IPCCLIENT_OBJECTS = &
237 $(OBJS)\ipcclient_client.obj
238 IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
239 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
240 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
241 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
242 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
243 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
244 $(CXXFLAGS)
245 IPCSERVER_OBJECTS = &
246 $(OBJS)\ipcserver_server.obj
247 BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
248 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
249 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
250 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
251 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
252 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
253 BASEIPCCLIENT_OBJECTS = &
254 $(OBJS)\baseipcclient_baseclient.obj
255 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
256 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
257 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
258 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
259 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
260 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
261 BASEIPCSERVER_OBJECTS = &
262 $(OBJS)\baseipcserver_baseserver.obj
263
264
265 all : $(OBJS)
266 $(OBJS) :
267 -if not exist $(OBJS) mkdir $(OBJS)
268
269 ### Targets: ###
270
271 all : .SYMBOLIC $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
272
273 clean : .SYMBOLIC
274 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
275 -if exist $(OBJS)\*.res del $(OBJS)\*.res
276 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
277 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
278 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
279 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
280 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
281 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
282 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
283
284 !ifeq USE_GUI 1
285 $(OBJS)\ipcclient.exe : $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample.res
286 @%create $(OBJS)\ipcclient.lbc
287 @%append $(OBJS)\ipcclient.lbc option quiet
288 @%append $(OBJS)\ipcclient.lbc name $^@
289 @%append $(OBJS)\ipcclient.lbc option caseexact
290 @%append $(OBJS)\ipcclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
291 @for %i in ($(IPCCLIENT_OBJECTS)) do @%append $(OBJS)\ipcclient.lbc file %i
292 @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) 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)\ipcclient.lbc library %i
293 @%append $(OBJS)\ipcclient.lbc option resource=$(OBJS)\ipcclient_sample.res
294 @for %i in () do @%append $(OBJS)\ipcclient.lbc option stack=%i
295 wlink @$(OBJS)\ipcclient.lbc
296 !endif
297
298 !ifeq USE_GUI 1
299 $(OBJS)\ipcserver.exe : $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample.res
300 @%create $(OBJS)\ipcserver.lbc
301 @%append $(OBJS)\ipcserver.lbc option quiet
302 @%append $(OBJS)\ipcserver.lbc name $^@
303 @%append $(OBJS)\ipcserver.lbc option caseexact
304 @%append $(OBJS)\ipcserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
305 @for %i in ($(IPCSERVER_OBJECTS)) do @%append $(OBJS)\ipcserver.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) 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)\ipcserver.lbc library %i
307 @%append $(OBJS)\ipcserver.lbc option resource=$(OBJS)\ipcserver_sample.res
308 @for %i in () do @%append $(OBJS)\ipcserver.lbc option stack=%i
309 wlink @$(OBJS)\ipcserver.lbc
310 !endif
311
312 $(OBJS)\baseipcclient.exe : $(BASEIPCCLIENT_OBJECTS)
313 @%create $(OBJS)\baseipcclient.lbc
314 @%append $(OBJS)\baseipcclient.lbc option quiet
315 @%append $(OBJS)\baseipcclient.lbc name $^@
316 @%append $(OBJS)\baseipcclient.lbc option caseexact
317 @%append $(OBJS)\baseipcclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
318 @for %i in ($(BASEIPCCLIENT_OBJECTS)) do @%append $(OBJS)\baseipcclient.lbc file %i
319 @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) 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)\baseipcclient.lbc library %i
320 @%append $(OBJS)\baseipcclient.lbc
321 @for %i in () do @%append $(OBJS)\baseipcclient.lbc option stack=%i
322 wlink @$(OBJS)\baseipcclient.lbc
323
324 $(OBJS)\baseipcserver.exe : $(BASEIPCSERVER_OBJECTS)
325 @%create $(OBJS)\baseipcserver.lbc
326 @%append $(OBJS)\baseipcserver.lbc option quiet
327 @%append $(OBJS)\baseipcserver.lbc name $^@
328 @%append $(OBJS)\baseipcserver.lbc option caseexact
329 @%append $(OBJS)\baseipcserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
330 @for %i in ($(BASEIPCSERVER_OBJECTS)) do @%append $(OBJS)\baseipcserver.lbc file %i
331 @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) 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)\baseipcserver.lbc library %i
332 @%append $(OBJS)\baseipcserver.lbc
333 @for %i in () do @%append $(OBJS)\baseipcserver.lbc option stack=%i
334 wlink @$(OBJS)\baseipcserver.lbc
335
336 $(OBJS)\ipcclient_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
337 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 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
338
339 $(OBJS)\ipcclient_client.obj : .AUTODEPEND .\client.cpp
340 $(CXX) -bt=nt -zq -fo=$^@ $(IPCCLIENT_CXXFLAGS) $<
341
342 $(OBJS)\ipcserver_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
343 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 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
344
345 $(OBJS)\ipcserver_server.obj : .AUTODEPEND .\server.cpp
346 $(CXX) -bt=nt -zq -fo=$^@ $(IPCSERVER_CXXFLAGS) $<
347
348 $(OBJS)\baseipcclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
349 $(CXX) -bt=nt -zq -fo=$^@ $(BASEIPCCLIENT_CXXFLAGS) $<
350
351 $(OBJS)\baseipcserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
352 $(CXX) -bt=nt -zq -fo=$^@ $(BASEIPCSERVER_CXXFLAGS) $<
353