]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.wat
make the sample work again by correcting DrawHeaderButton() signature
[wxWidgets.git] / samples / render / 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 PLUGINSUFFIX =
77 !ifeq BUILD debug
78 !ifeq UNICODE 0
79 PLUGINSUFFIX = d
80 !endif
81 !endif
82 !ifeq BUILD debug
83 !ifeq UNICODE 1
84 PLUGINSUFFIX = ud
85 !endif
86 !endif
87 !ifeq BUILD release
88 !ifeq UNICODE 0
89 PLUGINSUFFIX =
90 !endif
91 !endif
92 !ifeq BUILD release
93 !ifeq UNICODE 1
94 PLUGINSUFFIX = u
95 !endif
96 !endif
97 __renddll___depname =
98 !ifeq SHARED 1
99 __renddll___depname = &
100 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
101 !endif
102 __DEBUGINFO =
103 !ifeq BUILD debug
104 !ifeq DEBUG_INFO default
105 __DEBUGINFO = -d2
106 !endif
107 !endif
108 !ifeq BUILD release
109 !ifeq DEBUG_INFO default
110 __DEBUGINFO = -d0
111 !endif
112 !endif
113 !ifeq DEBUG_INFO 0
114 __DEBUGINFO = -d0
115 !endif
116 !ifeq DEBUG_INFO 1
117 __DEBUGINFO = -d2
118 !endif
119 __DEBUGINFO_1 =
120 !ifeq BUILD debug
121 !ifeq DEBUG_INFO default
122 __DEBUGINFO_1 = debug all
123 !endif
124 !endif
125 !ifeq BUILD release
126 !ifeq DEBUG_INFO default
127 __DEBUGINFO_1 =
128 !endif
129 !endif
130 !ifeq DEBUG_INFO 0
131 __DEBUGINFO_1 =
132 !endif
133 !ifeq DEBUG_INFO 1
134 __DEBUGINFO_1 = debug all
135 !endif
136 __OPTIMIZEFLAG =
137 !ifeq BUILD debug
138 __OPTIMIZEFLAG = -od
139 !endif
140 !ifeq BUILD release
141 __OPTIMIZEFLAG = -ot -ox
142 !endif
143 __THREADSFLAG =
144 !ifeq USE_THREADS 0
145 __THREADSFLAG =
146 !endif
147 !ifeq USE_THREADS 1
148 __THREADSFLAG = -bm
149 !endif
150 __RUNTIME_LIBS =
151 !ifeq RUNTIME_LIBS dynamic
152 __RUNTIME_LIBS = -br
153 !endif
154 !ifeq RUNTIME_LIBS static
155 __RUNTIME_LIBS =
156 !endif
157 __RTTIFLAG =
158 !ifeq USE_RTTI 0
159 __RTTIFLAG =
160 !endif
161 !ifeq USE_RTTI 1
162 __RTTIFLAG = -xr
163 !endif
164 __EXCEPTIONSFLAG =
165 !ifeq USE_EXCEPTIONS 0
166 __EXCEPTIONSFLAG =
167 !endif
168 !ifeq USE_EXCEPTIONS 1
169 __EXCEPTIONSFLAG = -xs
170 !endif
171 __WXUNIV_DEFINE_p =
172 !ifeq WXUNIV 1
173 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
174 !endif
175 __DEBUG_DEFINE_p =
176 !ifeq BUILD debug
177 !ifeq DEBUG_FLAG default
178 __DEBUG_DEFINE_p = -d__WXDEBUG__
179 !endif
180 !endif
181 !ifeq DEBUG_FLAG 1
182 __DEBUG_DEFINE_p = -d__WXDEBUG__
183 !endif
184 __EXCEPTIONS_DEFINE_p =
185 !ifeq USE_EXCEPTIONS 0
186 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
187 !endif
188 __RTTI_DEFINE_p =
189 !ifeq USE_RTTI 0
190 __RTTI_DEFINE_p = -dwxNO_RTTI
191 !endif
192 __THREAD_DEFINE_p =
193 !ifeq USE_THREADS 0
194 __THREAD_DEFINE_p = -dwxNO_THREADS
195 !endif
196 __UNICODE_DEFINE_p =
197 !ifeq UNICODE 0
198 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
199 !endif
200 !ifeq UNICODE 1
201 __UNICODE_DEFINE_p = -d_UNICODE
202 !endif
203 __GFXCTX_DEFINE_p =
204 !ifeq USE_GDIPLUS 1
205 __GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
206 !endif
207 __DLLFLAG_p =
208 !ifeq SHARED 1
209 __DLLFLAG_p = -dWXUSINGDLL
210 !endif
211 __WXLIB_CORE_p =
212 !ifeq MONOLITHIC 0
213 __WXLIB_CORE_p = &
214 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
215 !endif
216 __WXLIB_BASE_p =
217 !ifeq MONOLITHIC 0
218 __WXLIB_BASE_p = &
219 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
220 !endif
221 __WXLIB_MONO_p =
222 !ifeq MONOLITHIC 1
223 __WXLIB_MONO_p = &
224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
225 !endif
226 __LIB_TIFF_p =
227 !ifeq USE_GUI 1
228 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
229 !endif
230 __LIB_JPEG_p =
231 !ifeq USE_GUI 1
232 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
233 !endif
234 __LIB_PNG_p =
235 !ifeq USE_GUI 1
236 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
237 !endif
238 __GDIPLUS_LIB_p =
239 !ifeq USE_GDIPLUS 1
240 __GDIPLUS_LIB_p = gdiplus.lib
241 !endif
242
243 ### Variables: ###
244
245 WX_RELEASE_NODOT = 29
246 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
247 COMPILER_PREFIX = wat
248 OBJS = &
249 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
250 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
251 SETUPHDIR = &
252 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
253 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
254 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
255 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
256 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
257 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
258 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
259 $(CXXFLAGS)
260 RENDER_OBJECTS = &
261 $(OBJS)\render_render.obj
262 RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
263 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
264 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
265 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
266 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -dWXUSINGDLL &
267 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
268 RENDDLL_OBJECTS = &
269 $(OBJS)\renddll_renddll.obj
270
271
272 all : $(OBJS)
273 $(OBJS) :
274 -if not exist $(OBJS) mkdir $(OBJS)
275
276 ### Targets: ###
277
278 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
279
280 clean : .SYMBOLIC
281 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
282 -if exist $(OBJS)\*.res del $(OBJS)\*.res
283 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
284 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
285 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
286 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
287 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
288
289 $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
290 @%create $(OBJS)\render.lbc
291 @%append $(OBJS)\render.lbc option quiet
292 @%append $(OBJS)\render.lbc name $^@
293 @%append $(OBJS)\render.lbc option caseexact
294 @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
295 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
296 @for %i in ( $(__WXLIB_CORE_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)\render.lbc library %i
297 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
298 @for %i in () do @%append $(OBJS)\render.lbc option stack=%i
299 wlink @$(OBJS)\render.lbc
300
301 !ifeq SHARED 1
302 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
303 @%create $(OBJS)\renddll.lbc
304 @%append $(OBJS)\renddll.lbc option quiet
305 @%append $(OBJS)\renddll.lbc name $^@
306 @%append $(OBJS)\renddll.lbc option caseexact
307 @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(LDFLAGS)
308 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
309 @for %i in ( $(__WXLIB_CORE_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)\renddll.lbc library %i
310 @%append $(OBJS)\renddll.lbc
311 @%append $(OBJS)\renddll.lbc system nt_dll
312 wlink @$(OBJS)\renddll.lbc
313 !endif
314
315 $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
316 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 $<
317
318 $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
319 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
320
321 $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
322 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<
323