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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
20 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
22 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
24 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
25 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
26 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
28 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
29 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
30 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
31 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
32 $(CPPFLAGS) $(CXXFLAGS)
34 $(OBJS)\render_sample_rc.o \
35 $(OBJS)\render_render.o
36 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
39 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
41 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
42 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
43 $(CPPFLAGS) $(CXXFLAGS)
45 $(OBJS)\renddll_renddll.o
47 ### Conditionally set variables: ###
50 WIN32_TOOLKIT_LOWERCASE = gtk
53 WIN32_TOOLKIT_LOWERCASE = msw
55 ifeq ($(GCC_VERSION),2.95)
56 GCCFLAGS = -fvtable-thunks
62 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
67 ifeq ($(OFFICIAL_BUILD),1)
68 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
70 ifeq ($(OFFICIAL_BUILD),0)
73 ifeq ($(OFFICIAL_BUILD),1)
74 WXCOMPILER = _gcc$(COMPILER_VERSION)
94 ifeq ($(MONOLITHIC),0)
97 ifeq ($(MONOLITHIC),1)
100 ifeq ($(TOOLKIT),GTK)
101 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
103 ifeq ($(TOOLKIT),GTK)
104 ifeq ($(TOOLKIT_VERSION),2)
105 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
106 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
111 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
113 ifeq ($(DEBUG_FLAG),0)
114 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
116 ifeq ($(BUILD),release)
117 __NDEBUG_DEFINE_p_1 = --define NDEBUG
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
123 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
125 ifeq ($(USE_THREADS),0)
126 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
129 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
132 __UNICODE_DEFINE_p_1 = --define _UNICODE
135 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
137 ifeq ($(USE_CAIRO),1)
138 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
141 __DLLFLAG_p = -DWXUSINGDLL
144 __DLLFLAG_p_1 = --define WXUSINGDLL
147 __renddll___depname = \
148 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
150 ifeq ($(BUILD),debug)
153 ifeq ($(BUILD),release)
157 __RTTIFLAG = -fno-rtti
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONSFLAG = -fno-exceptions
165 ifeq ($(USE_EXCEPTIONS),1)
169 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
171 ifeq ($(DEBUG_FLAG),0)
172 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
174 ifeq ($(BUILD),release)
175 __NDEBUG_DEFINE_p = -DNDEBUG
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
181 __RTTI_DEFINE_p = -DwxNO_RTTI
183 ifeq ($(USE_THREADS),0)
184 __THREAD_DEFINE_p = -DwxNO_THREADS
187 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
190 __UNICODE_DEFINE_p = -D_UNICODE
193 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
195 ifeq ($(USE_CAIRO),1)
196 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
198 ifeq ($(MONOLITHIC),0)
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
202 ifeq ($(MONOLITHIC),0)
204 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
206 ifeq ($(MONOLITHIC),1)
208 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
211 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
214 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
217 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
220 __UNICOWS_LIB_p = -lunicows
222 ifeq ($(USE_CAIRO),1)
223 __CAIRO_LIB_p = -lcairo
225 ifeq ($(USE_CAIRO),1)
226 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
228 ifeq ($(BUILD),debug)
229 ifeq ($(DEBUG_INFO),default)
233 ifeq ($(BUILD),release)
234 ifeq ($(DEBUG_INFO),default)
238 ifeq ($(DEBUG_INFO),0)
241 ifeq ($(DEBUG_INFO),1)
244 ifeq ($(USE_THREADS),0)
247 ifeq ($(USE_THREADS),1)
248 __THREADSFLAG = -mthreads
254 -if not exist $(OBJS) mkdir $(OBJS)
258 all: $(OBJS)\render.exe $(__renddll___depname)
261 -if exist $(OBJS)\*.o del $(OBJS)\*.o
262 -if exist $(OBJS)\*.d del $(OBJS)\*.d
263 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
264 -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
266 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
267 $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
270 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)
271 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
274 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
275 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
277 $(OBJS)\render_render.o: ./render.cpp
278 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
280 $(OBJS)\renddll_renddll.o: ./renddll.cpp
281 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
288 # Dependencies tracking: