]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.wat
use <bitmapsize> to load bitmaps at the specified size in wxToolBar's XRC handler
[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 !ifeq DEBUG_FLAG default
44 WXDEBUGFLAG = d
45 !endif
46 !endif
47 !ifeq DEBUG_FLAG 1
48 WXDEBUGFLAG = d
49 !endif
50 WXUNICODEFLAG =
51 !ifeq UNICODE 1
52 WXUNICODEFLAG = u
53 !endif
54 WXUNIVNAME =
55 !ifeq WXUNIV 1
56 WXUNIVNAME = univ
57 !endif
58 WXDLLFLAG =
59 !ifeq SHARED 1
60 WXDLLFLAG = dll
61 !endif
62 LIBTYPE_SUFFIX =
63 !ifeq SHARED 0
64 LIBTYPE_SUFFIX = lib
65 !endif
66 !ifeq SHARED 1
67 LIBTYPE_SUFFIX = dll
68 !endif
69 EXTRALIBS_FOR_BASE =
70 !ifeq MONOLITHIC 0
71 EXTRALIBS_FOR_BASE =
72 !endif
73 !ifeq MONOLITHIC 1
74 EXTRALIBS_FOR_BASE =
75 !endif
76 __ipcclient___depname =
77 !ifeq USE_GUI 1
78 __ipcclient___depname = $(OBJS)\ipcclient.exe
79 !endif
80 __ipcserver___depname =
81 !ifeq USE_GUI 1
82 __ipcserver___depname = $(OBJS)\ipcserver.exe
83 !endif
84 __WXLIB_CORE_p =
85 !ifeq MONOLITHIC 0
86 __WXLIB_CORE_p = &
87 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
88 !endif
89 __LIB_TIFF_p =
90 !ifeq USE_GUI 1
91 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
92 !endif
93 __LIB_JPEG_p =
94 !ifeq USE_GUI 1
95 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
96 !endif
97 __LIB_PNG_p =
98 !ifeq USE_GUI 1
99 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
100 !endif
101 __DEBUGINFO =
102 !ifeq BUILD debug
103 !ifeq DEBUG_INFO default
104 __DEBUGINFO = -d2
105 !endif
106 !endif
107 !ifeq BUILD release
108 !ifeq DEBUG_INFO default
109 __DEBUGINFO = -d0
110 !endif
111 !endif
112 !ifeq DEBUG_INFO 0
113 __DEBUGINFO = -d0
114 !endif
115 !ifeq DEBUG_INFO 1
116 __DEBUGINFO = -d2
117 !endif
118 __DEBUGINFO_3 =
119 !ifeq BUILD debug
120 !ifeq DEBUG_INFO default
121 __DEBUGINFO_3 = debug all
122 !endif
123 !endif
124 !ifeq BUILD release
125 !ifeq DEBUG_INFO default
126 __DEBUGINFO_3 =
127 !endif
128 !endif
129 !ifeq DEBUG_INFO 0
130 __DEBUGINFO_3 =
131 !endif
132 !ifeq DEBUG_INFO 1
133 __DEBUGINFO_3 = debug all
134 !endif
135 __OPTIMIZEFLAG =
136 !ifeq BUILD debug
137 __OPTIMIZEFLAG = -od
138 !endif
139 !ifeq BUILD release
140 __OPTIMIZEFLAG = -ot -ox
141 !endif
142 __THREADSFLAG =
143 !ifeq USE_THREADS 0
144 __THREADSFLAG =
145 !endif
146 !ifeq USE_THREADS 1
147 __THREADSFLAG = -bm
148 !endif
149 __RUNTIME_LIBS =
150 !ifeq RUNTIME_LIBS dynamic
151 __RUNTIME_LIBS = -br
152 !endif
153 !ifeq RUNTIME_LIBS static
154 __RUNTIME_LIBS =
155 !endif
156 __RTTIFLAG =
157 !ifeq USE_RTTI 0
158 __RTTIFLAG =
159 !endif
160 !ifeq USE_RTTI 1
161 __RTTIFLAG = -xr
162 !endif
163 __EXCEPTIONSFLAG =
164 !ifeq USE_EXCEPTIONS 0
165 __EXCEPTIONSFLAG =
166 !endif
167 !ifeq USE_EXCEPTIONS 1
168 __EXCEPTIONSFLAG = -xs
169 !endif
170 __WXUNIV_DEFINE_p =
171 !ifeq WXUNIV 1
172 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
173 !endif
174 __DEBUG_DEFINE_p =
175 !ifeq BUILD debug
176 !ifeq DEBUG_FLAG default
177 __DEBUG_DEFINE_p = -d__WXDEBUG__
178 !endif
179 !endif
180 !ifeq DEBUG_FLAG 1
181 __DEBUG_DEFINE_p = -d__WXDEBUG__
182 !endif
183 __EXCEPTIONS_DEFINE_p =
184 !ifeq USE_EXCEPTIONS 0
185 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
186 !endif
187 __RTTI_DEFINE_p =
188 !ifeq USE_RTTI 0
189 __RTTI_DEFINE_p = -dwxNO_RTTI
190 !endif
191 __THREAD_DEFINE_p =
192 !ifeq USE_THREADS 0
193 __THREAD_DEFINE_p = -dwxNO_THREADS
194 !endif
195 __UNICODE_DEFINE_p =
196 !ifeq UNICODE 0
197 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
198 !endif
199 !ifeq UNICODE 1
200 __UNICODE_DEFINE_p = -d_UNICODE
201 !endif
202 __GFXCTX_DEFINE_p =
203 !ifeq USE_GDIPLUS 1
204 __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
205 !endif
206 __DLLFLAG_p =
207 !ifeq SHARED 1
208 __DLLFLAG_p = -dWXUSINGDLL
209 !endif
210 __WXLIB_NET_p =
211 !ifeq MONOLITHIC 0
212 __WXLIB_NET_p = &
213 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
214 !endif
215 __WXLIB_BASE_p =
216 !ifeq MONOLITHIC 0
217 __WXLIB_BASE_p = &
218 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
219 !endif
220 __WXLIB_MONO_p =
221 !ifeq MONOLITHIC 1
222 __WXLIB_MONO_p = &
223 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
224 !endif
225 __GDIPLUS_LIB_p =
226 !ifeq USE_GDIPLUS 1
227 __GDIPLUS_LIB_p = gdiplus.lib
228 !endif
229
230 ### Variables: ###
231
232 WX_RELEASE_NODOT = 29
233 COMPILER_PREFIX = wat
234 OBJS = &
235 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
236 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
237 SETUPHDIR = &
238 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
239 IPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
240 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
241 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
242 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
243 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
244 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
245 $(CXXFLAGS)
246 IPCCLIENT_OBJECTS = &
247 $(OBJS)\ipcclient_client.obj
248 IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
249 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
250 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
251 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
252 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
253 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
254 $(CXXFLAGS)
255 IPCSERVER_OBJECTS = &
256 $(OBJS)\ipcserver_server.obj
257 BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
258 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
259 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
260 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
261 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
262 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
263 BASEIPCCLIENT_OBJECTS = &
264 $(OBJS)\baseipcclient_baseclient.obj
265 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
266 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
267 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
268 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
269 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
270 -dwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
271 BASEIPCSERVER_OBJECTS = &
272 $(OBJS)\baseipcserver_baseserver.obj
273
274
275 all : $(OBJS)
276 $(OBJS) :
277 -if not exist $(OBJS) mkdir $(OBJS)
278
279 ### Targets: ###
280
281 all : .SYMBOLIC $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
282
283 clean : .SYMBOLIC
284 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
285 -if exist $(OBJS)\*.res del $(OBJS)\*.res
286 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
287 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
288 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
289 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
290 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
291 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
292 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
293
294 !ifeq USE_GUI 1
295 $(OBJS)\ipcclient.exe : $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample.res
296 @%create $(OBJS)\ipcclient.lbc
297 @%append $(OBJS)\ipcclient.lbc option quiet
298 @%append $(OBJS)\ipcclient.lbc name $^@
299 @%append $(OBJS)\ipcclient.lbc option caseexact
300 @%append $(OBJS)\ipcclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
301 @for %i in ($(IPCCLIENT_OBJECTS)) do @%append $(OBJS)\ipcclient.lbc file %i
302 @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
303 @%append $(OBJS)\ipcclient.lbc option resource=$(OBJS)\ipcclient_sample.res
304 @for %i in () do @%append $(OBJS)\ipcclient.lbc option stack=%i
305 wlink @$(OBJS)\ipcclient.lbc
306 !endif
307
308 !ifeq USE_GUI 1
309 $(OBJS)\ipcserver.exe : $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample.res
310 @%create $(OBJS)\ipcserver.lbc
311 @%append $(OBJS)\ipcserver.lbc option quiet
312 @%append $(OBJS)\ipcserver.lbc name $^@
313 @%append $(OBJS)\ipcserver.lbc option caseexact
314 @%append $(OBJS)\ipcserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
315 @for %i in ($(IPCSERVER_OBJECTS)) do @%append $(OBJS)\ipcserver.lbc file %i
316 @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
317 @%append $(OBJS)\ipcserver.lbc option resource=$(OBJS)\ipcserver_sample.res
318 @for %i in () do @%append $(OBJS)\ipcserver.lbc option stack=%i
319 wlink @$(OBJS)\ipcserver.lbc
320 !endif
321
322 $(OBJS)\baseipcclient.exe : $(BASEIPCCLIENT_OBJECTS)
323 @%create $(OBJS)\baseipcclient.lbc
324 @%append $(OBJS)\baseipcclient.lbc option quiet
325 @%append $(OBJS)\baseipcclient.lbc name $^@
326 @%append $(OBJS)\baseipcclient.lbc option caseexact
327 @%append $(OBJS)\baseipcclient.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
328 @for %i in ($(BASEIPCCLIENT_OBJECTS)) do @%append $(OBJS)\baseipcclient.lbc file %i
329 @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
330 @%append $(OBJS)\baseipcclient.lbc
331 @for %i in () do @%append $(OBJS)\baseipcclient.lbc option stack=%i
332 wlink @$(OBJS)\baseipcclient.lbc
333
334 $(OBJS)\baseipcserver.exe : $(BASEIPCSERVER_OBJECTS)
335 @%create $(OBJS)\baseipcserver.lbc
336 @%append $(OBJS)\baseipcserver.lbc option quiet
337 @%append $(OBJS)\baseipcserver.lbc name $^@
338 @%append $(OBJS)\baseipcserver.lbc option caseexact
339 @%append $(OBJS)\baseipcserver.lbc $(__DEBUGINFO_3) libpath $(LIBDIRNAME) system nt ref 'main_' $(LDFLAGS)
340 @for %i in ($(BASEIPCSERVER_OBJECTS)) do @%append $(OBJS)\baseipcserver.lbc file %i
341 @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
342 @%append $(OBJS)\baseipcserver.lbc
343 @for %i in () do @%append $(OBJS)\baseipcserver.lbc option stack=%i
344 wlink @$(OBJS)\baseipcserver.lbc
345
346 $(OBJS)\ipcclient_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
347 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 $<
348
349 $(OBJS)\ipcclient_client.obj : .AUTODEPEND .\client.cpp
350 $(CXX) -bt=nt -zq -fo=$^@ $(IPCCLIENT_CXXFLAGS) $<
351
352 $(OBJS)\ipcserver_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
353 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 $<
354
355 $(OBJS)\ipcserver_server.obj : .AUTODEPEND .\server.cpp
356 $(CXX) -bt=nt -zq -fo=$^@ $(IPCSERVER_CXXFLAGS) $<
357
358 $(OBJS)\baseipcclient_baseclient.obj : .AUTODEPEND .\baseclient.cpp
359 $(CXX) -bt=nt -zq -fo=$^@ $(BASEIPCCLIENT_CXXFLAGS) $<
360
361 $(OBJS)\baseipcserver_baseserver.obj : .AUTODEPEND .\baseserver.cpp
362 $(CXX) -bt=nt -zq -fo=$^@ $(BASEIPCSERVER_CXXFLAGS) $<
363