]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.wat
698313e223efae0828c72946cb1117b990ec92d8
[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$(TOOLKIT_VERSION)
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_SCINTILLA_IF_MONO_p =
211 !ifeq MONOLITHIC 1
212 !ifeq USE_STC 1
213 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
214 !endif
215 !endif
216 __LIB_TIFF_p =
217 !ifeq USE_GUI 1
218 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
219 !endif
220 __LIB_JPEG_p =
221 !ifeq USE_GUI 1
222 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
223 !endif
224 __LIB_PNG_p =
225 !ifeq USE_GUI 1
226 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
227 !endif
228 __CAIRO_LIB_p =
229 !ifeq USE_CAIRO 1
230 __CAIRO_LIB_p = cairo.lib
231 !endif
232 ____CAIRO_LIBDIR_FILENAMES =
233 !ifeq USE_CAIRO 1
234 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
235 !endif
236
237 ### Variables: ###
238
239 WX_RELEASE_NODOT = 29
240 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
241 COMPILER_PREFIX = wat
242 OBJS = &
243 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
244 LIBDIRNAME = &
245 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
246 SETUPHDIR = &
247 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
248 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
249 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
250 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
251 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
252 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
253 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &
254 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
255 RENDER_OBJECTS = &
256 $(OBJS)\render_render.obj
257 RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
258 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
259 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
260 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
261 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
262 -wcd=657 -wcd=667 -dWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
263 $(CXXFLAGS)
264 RENDDLL_OBJECTS = &
265 $(OBJS)\renddll_renddll.obj
266
267
268 all : $(OBJS)
269 $(OBJS) :
270 -if not exist $(OBJS) mkdir $(OBJS)
271
272 ### Targets: ###
273
274 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
275
276 clean : .SYMBOLIC
277 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
278 -if exist $(OBJS)\*.res del $(OBJS)\*.res
279 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
280 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
281 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
282 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
283 -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
284
285 $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
286 @%create $(OBJS)\render.lbc
287 @%append $(OBJS)\render.lbc option quiet
288 @%append $(OBJS)\render.lbc name $^@
289 @%append $(OBJS)\render.lbc option caseexact
290 @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
291 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
292 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
293 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
294 @for %i in () do @%append $(OBJS)\render.lbc option stack=%i
295 wlink @$(OBJS)\render.lbc
296
297 !ifeq SHARED 1
298 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll : $(RENDDLL_OBJECTS)
299 @%create $(OBJS)\renddll.lbc
300 @%append $(OBJS)\renddll.lbc option quiet
301 @%append $(OBJS)\renddll.lbc name $^@
302 @%append $(OBJS)\renddll.lbc option caseexact
303 @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
304 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
305 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
306 @%append $(OBJS)\renddll.lbc
307 @%append $(OBJS)\renddll.lbc system nt_dll
308 wlink @$(OBJS)\renddll.lbc
309 !endif
310
311 $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
312 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 $<
313
314 $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
315 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
316
317 $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
318 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<
319