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 # =========================================================================
7 !include ../../build/msw/config.wat
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
13 # Speed up compilation a bit:
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
21 ! if $(__VERSION__) >= 1280
22 ! loaddll wlink wlinkd
29 # We need these variables in some bakefile-made rules:
30 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
32 ### Conditionally set variables: ###
34 WIN32_TOOLKIT_LOWERCASE =
36 WIN32_TOOLKIT_LOWERCASE = gtk
39 WIN32_TOOLKIT_LOWERCASE = msw
46 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
53 !ifeq OFFICIAL_BUILD 1
54 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
57 !ifeq OFFICIAL_BUILD 0
60 !ifeq OFFICIAL_BUILD 1
61 WXCOMPILER = _wat$(COMPILER_VERSION)
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 &
101 __renddll___depname =
103 __renddll___depname = &
104 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
108 !ifeq DEBUG_INFO default
113 !ifeq DEBUG_INFO default
125 !ifeq DEBUG_INFO default
126 __DEBUGINFO_1 = debug all
130 !ifeq DEBUG_INFO default
138 __DEBUGINFO_1 = debug all
145 __OPTIMIZEFLAG = -ot -ox
155 !ifeq RUNTIME_LIBS dynamic
158 !ifeq RUNTIME_LIBS static
169 !ifeq USE_EXCEPTIONS 0
172 !ifeq USE_EXCEPTIONS 1
173 __EXCEPTIONSFLAG = -xs
177 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
181 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
185 __NDEBUG_DEFINE_p = -dNDEBUG
187 __EXCEPTIONS_DEFINE_p =
188 !ifeq USE_EXCEPTIONS 0
189 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
193 __RTTI_DEFINE_p = -dwxNO_RTTI
197 __THREAD_DEFINE_p = -dwxNO_THREADS
201 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
204 __UNICODE_DEFINE_p = -d_UNICODE
206 ____CAIRO_INCLUDEDIR_FILENAMES =
208 ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
212 __DLLFLAG_p = -dWXUSINGDLL
217 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
222 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
227 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
231 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
235 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
239 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
243 __CAIRO_LIB_p = cairo.lib
245 ____CAIRO_LIBDIR_FILENAMES =
247 ____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
252 WX_RELEASE_NODOT = 29
253 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
254 COMPILER_PREFIX = wat
256 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
258 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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)
278 $(OBJS)\renddll_renddll.obj
283 -if not exist $(OBJS) mkdir $(OBJS)
287 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
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
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
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
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 $<
327 $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
328 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
330 $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
331 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<