]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.wat
Applied colspan corrections, #15274 and #15275 (dghart)
[wxWidgets.git] / samples / render / 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 WIN32_TOOLKIT_LOWERCASE =
35 !ifeq TOOLKIT GTK
36 WIN32_TOOLKIT_LOWERCASE = gtk
37 !endif
38 !ifeq TOOLKIT MSW
39 WIN32_TOOLKIT_LOWERCASE = msw
40 !endif
41 PORTNAME =
42 !ifeq USE_GUI 0
43 PORTNAME = base
44 !endif
45 !ifeq USE_GUI 1
46 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47 !endif
48 WXBASEPORT =
49 !ifeq TOOLKIT MAC
50 WXBASEPORT = _carbon
51 !endif
52 COMPILER_VERSION =
53 !ifeq OFFICIAL_BUILD 1
54 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
55 !endif
56 WXCOMPILER =
57 !ifeq OFFICIAL_BUILD 0
58 WXCOMPILER = _wat
59 !endif
60 !ifeq OFFICIAL_BUILD 1
61 WXCOMPILER = _wat$(COMPILER_VERSION)
62 !endif
63 WXDEBUGFLAG =
64 !ifeq BUILD debug
65 WXDEBUGFLAG = d
66 !endif
67 WXUNICODEFLAG =
68 !ifeq UNICODE 1
69 WXUNICODEFLAG = u
70 !endif
71 WXUNIVNAME =
72 !ifeq WXUNIV 1
73 WXUNIVNAME = univ
74 !endif
75 WXDLLFLAG =
76 !ifeq SHARED 1
77 WXDLLFLAG = dll
78 !endif
79 LIBTYPE_SUFFIX =
80 !ifeq SHARED 0
81 LIBTYPE_SUFFIX = lib
82 !endif
83 !ifeq SHARED 1
84 LIBTYPE_SUFFIX = dll
85 !endif
86 EXTRALIBS_FOR_BASE =
87 !ifeq MONOLITHIC 0
88 EXTRALIBS_FOR_BASE =
89 !endif
90 !ifeq MONOLITHIC 1
91 EXTRALIBS_FOR_BASE =
92 !endif
93 LIB_GTK =
94 !ifeq TOOLKIT GTK
95 !ifeq TOOLKIT_VERSION 2
96 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib &
97 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib &
98 glib-2.0.lib
99 !endif
100 !endif
101 __renddll___depname =
102 !ifeq SHARED 1
103 __renddll___depname = &
104 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
105 !endif
106 __DEBUGINFO =
107 !ifeq BUILD debug
108 !ifeq DEBUG_INFO default
109 __DEBUGINFO = -d2
110 !endif
111 !endif
112 !ifeq BUILD release
113 !ifeq DEBUG_INFO default
114 __DEBUGINFO = -d0
115 !endif
116 !endif
117 !ifeq DEBUG_INFO 0
118 __DEBUGINFO = -d0
119 !endif
120 !ifeq DEBUG_INFO 1
121 __DEBUGINFO = -d2
122 !endif
123 __DEBUGINFO_1 =
124 !ifeq BUILD debug
125 !ifeq DEBUG_INFO default
126 __DEBUGINFO_1 = debug all
127 !endif
128 !endif
129 !ifeq BUILD release
130 !ifeq DEBUG_INFO default
131 __DEBUGINFO_1 =
132 !endif
133 !endif
134 !ifeq DEBUG_INFO 0
135 __DEBUGINFO_1 =
136 !endif
137 !ifeq DEBUG_INFO 1
138 __DEBUGINFO_1 = debug all
139 !endif
140 __OPTIMIZEFLAG =
141 !ifeq BUILD debug
142 __OPTIMIZEFLAG = -od
143 !endif
144 !ifeq BUILD release
145 __OPTIMIZEFLAG = -ot -ox
146 !endif
147 __THREADSFLAG =
148 !ifeq USE_THREADS 0
149 __THREADSFLAG =
150 !endif
151 !ifeq USE_THREADS 1
152 __THREADSFLAG = -bm
153 !endif
154 __RUNTIME_LIBS =
155 !ifeq RUNTIME_LIBS dynamic
156 __RUNTIME_LIBS = -br
157 !endif
158 !ifeq RUNTIME_LIBS static
159 __RUNTIME_LIBS =
160 !endif
161 __RTTIFLAG =
162 !ifeq USE_RTTI 0
163 __RTTIFLAG =
164 !endif
165 !ifeq USE_RTTI 1
166 __RTTIFLAG = -xr
167 !endif
168 __EXCEPTIONSFLAG =
169 !ifeq USE_EXCEPTIONS 0
170 __EXCEPTIONSFLAG =
171 !endif
172 !ifeq USE_EXCEPTIONS 1
173 __EXCEPTIONSFLAG = -xs
174 !endif
175 __WXUNIV_DEFINE_p =
176 !ifeq WXUNIV 1
177 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
178 !endif
179 __DEBUG_DEFINE_p =
180 !ifeq DEBUG_FLAG 0
181 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
182 !endif
183 __NDEBUG_DEFINE_p =
184 !ifeq BUILD release
185 __NDEBUG_DEFINE_p = -dNDEBUG
186 !endif
187 __EXCEPTIONS_DEFINE_p =
188 !ifeq USE_EXCEPTIONS 0
189 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
190 !endif
191 __RTTI_DEFINE_p =
192 !ifeq USE_RTTI 0
193 __RTTI_DEFINE_p = -dwxNO_RTTI
194 !endif
195 __THREAD_DEFINE_p =
196 !ifeq USE_THREADS 0
197 __THREAD_DEFINE_p = -dwxNO_THREADS
198 !endif
199 __UNICODE_DEFINE_p =
200 !ifeq UNICODE 0
201 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
202 !endif
203 !ifeq UNICODE 1
204 __UNICODE_DEFINE_p = -d_UNICODE
205 !endif
206 ____CAIRO_INCLUDEDIR_FILENAMES =
207 !ifeq USE_CAIRO 1
208 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
209 !endif
210 __DLLFLAG_p =
211 !ifeq SHARED 1
212 __DLLFLAG_p = -dWXUSINGDLL
213 !endif
214 __WXLIB_CORE_p =
215 !ifeq MONOLITHIC 0
216 __WXLIB_CORE_p = &
217 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
218 !endif
219 __WXLIB_BASE_p =
220 !ifeq MONOLITHIC 0
221 __WXLIB_BASE_p = &
222 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
223 !endif
224 __WXLIB_MONO_p =
225 !ifeq MONOLITHIC 1
226 __WXLIB_MONO_p = &
227 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
228 !endif
229 __LIB_TIFF_p =
230 !ifeq USE_GUI 1
231 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
232 !endif
233 __LIB_JPEG_p =
234 !ifeq USE_GUI 1
235 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
236 !endif
237 __LIB_PNG_p =
238 !ifeq USE_GUI 1
239 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
240 !endif
241 __CAIRO_LIB_p =
242 !ifeq USE_CAIRO 1
243 __CAIRO_LIB_p = cairo.lib
244 !endif
245 ____CAIRO_LIBDIR_FILENAMES =
246 !ifeq USE_CAIRO 1
247 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
248 !endif
249
250 ### Variables: ###
251
252 WX_RELEASE_NODOT = 29
253 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
254 COMPILER_PREFIX = wat
255 OBJS = &
256 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
257 LIBDIRNAME = &
258 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
259 SETUPHDIR = &
260 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
261 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
262 $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
263 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
264 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
265 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
266 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples &
267 -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
268 RENDER_OBJECTS = &
269 $(OBJS)\render_render.obj
270 RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
271 $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
272 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
273 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
274 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
275 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -dWXUSINGDLL $(__RTTIFLAG) &
276 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
277 RENDDLL_OBJECTS = &
278 $(OBJS)\renddll_renddll.obj
279
280
281 all : $(OBJS)
282 $(OBJS) :
283 -if not exist $(OBJS) mkdir $(OBJS)
284
285 ### Targets: ###
286
287 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
288
289 clean : .SYMBOLIC
290 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
291 -if exist $(OBJS)\*.res del $(OBJS)\*.res
292 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
293 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
294 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
295 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
296 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
297
298 $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
299 @%create $(OBJS)\render.lbc
300 @%append $(OBJS)\render.lbc option quiet
301 @%append $(OBJS)\render.lbc name $^@
302 @%append $(OBJS)\render.lbc option caseexact
303 @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
304 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
305 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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)\render.lbc library %i
306 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
307 @for %i in () do @%append $(OBJS)\render.lbc option stack=%i
308 wlink @$(OBJS)\render.lbc
309
310 !ifeq SHARED 1
311 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll : $(RENDDLL_OBJECTS)
312 @%create $(OBJS)\renddll.lbc
313 @%append $(OBJS)\renddll.lbc option quiet
314 @%append $(OBJS)\renddll.lbc name $^@
315 @%append $(OBJS)\renddll.lbc option caseexact
316 @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
317 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
318 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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)\renddll.lbc library %i
319 @%append $(OBJS)\renddll.lbc
320 @%append $(OBJS)\renddll.lbc system nt_dll
321 wlink @$(OBJS)\renddll.lbc
322 !endif
323
324 $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
325 wrc -q -ad -bt=nt -r -fo=$^@ -d__WX$(TOOLKIT)__ $(__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 $<
326
327 $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
328 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
329
330 $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
331 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<
332