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