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__WXMSW__ $(__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 $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\render_sample_rc.o \
34 $(OBJS)\render_render.o
35 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
36 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
39 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
40 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
41 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 $(OBJS)\renddll_renddll.o
45 ### Conditionally set variables: ###
47 ifeq ($(GCC_VERSION),2.95)
48 GCCFLAGS = -fvtable-thunks
56 ifeq ($(OFFICIAL_BUILD),1)
57 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
59 ifeq ($(OFFICIAL_BUILD),0)
62 ifeq ($(OFFICIAL_BUILD),1)
63 WXCOMPILER = _gcc$(COMPILER_VERSION)
83 ifeq ($(MONOLITHIC),0)
86 ifeq ($(MONOLITHIC),1)
90 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
92 ifeq ($(DEBUG_FLAG),0)
93 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
95 ifeq ($(BUILD),release)
96 __NDEBUG_DEFINE_p_1 = --define NDEBUG
98 ifeq ($(USE_EXCEPTIONS),0)
99 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
102 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
104 ifeq ($(USE_THREADS),0)
105 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
108 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
111 __UNICODE_DEFINE_p_1 = --define _UNICODE
114 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
116 ifeq ($(USE_CAIRO),1)
117 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
120 __DLLFLAG_p = -DWXUSINGDLL
123 __DLLFLAG_p_1 = --define WXUSINGDLL
126 __renddll___depname = \
127 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll
129 ifeq ($(BUILD),debug)
132 ifeq ($(BUILD),release)
136 __RTTIFLAG = -fno-rtti
141 ifeq ($(USE_EXCEPTIONS),0)
142 __EXCEPTIONSFLAG = -fno-exceptions
144 ifeq ($(USE_EXCEPTIONS),1)
148 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
150 ifeq ($(DEBUG_FLAG),0)
151 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
153 ifeq ($(BUILD),release)
154 __NDEBUG_DEFINE_p = -DNDEBUG
156 ifeq ($(USE_EXCEPTIONS),0)
157 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
160 __RTTI_DEFINE_p = -DwxNO_RTTI
162 ifeq ($(USE_THREADS),0)
163 __THREAD_DEFINE_p = -DwxNO_THREADS
166 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
169 __UNICODE_DEFINE_p = -D_UNICODE
172 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
174 ifeq ($(USE_CAIRO),1)
175 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
177 ifeq ($(MONOLITHIC),0)
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
181 ifeq ($(MONOLITHIC),0)
183 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 ifeq ($(MONOLITHIC),1)
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
190 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
193 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
196 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
199 __UNICOWS_LIB_p = -lunicows
201 ifeq ($(USE_CAIRO),1)
202 __CAIRO_LIB_p = -lcairo
204 ifeq ($(USE_CAIRO),1)
205 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
207 ifeq ($(BUILD),debug)
208 ifeq ($(DEBUG_INFO),default)
212 ifeq ($(BUILD),release)
213 ifeq ($(DEBUG_INFO),default)
217 ifeq ($(DEBUG_INFO),0)
220 ifeq ($(DEBUG_INFO),1)
223 ifeq ($(USE_THREADS),0)
226 ifeq ($(USE_THREADS),1)
227 __THREADSFLAG = -mthreads
233 -if not exist $(OBJS) mkdir $(OBJS)
237 all: $(OBJS)\render.exe $(__renddll___depname)
240 -if exist $(OBJS)\*.o del $(OBJS)\*.o
241 -if exist $(OBJS)\*.d del $(OBJS)\*.d
242 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
243 -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
245 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
246 $(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) -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
249 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)$(WXCOMPILER).dll: $(RENDDLL_OBJECTS)
250 $(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) -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
253 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
254 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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
256 $(OBJS)\render_render.o: ./render.cpp
257 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
259 $(OBJS)\renddll_renddll.o: ./renddll.cpp
260 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
267 # Dependencies tracking: